Skip to main content

PYTCHI

Python YouTube Concentric Circles Image

You Huh?? No H in pytcci?

Me Are you serious?

Installation

pip3 install pytchi

Dependancies:

  • opencv-python-headless
  • pycairo
  • python-slugify
  • pytube

Usage

Following code produces:

  • two PNG images: first with concentric circles, second with lines from this video;
  • one PNG image (1000px width) with concentric circles from this video
  • one SVG file with concentric circles from this video using 1 image every 2 seconds and then cleans for it only remains the final image
  • 3 PNG images with concentric circles from this playlist using diagonal line extraction instead of random (default) and reversing images: innermost for first images. Note that URL has just to contain a list variable so that pytchi produces an image for each video of that playlist. Each image is 800x800 pixels.
import pytchi
import os


# 
o = pytchi.pytchi('https://www.youtube.com/watch?v=EelPrEojesM')
o.to_img() # export to png (concentric circles)
o.shape = 'lines'
o.to_img() # export to png (rectangle with lines)
#
p = pytchi.pytchi('https://www.youtube.com/watch?v=IjxkCokODEs')
p.to_img(1_000) # outputs a 1000px image
#
q = pytchi.pytchi('https://www.youtube.com/watch?v=PVyS9JwtFoQ')
q.step = 2 # every 2 seconds of the video (default is 1)
q.to_svg() # export to svg
q.clean(all) # deletes temporary files so that p object is unsable now!
#
# playlist: treat several videos
r = pytchi.pytchi('https://www.youtube.com/watch?v=gxAaO2rsdIs&list=PLZHQObOWTQDOcxqQ36Vow3TdTRjkdSvT-')
r.xmth = 'diagonal' # change extraction method
r.reverse = True # reverse order of inserted images
r.to_img(800)

Outputs

2021 / D. COBAC / CC-BY-NC-SA

Metadata

Release files for pytchi 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 pytchi 0.2
File Size Uploaded Provenance
pytchi-0.2.tar.gz 9.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 26.8 kB

Release files / pytchi-0.2.tar.gz

Download URL pytchi-0.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d2537052f618a260554f6c57fd9575cd127165b55dac7f5c77d20ee25acc5766
BLAKE2b-256 checksum
How to use checksums
3a69c8579c800ae76fdb2b22d1deded07614f614c7758ce3828cec3792dac77d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

Release files / pytchi-0.2-py3-none-any.whl

Download URL pytchi-0.2-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af7db47a4622037e285c3f4b14e5dd02cae6262b1a3346da043ed13283d729b8
BLAKE2b-256 checksum
How to use checksums
a4985c7659df44f4bd310ed5279d64cb1adff431137149cde28c068c17b3ec82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

Security for pytchi 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.

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files No provenance

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