Savannah CRM Client
This client library wraps the Savannah CRM API, making it easier to import community members and activity from your own Python code.
Usage
Connecting to an API Source
>>> from savannahcrm import SavannahAPISource
>>> source = SavannahAPISource(token='7fbd4b88-5af7-4acf-bc81-f1888cd8f1b2')
>>> print("Source: %s" % source)
Source: Test
>>> print("Source info: %s" % source.info)
Source info: {'community': 'InfluxDB', 'name': 'Test', 'icon_name': 'fab fa-twitter-square', 'first_import': None, 'last_import': '2021-04-20T14:20:12.440415', 'enabled': True}
Adding a Member
>>> new_member = source.add_member(
... origin_id='test-1',
... username='test_user_1',
... name='API Test User',
... email='api@test.com',
... tags=['api-test']
... )
>>> print("Member: %s" % new_member)
Member: {'origin_id': 'test-1', 'username': 'test_user_1', 'name': 'API Test User', 'email': 'api@test.com', 'avatar': None, 'tags': ['api-test']}
Adding a Converation
>>> convo_tstamp = datetime.datetime(2021, 4, 19, 13, 35, 00)
>>> new_convo = source.add_conversation(
... origin_id='test-convo-1',
... speaker='test-1',
... channel='API Test',
... timestamp=convo_tstamp,
... content='Testing savannah-client library for Python',
... location='https://docs.savannahhq.com/api/',
... tags=['api-test', 'python']
... )
>>> print("Conversation: %s" % new_convo)
Conversation: {'origin_id': 'test-convo-1', 'speaker': 'test-1', 'channel': 'API Test', 'timestamp': '2021-04-19T13:35:00', 'content': 'Testing savannah-client library for Python', 'location': 'https://docs.savannahhq.com/api/', 'participants': ['test-1'], 'tags': ['api-test', 'python']}
Adding a Contribution
>>> new_contrib = source.add_contribution(
... origin_id='test-convo-1',
... author='test-1',
... channel='API Test',
... contribution_type='Pull Request',
... timestamp=convo_tstamp,
... title='Built importer using the Savannah API',
... location='https://github.com/SavannahHQ/savannahcrm-client-python',
... tags=['api-test', 'python'],
... conversation='test-convo-1',
... )
>>> print("Contribution: %s" % new_contrib)
Contribution: {'origin_id': 'test-convo-1', 'author': 'test-1', 'contribution_type': 'Pull Request', 'channel': 'API Test', 'timestamp': '2021-04-19T13:35:00', 'title': 'Built importer using the Savannah API', 'location': 'https://github.com/SavannahHQ/savannahcrm-client-python', 'conversation': 'test-convo-1', 'tags': ['api-test', 'python']}
Metadata
Release files for savannahcrm-client 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| savannahcrm-client-0.1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| savannahcrm_client-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / savannahcrm-client-0.1.tar.gz
| Download URL | savannahcrm-client-0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c79cec0edf969c603b34056ea4a374d93657a23750d9dbcaa38b507ae21231e6
|
|
BLAKE2b-256 checksum How to use checksums |
a2ac4e2b8232bf5ed6ab2da7c06b63d0861656ac5a762a4964132204b635d0b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|
Release files / savannahcrm_client-0.1-py3-none-any.whl
| Download URL | savannahcrm_client-0.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02bce8c4acd0f22977ea6d3a925454eceef06511eddd3f4905f8bc5d4c3390a6
|
|
BLAKE2b-256 checksum How to use checksums |
524f0b49abc173f5f749846bd76af48a0ed639a91d02547161c07ef772a81daf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|
Security for savannahcrm-client 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.