Skip to main content

Ponytor

A small command line utility and python lib to run automated things when files change

Installation

sudo pip install ponytor

Usage - as command line tool

Syntax:

ponytor PATH_TO_WATCH COMMAND_TO_RUN

Example: this will run the working_on_this.py file each time it’s changed (saved).

ponytor working_on_this.py "python working_on_this.py"

Usage - as a python lib

The usage is really simple:

from ponytor import monitor

monitor('/path/to/monitor.txt', function_to_run_on_change)

Example: the same as the command line usage example

from os import system
from ponytor import monitor

def my_callback():
    system('python working_on_this.py')

monitor('working_on_this.py', my_callback)

Or, a simpler way:

from os import system
from ponytor import monitor, build_command_callback

monitor('working_on_this.py', build_command_callback('python working_on_this.py'))

Metadata

Release files for ponytor 0.1.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 ponytor 0.1.2
File Size Uploaded Provenance Actions
ponytor-0.1.2.tar.gz 2.2 kB Without provenance Details for ponytor-0.1.2.tar.gz

Release files / ponytor-0.1.2.tar.gz

Download URL ponytor-0.1.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fec44458b6085958b40c48bd1ff047d92f0ef929654832be13d64f83aa784813
BLAKE2b-256 checksum
How to use checksums
c4fc5775ab1a76eceea7d34b22bf7e6fb0dce16759d89fc5d2a99c7b61601719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ponytor 0.1.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.1.2 This release

1 release file 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