Skip to main content

falkourier

PyPI Python License: MIT Creator

falkourier Preview

falkourier is a Python library that draws images, sketches, and curves using Fourier series epicycles (rotating circles). It converts any 2D outline into mathematical harmonic frequencies and animates the drawing process.

Created by @falkomeai.


Installation

pip install falkourier

Quick Start

1. Web Studio UI

The easiest way to use it is through the interactive web interface:

falkourier-studio

This launches a local web app in your browser where you can upload an image, tune the number of harmonics, preview the epicycles live, and export MP4 videos.

2. Command Line

You can also generate videos directly from your terminal:

# Render a video from an image
falkourier --image portrait.jpg --n 500 --save output.mp4

# Render vertical 9:16 format (for Instagram Reels or TikTok)
falkourier --shape hummingbird --n 300 --format reels --save reel.mp4

# Render from built-in curves
falkourier --shape heart --n 200 --save heart.mp4

3. Python Code

import falkourier as fk

# 1. Use a built-in curve or extract from an image
path = fk.SHAPES["hummingbird"]()
# path = fk.extract_boundary_contour_path("portrait.jpg", target_points=2048)

# 2. Fit Fourier series
fit = fk.fit_fourier(path[:, 0], path[:, 1], n_harmonics=500)

print(f"X harmonics: {len(fit['x_coeffs']['an'])}")
print(f"Y harmonics: {len(fit['y_coeffs']['cn'])}")

Built-in Shapes

You can try out any of the built-in mathematical curves: hummingbird, heart, star, butterfly, infinity, spiral, rose.

import falkourier as fk

curve = fk.SHAPES["butterfly"]()

Author & License

Metadata

Release files for falkourier 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for falkourier 1.0.2
File Size Uploaded Provenance Actions
falkourier-1.0.2.tar.gz 71.0 kB Without provenance Details for falkourier-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for falkourier 1.0.2
File Interpreter ABI Platform Actions
falkourier-1.0.2-py3-none-any.whl Python 3 none any Details for falkourier-1.0.2-py3-none-any.whl

Total release size: 140.0 kB

Release files / falkourier-1.0.2.tar.gz

Download URL falkourier-1.0.2.tar.gz
Size 71.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d635766c7e60a43669e0f6048b5c53f0cf388ec0610568a7a83698392adf3147
BLAKE2b-256 checksum
How to use checksums
3eb1943db38983b8bfa1600dc4ffff9d74d37b1f464e509543d840f5cffb5770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / falkourier-1.0.2-py3-none-any.whl

Download URL falkourier-1.0.2-py3-none-any.whl
Size 69.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e38c1c34a09d0347d292710b1210c53bec4dd154ec4ffa67e2086def9b871958
BLAKE2b-256 checksum
How to use checksums
ed5a542f88acef85736c1417a77e36da120edef739b2b29991a8f56b0d2bd852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for falkourier 1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page