Skip to main content

generate jsfiddle files

Project description


$ [sudo] pip install jsfiddle-generator

How it works

jsfiddle github repo files:

├── demo.html
├── demo.css
├── demo.js
├── demo.details

jsfiddle github gist files:

├── fiddle.html
├── fiddle.css
├── fiddle.js
├── fiddle.manifest


class __doc__
jsfiddle_generator.JSFiddle attrs: path, css, js, html, name, description, resources. methods: create()
jsfiddle_generator.JSFiddleGist github gist files generator
jsfiddle_generator.JSFiddleRepo github repo files generator

Executable modules

usage __doc__
python -m jsfiddle_generator.gist path ... generate jsfiddle gist files: fiddle.css, fiddle.js, fiddle.html, fiddle.manifest
python -m jsfiddle_generator.repo path ... generate jsfiddle repo files: demo.css, demo.js, demo.html, demo.details


create demo.css, demo.js, demo.details in every dir with demo.html:

$ find . -name "demo.html" -exec python -m jsfiddle_generator.repo {} \;

create jsfiddle repo files in every empty dir:

find . -not -path '*/\.*' -type d -links 2 -exec python -m jsfiddle_generator.repo {} \;

paths with spaces:

OS speed command
any slow find ... -exec python -m jsfiddle_generator.repo {} \;
Linux fast find ... -print0 | xargs -d '\n' python -m jsfiddle_generator.repo
macOS fast find ... -print0 | xargs -0 python -m jsfiddle_generator.repo

Related projects



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jsfiddle-generator, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size jsfiddle-generator-2019.4.13.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page