pfycat
simple module for rudementary usage of gfycat-api for pythoncd de
features
upload files
import pfycat
r = pfycat.Client().upload('banana.gif')
authenticate
r = pfycat.Client("client_id", "client_secret").upload('banana.gif')
upload as user:
r = pfycat.Client(secret.client_id, secret.client_secret, secret.username, secret.password).upload('banana.gif')
dev-notes
running tests
cd pfycat nano tests/secret.py #needs client_id and client_secret env PYTHONPATH=. ./tests/live_test.py
playing around with rest-api
push to pypi
prepare environment:
gedit ~/.pypirc chmod 600 ~/.pypirc sudo apt install pandoc twine pip3 install restview
upload changes to test and production:
pandoc -o README.rst README.md ~/.local/bin/restview --pypi-strict README.rst # update version in setup.py rm -r dist python setup.py sdist twine upload dist/* -r testpypi firefox https://testpypi.python.org/pypi/pfycat twine upload dist/*
test install from testpypi
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pfycat --no-cache-dir --user
test installation
sudo pip install pfycat --no-cache-dir --user
Metadata
Release files for pfycat 0.1.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 |
|---|---|---|---|---|
| pfycat-0.1.2.tar.gz | 3.9 kB | Without provenance | Details for pfycat-0.1.2.tar.gz |
Release files / pfycat-0.1.2.tar.gz
| Download URL | pfycat-0.1.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
537f248bb9cec3c991a740903e6c38ef934d19012ed8f69aad89f924965a7c8a
|
|
BLAKE2b-256 checksum How to use checksums |
add8106a100686b72beed2fefb1f101be792bf74fd6ee4285631cf703a7ddfb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.8
|
Security for pfycat 0.1.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.