certn-python
A python client for Certn API
Installation
pip install certn-python
Requirements
requests>=2,<3
Basic Usage
Submit an application and check its results
from certn import Client
import time
client = Client(username='*****' password='***')
body = {
"information": {
"first_name": "Fake",
"last_name": "Name",
"date_of_birth": "1987-03-04",
"addresses": [
{
"address": "123 fakestreet",
"city": "VICTORIA",
"province_state": "BC",
"country": "CA"
}
]
}
}
application = client.Applications.quick(body)
while application.status == 'Analyzing':
time.sleep(5) # 2-10 seconds to process, but can occasionally take up to 300 seconds
application = client.Applicants.get(application.id)
print('Application has returned!')
client.logout()
Invite an applicant to apply
from certn import Client
client = Client(username='*****' password='***')
body = {
'email': 'fake@fake.com',
'email_applicants': False
}
application = client.Applications.invite(body)
client.logout()
List all the logged in sessions and log them all count
from certn import Client
client = Client(username='*****' password='***')
client.Auth.list()
client.Auth.logout_all()
add a property, list, get the property information and remove the property
from certn import Client
client = Client(username='*****' password='***')
body = {
'address': '123 fakestreet',
'city': 'VICTORIA',
'province_state': 'BC',
'owner_id': client.user_id,
}
property = client.Properties.add(body)
client.Properties.list()
client.Properties.get(property.get('id'))
client.Properties.delete(property.get('id'))
client.logout()
add a listing, list, get the listings information and remove the listing
from certn import Client
client = Client(username='*****' password='***')
body = {
'address': '123 fakestreet',
'city': 'VICTORIA',
'province_state': 'BC',
'owner_id': client.user_id,
}
property = client.Properties.add(body)
body = {
'rent': 1000,
'owner_id': client.user_id,
'property_id': property.get('id'),
'notification_list_ids': [],
}
listing = client.Listings.add(body)
client.Listings.list()
client.Listings.get(listing.get('id'))
client.Listings.delete(listing.get('id'))
client.Properties.delete(property.get('id'))
client.logout()
can also be called alternatively
from certn import Client
with Client(username, password) as client:
client.Listings.list()
Authors
certn-python was written by Bungalow Living <engineering@bungalow.com>.
certn-python was written by Bungalow Living.
Metadata
Release files for certn-python 1.2.3
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 | Actions |
|---|---|---|---|---|
| certn-python-1.2.3.tar.gz | 8.4 kB | Without provenance | Details for certn-python-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| certn_python-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for certn_python-1.2.3-py3-none-any.whl |
Total release size: 19.0 kB
Release files / certn-python-1.2.3.tar.gz
| Download URL | certn-python-1.2.3.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35720876a6055ad45e1aa26d69a8f062d0c7be55c10251b348781371927dc1fe
|
|
BLAKE2b-256 checksum How to use checksums |
cb9682e641101ebfddd59397b4c0005be3dbb3dceccf562a9af3af28e76f5c1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / certn_python-1.2.3-py3-none-any.whl
| Download URL | certn_python-1.2.3-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f633f1d6a1ce704061f08ee057b6fc91406a10f5875e6e887c1514111c90296
|
|
BLAKE2b-256 checksum How to use checksums |
816b1a0e5f10cfc730c013b78378a4592f1bf3ab12b993507a5b2fb3004b1d08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Security for certn-python 1.2.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.