Skip to main content

jsfiddle helper

Project description

Installation

$ [sudo] pip install jsfiddle

Functions

function __doc__
jsfiddle.github_tree() return github_tree string. git remote required
jsfiddle.url() return https://jsfiddle.net/gh/get/library/pure/{github_tree}/ string
jsfiddle.details.load() return a dictorinary with demo.details data
jsfiddle.details.save(data) save a dictionary to a demo.details file

Executable modules

usage __doc__
python -m jsfiddle.details.description path [value] get/set demo.details description
python -m jsfiddle.details.name path [value] get/set demo.details name
python -m jsfiddle.details.resources path [url ...] get/set demo.details resources

Examples

set demo.details resources urls

$ find . -name "demo.details" -exec python -m jsfiddle.details.resources {} https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css https://code.jquery.com/jquery-3.3.1.slim.min.js \;

optimized (xargs -d '\n' Linux, xargs -0 macOS):

find . -name "demo.details" -print0 | xargs -0 grep -Z -L 'https://' | xargs -0 -L1 -I{} python -m jsfiddle.details.resources {} https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css https://code.jquery.com/jquery-3.3.1.slim.min.js \;

Related projects

Links

python-readme-generator

Project details


Download files

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

Source Distribution

jsfiddle-2019.4.8.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

jsfiddle-2019.4.8-py2.py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page