A Python client for the Linear API
Project description
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
Project details
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 linear_python-0.2.2.tar.gz.
File metadata
- Download URL: linear_python-0.2.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac0f1c71e24417aafe5b90345bf2c620d4fae7828a6e1c29326b666b9228daa1
|
|
| MD5 |
164ff0e06e1793e638e4fea693661f94
|
|
| BLAKE2b-256 |
3affc6219703ee7bcf6064042fea540aef2181e3e49121bf130fcd20c814d682
|
File details
Details for the file linear_python-0.2.2-py3-none-any.whl.
File metadata
- Download URL: linear_python-0.2.2-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f25b2b9ae14615c770aa3383d46967739b6d5a7500871bdc959b558f6910b4e2
|
|
| MD5 |
1fe30082cee2c454635ea308f8ed9d03
|
|
| BLAKE2b-256 |
14a5885d7993157bd611329e14e85f3049ef1f256128abd0432f97b60ce009b0
|