Interact with Polly Repositories
Project description
Polly Repositories
polly_repositories
is a Python library for dealing with polly repositories.
Installation
Use the package manager pip to install foobar.
pip install polly-repositories
Usage
from polly_repositories import Repositories
REFRESH_TOKEN = 'YOUR-REFRESH-TOKEN'
repo_client = Repositories(REFRESH_TOKEN)
# Return Data about all current repositories
all_repos = repo_client.get_all_repos()
# Get all packages for a specific repository
repo_packages = repo_client.get_all_packages(repo_id=16)
# Make an ElasticSearch query for given index
query = { 'foo' : 'bar' } # ElasticSearch
response = repo_client.elastic_query(index=INDEX,
query=query)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
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
Close
Hashes for polly_repositories-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34a05bcb65f8b3fb5790d23a79abcc66868360be0be04ee168be07c4f2d42066 |
|
MD5 | 7817911fc42eafa50b0745a19ebb4fbd |
|
BLAKE2b-256 | 44dc8fc064f2a083ed1e396ef30a664b811cb03a7de39981a67b3b67ddc026f8 |