ServiceAPI, a base class for APIs which talk to a service, typically a web service via HTTP.
Latest release 20230217: Initial release.
An instance of a ServiceAPI embodies some basic features
that feel common to web based services:
- a notion of a login
- local state, an
SQLTagsfor data about entities of the service - downloads, if that is a thing, with
FSTagsfor file annotations
Class HTTPServiceAPI(ServiceAPI, cs.resources.MultiOpenMixin, cs.context.ContextManagerMixin)
HTTPServiceAPI base class for other APIs talking to HTTP services.
Subclasses must define:
API_BASE: the base URL of API calls. For example, thePlayOnAPIdefines this asf'https://{API_HOSTNAME}/v3/'.
Class RequestsNoAuth(requests.auth.AuthBase)
This is a special purpose subclass of requests.auth.AuthBase
to apply no authorisation at all.
This is for services with their own special purpose authorisation
and avoids things like automatic netrc based auth.
Class ServiceAPI(cs.resources.MultiOpenMixin, cs.context.ContextManagerMixin)
SewrviceAPI base class for other APIs talking to services.
Release Log
Release 20230217: Initial release.
Release files for cs-service-api 20230217
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs.service_api-20230217.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cs.service_api-20230217-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / cs.service_api-20230217.tar.gz
| Download URL | cs.service_api-20230217.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74a420d228c49d0056abdb2acd39ba41d9e53ab31d00736c4e9b438669188212
|
|
BLAKE2b-256 checksum How to use checksums |
ee7b20282d177bcb9f21e1d63b5fe181bfd76300457f6ecdebf73a1349ca07e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / cs.service_api-20230217-py3-none-any.whl
| Download URL | cs.service_api-20230217-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
790d50cc8df4ae6cbde5a657c5b0187c6e637c4c1485c60da3786537806a0e9e
|
|
BLAKE2b-256 checksum How to use checksums |
742ada2cbc3353e796bce2d9f129dcea4a4fb4a6cfb78482a66a412ae7bd2803
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|