An API wrapper for the Source Aggregation Service.
Project description
API wrapper for the Source Aggregation Service (Python)
Requirements
- Python 3.8+
- Make
Setup for development
- Create a virtual env:
python -m virtualenv venv - Install development dependencies:
python -m pip install -e ".[dev]" - Run
make unit-testto run unit tests or runtoxto run unit tests for all support python versions. - If you have an instance of the Source Aggregation Service available, you can run integration tests with
make integration-test.
New PRs are opened against develop. We merge to main when we want to publish a new version.
Publishing a new version
- Bump version numbers in setup.py
- Run
make publishand authenticate with our PyPi credentials. - We only publish new versions from the
mainbranch. We use git tags for new releases.
About the SAS
The SAS, short for Source Aggregation Service, is a system developed by Wepublic. It only has a private API available, that's not meant for public use.
How to use
Take the following example. In this example we want to get a list of artifacts:
from source_aggregation import ApiClient
ENDPOINT = 'https://sas.publicaffairs.dev'
TOKEN = 'jwt-token'
client = ApiClient(ENDPOINT, ENDPOINT)
artifacts = client.artifacts.list()
print(artifacts)
Contact / maintainers
Jonathan (stakeholderintel@wepublic.nl) is the maintainer of this package.
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 source_aggregation-0.4.1.tar.gz.
File metadata
- Download URL: source_aggregation-0.4.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ca077085c055c63cb78d7226af27f2a483b26837e156477fbaa1ac14df3afa5
|
|
| MD5 |
50c4046193d6d750ee414e04b146ebab
|
|
| BLAKE2b-256 |
345c7ce9043385c0df4f50accb96fc5a1749e572942b556353e94c1335c2b7f8
|
File details
Details for the file source_aggregation-0.4.1-py2.py3-none-any.whl.
File metadata
- Download URL: source_aggregation-0.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19a11b7033376b966b27f2649b5b78f58421137063718ccb02cfb2bf731e57ba
|
|
| MD5 |
f6cf3877d940c27fc8ef22b3d77a8c99
|
|
| BLAKE2b-256 |
cfb2944257b5e1cf8c47a4178f5a92923e307ccf3cb3f2b8c7312c86fe2d2331
|