Skip to main content

paperlesspaper_client

Python client for the Paperlesspaper API


Table of Contents

  1. About
  2. Installation
    1. With pip (recommend)
    2. From source
  3. Usage
  4. Third party notices
  5. Development
    1. Setup environment
    2. Tests
    3. Documentation
  6. License

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

Metadata

Release files for paperlesspaper-client 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paperlesspaper-client 0.0.2
File Size Uploaded Provenance Actions
paperlesspaper_client-0.0.2.tar.gz 14.8 kB Without provenance Details for paperlesspaper_client-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paperlesspaper-client 0.0.2
File Interpreter ABI Platform Actions
paperlesspaper_client-0.0.2-py3-none-any.whl Python 3 none any Details for paperlesspaper_client-0.0.2-py3-none-any.whl

Total release size: 33.2 kB

Release files / paperlesspaper_client-0.0.2.tar.gz

Download URL paperlesspaper_client-0.0.2.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9ded7ddcace9a0fb9dedd88a6c7c190b098b6b4eda5ea349b5e5aef5bd595893
BLAKE2b-256 checksum
How to use checksums
33212181d8b091f474dfd2d9aa5deae3e5aadcdf757ebc472a8ec43c3046f320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / paperlesspaper_client-0.0.2-py3-none-any.whl

Download URL paperlesspaper_client-0.0.2-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62795aa813531e0eccc3ff089058c4eaf169e0f69d2abe0718a8e667a09b1ac6
BLAKE2b-256 checksum
How to use checksums
654a158202c7829e5d5054a92040d9cc1bafde92cc0fb0934d9f43d7ffcb2090
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for paperlesspaper-client 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page