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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paperlesspaper_client-0.0.2.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paperlesspaper_client-0.0.2-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

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

Hashes for paperlesspaper_client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9ded7ddcace9a0fb9dedd88a6c7c190b098b6b4eda5ea349b5e5aef5bd595893
MD5 caf1842f115450e2bc596771654ca975
BLAKE2b-256 33212181d8b091f474dfd2d9aa5deae3e5aadcdf757ebc472a8ec43c3046f320

See more details on using hashes here.

File details

Details for the file paperlesspaper_client-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for paperlesspaper_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62795aa813531e0eccc3ff089058c4eaf169e0f69d2abe0718a8e667a09b1ac6
MD5 619d1c5d0cd2a72a46e185e96be136d5
BLAKE2b-256 654a158202c7829e5d5054a92040d9cc1bafde92cc0fb0934d9f43d7ffcb2090

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

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