A small API wrapper for paperless-ngx dms.
Project description
Paperless API
Async Python wrapper for the paperless-ngx REST API endpoint. Find out more here: https://paperless-ngx.readthedocs.io/en/latest/api.html
It is very simple and stupid. Maybe I will update it in the future to add some nice stuff.
Examples
Request a list of correspondents and print them.
import asyncio
import pypaperless
async def main():
api = pypaperless.PaperlessAPI("http://127.0.0.1:9120", "SUPER_SECRET_API_TOKEN_HERE")
correspondents = await api.get_correspondents()
for data in correspondents:
print(data.raw_data)
asyncio.run(main())
Same is possible for every other endpoint provided by the API, excepting logs.
doctypes = await api.get_document_types()
tags = await api.get_tags()
views = await api.get_saved_views()
documents = await api.get_documents()
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
pypaperless-0.0.6.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for pypaperless-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d65066b7fe4b822121103a5d5e4b6ccd9996b30335c6b142e515ac399b2f8f4c |
|
MD5 | 80ca6efa2dcd32625f62c26bc4d8e8f5 |
|
BLAKE2b-256 | 15e38776d468934598bc2fdd8edd9ceb7aeeca25974d56739df2ed636767f4c6 |