epicycler
Epicylces have been used for millenia to describe the motion of planets; even Copernicus still used them. They got out of fashion when Kepler thought about ellipses, but one can still fool around with epicycles a bit. See mathologer's awesome video about it (which in fact motivated this little package).
Create animations from polygons
Given a number of 2D polygonal points, epicycler creates nice animations. For example, the above is created with
epicycler-poly \
0.0 0.0 \
1.0 0.0 \
1.0 2.0 \
-0.5 1.1 \
-0.5 2.1 \
--xylim -1.5 +2.0 -1.3 3.0
See
epicycler-poly -h
for more options.
Installation
epicycler is available from the Python Package Index, so simply type
pip install -U epicycler
to install or upgrade.
Create animations from image files
Given a (small) linedrawing image file like the above seagull, epicycler can create an animation from it
epicycler-image in.png -c 0.5
Use the -c option for reducing the number of circles by cutting off those smaller than
the given threshold radius; notice then how the polygon points are not followed exactly:
Creating a GIF
ffmpeg -i out.mp4 -r 10 'frame-%03d.png'
convert -delay 5 -loop 0 frame-*.png out.gif
Testing
To run the epicycler unit tests, check out this repository and type
pytest
Distribution
To create a new release
-
bump the
__version__number, -
publish to PyPi and GitHub:
make publish
License
epicycler is published under the MIT license.
Metadata
Release files for epicycler 0.1.0
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 |
|---|---|---|---|---|
| epicycler-0.1.0.tar.gz | 5.7 kB | Without provenance | Details for epicycler-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| epicycler-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for epicycler-0.1.0-py2.py3-none-any.whl |
Total release size: 11.9 kB
Release files / epicycler-0.1.0.tar.gz
| Download URL | epicycler-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c668b25b3f442caaba6f0e40ba983f29319a1636b6b01b4a0960d23c53e3bde2
|
|
BLAKE2b-256 checksum How to use checksums |
95d091039685ca05622674c6e37365b88654ee02d00c3fc14793d8262d194677
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / epicycler-0.1.0-py2.py3-none-any.whl
| Download URL | epicycler-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
713cd98c6cbc8f23264ab15d24b5ea2d9860d4cb84e83c6a8f608b01c8e2bf8a
|
|
BLAKE2b-256 checksum How to use checksums |
8b970969201180856ad1c7d5d41056aa44b9b708c50ccf6372c8fba75de7daa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for epicycler 0.1.0
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.