Linear Python
A Python client for the Linear API.
Requirements
- Python 3.7+
- Required packages (automatically installed):
- requests
- python-dotenv
- strawberry-graphql
- pydantic
- typing-extensions
Installation
The package and all its dependencies can be installed via pip:
pip install linear-python
Usage
Configuration
Retrieve your personal Linear API Key, and then initialize the python Linear client:
from linear_python import LinearClient
client = LinearClient("<Linear API Key Here>")
You're now ready to use linear-python! Below are a few sample functions you can call.
Get Current User (Viewer)
viewer = client.get_viewer()
Create an Issue
issue_data = {
"teamId": "your-team-id",
"title": "New bug report",
"description": "Description of the issue"
}
new_issue = client.create_issue(issue_data)
Resources
License
MIT License
Metadata
Release files for linear-python 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| linear_python-0.2.2.tar.gz | 8.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| linear_python-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / linear_python-0.2.2.tar.gz
| Download URL | linear_python-0.2.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac0f1c71e24417aafe5b90345bf2c620d4fae7828a6e1c29326b666b9228daa1
|
|
BLAKE2b-256 checksum How to use checksums |
3affc6219703ee7bcf6064042fea540aef2181e3e49121bf130fcd20c814d682
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.7
|
Release files / linear_python-0.2.2-py3-none-any.whl
| Download URL | linear_python-0.2.2-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f25b2b9ae14615c770aa3383d46967739b6d5a7500871bdc959b558f6910b4e2
|
|
BLAKE2b-256 checksum How to use checksums |
14a5885d7993157bd611329e14e85f3049ef1f256128abd0432f97b60ce009b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.7
|
Security for linear-python 0.2.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.