paperlesspaper_client
Python client for the Paperlesspaper API
Table of Contents
About
paperlesspaper_client is a python and cli client for the Paperlesspaper API. It supports the v1 of the API. You can find the official documentation of the Paperlesspaper API here.
Installation
With pip (recommend)
Use the following command to install paperlesspaper_client with pip:
pip3 install paperlesspaper_client
You can also very easily update to a newer version:
pip3 install paperlesspaper_client -U
From source
If you want to install the client from source, you can clone the repository and install it with pip:
git clone https://github.com/infinityofspace/paperlesspaper_client.git
cd paperlesspaper_client
pip3 install .
Usage
Set API token via environment variable:
export PAPERLESSPAPER_API_KEY="your-api-token"
paperlesspaper users delete <user-id>
Or pass the token as an option (takes priority over environment variables):
paperlesspaper --api-key "your-api-token" users delete <user-id>
Examples:
paperlesspaper users get <user-id>
paperlesspaper users list <organization-id>
paperlesspaper devices list
paperlesspaper papers create <organization-id> <device-id> <kind>
Optional method arguments are passed as flags. For methods that accept dynamic payload parameters,
use --param key=value (repeatable).
Third party notices
All modules used by this project are listed below:
| Name | License |
|---|---|
| requests | Apache 2.0 |
| setuptools | MIT |
| sphinx | BSD 2 Clause |
| responses | Apache 2.0 |
| ruff | MIT |
This project is not associated with Paperlesspaper or The Wire UG.
Development
Setup environment
First get the source code:
git clone https://github.com/infinityofspace/paperlesspaper_client.git
cd paperlesspaper_client
Now create a virtual environment, activate it and install all dependencies with the following commands:
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
Now you can start developing.
Feel free to contribute to this project by creating a pull request. Before you create a pull request, make sure that you code meets the following requirements (you can use the specified commands to check/fulfill the requirements):
- check unit tests:
pytest - format the code:
ruff format - check linting errors:
ruff check
Tests
Run the tests with the following command:
pytest
Documentation
To build the documentation you can use the following commands:
sphinx-apidoc -f -o docs/source paperlesspaper_client
cd docs && make html
License
MIT - Copyright (c) Marvin Heptner
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 paperlesspaper_client-0.0.2.tar.gz.
File metadata
- Download URL: paperlesspaper_client-0.0.2.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ded7ddcace9a0fb9dedd88a6c7c190b098b6b4eda5ea349b5e5aef5bd595893
|
|
| MD5 |
caf1842f115450e2bc596771654ca975
|
|
| BLAKE2b-256 |
33212181d8b091f474dfd2d9aa5deae3e5aadcdf757ebc472a8ec43c3046f320
|
File details
Details for the file paperlesspaper_client-0.0.2-py3-none-any.whl.
File metadata
- Download URL: paperlesspaper_client-0.0.2-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62795aa813531e0eccc3ff089058c4eaf169e0f69d2abe0718a8e667a09b1ac6
|
|
| MD5 |
619d1c5d0cd2a72a46e185e96be136d5
|
|
| BLAKE2b-256 |
654a158202c7829e5d5054a92040d9cc1bafde92cc0fb0934d9f43d7ffcb2090
|