-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·94 lines (75 loc) · 2.26 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/usr/bin/env python
"""
TinyCert
--------
A wrapper library around TinyCert's v1 rest api.
API details (including your API key) can be found at https://www.tinycert.org/docs/api
Preferred method of use is via the provided ContextManager.
```````````````````````````````````````````````````````````
.. code:: python
from tinycert import auto_session
with auto_session(api_key, account, passphrase) as session:
ca_list = session.ca.list()
cert_list = session.cert.list(ca_list[0]['id'])
Or, connect and disconnect manually.
````````````````````````````````````
.. code:: python
from tinycert import Session
session = Session(api_key)
session.connect(account, passphrase)
ca_list = session.ca.list()
cert_list = session.cert.list(ca_list[0]['id'])
session.disconnect()
Links
`````
* `TinyCert <https://www.tinycert.org>`_
* `Home <https://github.com/chrisleck/tinycert>`_
"""
from setuptools import setup
VERSION = '0.2.0'
INSTALL_DEPS = [
'enum34>=1.1.2',
'future>=0.16.0',
'requests>=2.9.1'
]
SETUP_DEPS = [
'pytest-runner',
'pytest-pylint',
]
TEST_DEPS = [
'mock>=1.3.0',
'pylint>=1.5.5',
'pytest>=3.0.6',
'requests-mock>=0.7.0'
]
setup(
name='tinycert',
version=VERSION,
description='TinyCert v1 API wrapper',
keywords='tinycert tiny cert x509 pki certificate authority',
author='Christopher Eck',
author_email='[email protected]',
url='https://github.com/chrisleck/tinycert',
license='MIT',
long_description=__doc__,
packages=['tinycert'],
install_requires=INSTALL_DEPS,
setup_requires=SETUP_DEPS,
tests_require=TEST_DEPS,
platforms='any',
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Security',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)