Omnivore API Client for Python
Project description
OmnivoreQL: Omnivore API client for Python
This is a Python client for the Omnivore API.
How to use
To use omnivoreql in your Python project, you can follow these steps:
Install the omnivoreql package using pip:
pip install omnivoreql
Import the package into your project and Create a new instance of the client:
from omnivoreql import OmnivoreQL
omnivoreql_client = OmnivoreQL("your_api_token_here")
Use the methods of the OmnivoreQL class to interact with the Omnivore API.
profile = omnivoreql_client.get_profile()
saved_page = omnivoreql_client.save_url("https://www.google.com")
saved_page_with_label = omnivoreql_client.save_url("https://www.google.com", ["label1", "label2"])
articles = omnivoreql_client.get_articles()
username = profile['me']['profile']['username']
slug = articles['search']['edges'][0]['node']['slug']
articles = omnivoreql_client.get_article(username, slug)
subscriptions = omnivoreql_client.get_subscriptions()
labels = omnivoreql_client.get_labels()
from omnivoreql import CreateLabelInput
omnivoreql_client.create_label(CreateLabelInput("label1", "#00ff00", "This is label description"))
Documentation
- Main Omnivore graphql schema is in: schema.graphql
- To contribute to this project: CONTRIBUTING.md
- To more know about Release process: RELEASE.md, PYPI.md
Support
If you find this project useful, you can support it by becoming a sponsor. Your contribution will help maintain the project and keep it up to date.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Star History
Check out our growth in the community:
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
omnivoreql-0.3.4.tar.gz
(21.3 kB
view hashes)
Built Distribution
omnivoreql-0.3.4-py3-none-any.whl
(23.9 kB
view hashes)
Close
Hashes for omnivoreql-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2c6b19cdbdaeaf70047c92baba681561abd2b5c3e150f8634b3ff12d87a574b |
|
MD5 | 6fa7c9fe9e578127cd69e776383d7f65 |
|
BLAKE2b-256 | bc78a8a730c3344cdcb11df97468fb01f1d27f9167cc3d96e9776680c9bb5448 |