Skip to main content

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-test to run unit tests or run tox to 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

  1. Bump version numbers in setup.py
  2. Run make publish and authenticate with our PyPi credentials.
  3. We only publish new versions from the main branch. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

source_aggregation-0.4.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

source_aggregation-0.4.1-py2.py3-none-any.whl (4.8 kB view details)

Uploaded Python 2Python 3

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

Hashes for source_aggregation-0.4.1.tar.gz
Algorithm Hash digest
SHA256 0ca077085c055c63cb78d7226af27f2a483b26837e156477fbaa1ac14df3afa5
MD5 50c4046193d6d750ee414e04b146ebab
BLAKE2b-256 345c7ce9043385c0df4f50accb96fc5a1749e572942b556353e94c1335c2b7f8

See more details on using hashes here.

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

Hashes for source_aggregation-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 19a11b7033376b966b27f2649b5b78f58421137063718ccb02cfb2bf731e57ba
MD5 f6cf3877d940c27fc8ef22b3d77a8c99
BLAKE2b-256 cfb2944257b5e1cf8c47a4178f5a92923e307ccf3cb3f2b8c7312c86fe2d2331

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page