Skip to main content

Plain Client

A Python client for Plain GraphQL API

build PyPI version


Documentation: https://frankie567.github.io/plain-client/

Source Code: https://github.com/frankie567/plain-client


[!IMPORTANT] This client is generated automatically using:

Quickstart

pip install plain-client
from plain_client import Plain

client = Plain("https://core-api.uk.plain.com/graphql/v1", {"Authorization": "Bearer YOUR_API_KEY"})

async def get_thread():
    return await client.thread("THREAD_ID")

Development

Setup environment

We use Hatch to manage the development environment and production build. Ensure it's installed on your system.

Generate the client

You can trigger a generation of the client with:

hatch run generate

It'll automatically download latest schema, fragments, mutations and queries provided by Plain.

Run unit tests

You can run all the tests with:

hatch run test:test

Publish a new version

You can bump the version, create a commit and associated tag with one command:

hatch version patch
hatch version minor
hatch version major

Your default Git text editor will open so you can add information about the release.

When you push the tag on GitHub, the workflow will automatically publish it on PyPi and a GitHub release will be created as draft.

Serve the documentation

You can serve the Mkdocs documentation with:

hatch run docs-serve

It'll automatically watch for changes in your code.

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for plain-client 0.0.3

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

Source distribution (sdist)

Source distribution for plain-client 0.0.3
File Size Uploaded
plain_client-0.0.3.tar.gz 47.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plain-client 0.0.3
File Interpreter ABI Platform
plain_client-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 115.1 kB

Release files / plain_client-0.0.3.tar.gz

Download URL plain_client-0.0.3.tar.gz
Size 47.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b6a90aa6ed8ed8d5d4b74cc6b030fce744281f39e98d4a5087421f977238fcc
BLAKE2b-256 checksum
How to use checksums
176da4c992c3d9ee9606112fd3dda17318358e05882b14986817ac8b81f7ac49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via python-httpx/0.28.1

Release files / plain_client-0.0.3-py3-none-any.whl

Download URL plain_client-0.0.3-py3-none-any.whl
Size 67.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9377119ae75003120c054269f2f36197d906b42a66ecf3a753de4b406c815f2c
BLAKE2b-256 checksum
How to use checksums
157815fa2a778c1ce868701d0b8c164a00c9e122db76745f299458840f425746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via python-httpx/0.28.1

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release 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