billomat.com API client
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
Deprecation notice
This library is unmaintained! My employer stopped using billomat services. Therefore no fix or update will be done on this project anymore. If you're interested in taking over maintenance, let me know.
Python client for the billomat.com API
The syntax of the client is inspired by the great Django ORM.
Example usage
from billomat import models
from billomat.base import Client
Client.api_name = 'apiname'
Client.api_key = 'apikey'
# set optional app-id and -secret
Client.app_id = 'app_id'
Client.app_secret = 'app_secret'
articles = models.Article.objects.all()
for article in articles:
print unicode(article.title)
articles = articles.filter(title='Awesome')
for article in articles:
print unicode(article.title)
article = models.Article.objects.get(article_number=2)
article.title = u'This is an awesome article'
article.save()
article = models.Article.objects.create(
title=u'This is an awesome article',
)
article.delete()
Django support
Automatic client configuration by django config is supported
BILLOMAT_API_NAME = 'aaa'
BILLOMAT_API_KEY = 'bbb'
BILLOMAT_APP_ID = 'ccc'
BILLOMAT_APP_SECRET = 'ddd'
The client sends 3 django signals:
- billomatclient_request, send before the request
- billomatclient_response, send after the request containing the response
- billomatclient_error, send after a request error containing the exception
Each signal sends a request_id which is a unique identifier (uuid4) for each request to track the status along the signal flow.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file billomat-0.1.32.tar.gz.
File metadata
- Download URL: billomat-0.1.32.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89fbe73738aaef4a27c63d4f1ff75828f9dbb2d83ea4974943738620f8005345
|
|
| MD5 |
7401317e4ce5e71005af5bd7ed4b62c2
|
|
| BLAKE2b-256 |
be66b3219fa4749db6caa2765855fd367e7d67cc997575523c2eda37a1a4f459
|
File details
Details for the file billomat-0.1.32-py3-none-any.whl.
File metadata
- Download URL: billomat-0.1.32-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ab58d3a97038b013a66e1e536231e443c170540941827d04862d08978caf1ba
|
|
| MD5 |
d317b5fc694d3a135fbc41989c800ae8
|
|
| BLAKE2b-256 |
7a74550b6d285c0f8e4657d3cc0ad4c16743dadb25d8c80c334af61943d36f0b
|