Git Product home page Git Product logo

purr's Introduction

Purr

Installation

Prerequisites

  • Python 3.7 or higher

Using Poetry

Install dependencies using Poetry.

poetry install

Build. poetry build

Install. pip install -e .

Add to PATH

Make sure to add the purr executable to your system's PATH, or you can use it directly from the repository folder.

Usage

The general syntax to run a script is:

purr <clump> <script> [script_args]

Examples

# Run the 'mirror' script from the 'image' clump with sample.jpg and --east flag
purr image mirror sample.jpg --east

Development Notes

Running the App in Development

  1. Open a terminal and navigate to the project directory.
  2. Activate the Poetry environment.
    poetry shell
  3. Run the application.
    python main.py [arguments]

Dependency Management

Dependencies are managed via Poetry. To add a new dependency:

poetry add <package_name>

Script and Clump Dependencies

If a script or a clump has specific dependencies, consider creating a separate pyproject.toml under that clump or script folder for better dependency isolation.

How to Add New Scripts

  1. Create a new folder under the appropriate "clump" inside ./clumps/.
  2. Add an entry.py file, which will serve as the entry point for your script.
  3. Implement your script in entry.py.

Example folder structure:

- clumps/
  - image/
    - mirror/
      - entry.py

Example entry.py:

import typer

def main(image_path: str, east: bool = typer.Option(False, '--east')):
    # Your script logic here

if __name__ == '__main__':
    typer.run(main)

purr's People

Contributors

petebrooks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.