pymediumapi
Table of Contents
About The Project
pymediumapi is a Python3 package to interact with the API of Medium
Getting Started
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Prerequisites
Make sure to have python3, pip installed.
Installation
- Get a free Integration token at https://medium.com/ and create an enviroment variable
export MEDIUM_INTEGRATION_TOKEN=<your token> - Clone the repo
git clone https://github.com/andregri/pymediumapi.git
- Create a virtual environment and install requirements
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
Usage
Example to authenticate and get a list of pubblications you subscribed:
import os
import pymediumapi
def main():
client = pymediumapi.Client(os.environ.get('MEDIUM_INTEGRATION_TOKEN'))
try:
client.authenticate()
except Exception as e:
print("Failed authentication: " + str(e))
quit()
try:
pubblications = client.get_pubblications()
except Exception as e:
print("Failed get pubblications: " + str(e))
quit()
if pubblications:
pub_id = pubblications[0]["id"]
try:
contributors = client.get_contributors(pub_id)
except Exception as e:
print("Failed getting contributors: " + str(e))
else:
print(contributors)
else:
print("There are no pubblications")
quit()
if __name__ == "__main__":
main()
Roadmap
- [] Upload post under pubblications
- [] Upload images
- [] Upload the package
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.md for more information.
Contact
Andrea Grillo - @AndreaGrillo96
Project Link: https://github.com/andregri/pymediumapi
Acknowledgments
Metadata
Release files for pymediumapi 0.0.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 | Actions |
|---|---|---|---|---|
| pymediumapi-0.0.2.tar.gz | 8.1 kB | Without provenance | Details for pymediumapi-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymediumapi-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pymediumapi-0.0.2-py3-none-any.whl |
Total release size: 16.5 kB
Release files / pymediumapi-0.0.2.tar.gz
| Download URL | pymediumapi-0.0.2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce79e889d9f5ec3c671a6106e7c748567d533ee26b07e24902e21b8a16816d48
|
|
BLAKE2b-256 checksum How to use checksums |
8ff98e4238fb61dbbd61531fa240f6cff7fdb2219260f1de8642282c32e76d30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.8
|
Release files / pymediumapi-0.0.2-py3-none-any.whl
| Download URL | pymediumapi-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51f8fd22699817a5d1714db01fdad4eb0bf27e955fe2af8f5a8a9a2794aaa674
|
|
BLAKE2b-256 checksum How to use checksums |
78c24a9b2597a34dd3e6f4fa283b83a1ea6d3b813ead8b835b4cfb944790a7aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.8
|
Security for pymediumapi 0.0.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.