devto.py
devto is a modern Python API client for the Forem API V1, written with aiohttp and pydantic.
At the moment, functionality only allows one to query articles and publish/update an existing article.
Installation
Currently there are no Pypi wheels, use
pip install git+https://github.com/AlejandroGomezFrieiro/devto_py.git
Usage
from devto.client import DevtoClient
from devto.models import DevtoArticle
import asyncio
# Get published articles
async def main():
async with DevtoClient() as client:
return await client.published_articles()
asyncio.run(main())
async def publish_article(article):
async with DevtoClient(api_key = "<API_KEY>") as client:
return await client.publish_article(article)
article = DevtoArticle(
title="title",
body_markdown="Article body"
)
asyncio.run(publish_article(article))
async def edit_article(article):
async with DevtoClient(api_key = "<API_KEY>") as client:
return await client.update_article(article)
asyncio.run(edit_article(article))
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for devto 0.1.3
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 | |
|---|---|---|---|---|
| devto-0.1.3.tar.gz | 39.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| devto-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.5 kB
Release files / devto-0.1.3.tar.gz
| Download URL | devto-0.1.3.tar.gz |
|---|---|
| Size | 39.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b03253d5287d9edb59bcefd6c3302e9b97c23b9cd78bdeafbe5e0bf940864a20
|
|
BLAKE2b-256 checksum How to use checksums |
d7fff5a018d646384a9eb7488371f13953866a2d8c3a1561e1bf98d40763ece9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 5, 2025.
Transparency logRelease files / devto-0.1.3-py3-none-any.whl
| Download URL | devto-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75026291a12eaa7c791ff23af5efb13973735218afe933514fbb0fc24bf84cd8
|
|
BLAKE2b-256 checksum How to use checksums |
7261a43a9cd28c67edc5d891be4cf1d1e57fbcb154f02d597d2a04a589dee74e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 5, 2025.
Transparency logSecurity for devto 0.1.3
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for devto-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 5, 2025.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.