A Python client for the Linear API
Project description
Linear Python
A Python client for the Linear API.
Installation
pip install linear-python
Usage
Configuration
Create an .env file that contains your personal Linear API Key:
LINEAR_API_KEY=your-api-key
Then, you are ready to initialize the python Linear client
from linear_python import LinearClient, Config
client = LinearClient(Config.API_KEY)
Get Current User (Viewer)
viewer = client.get_viewer()
print(f"Current user: {viewer['data']['viewer']['name']}")
Create an Issue
issue_data = {
"team_id": "your-team-id",
"title": "New bug report",
"description": "Description of the issue"
}
new_issue = client.create_issue(issue_data)
print(f"Created issue: {new_issue['data']['issueCreate']['issue']['url']}")
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
linear-python-0.1.0.tar.gz
(5.0 kB
view details)
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.1.0.tar.gz.
File metadata
- Download URL: linear-python-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e3806c58a979554e22e6ab81481877dacc9822b9d3585bc76cc3ebb0bbf0f4e
|
|
| MD5 |
29715ccb391e0406fd46ebf434607e2f
|
|
| BLAKE2b-256 |
abd6b10668d563893f79821943ecd683219ccbd11698da5d8c42cc77bc14d5f4
|
File details
Details for the file linear_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: linear_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
720c6a8d30771d966c90f385497dceea2a8df96bc93018644d9567616838211d
|
|
| MD5 |
e133d4e661b73db9c5bee7f61ff508bd
|
|
| BLAKE2b-256 |
81efc29b0721882f223449a63eb013a8b126a50720b2f7c3e60d6357c3f73493
|