No project description provided
Project description
Morph
How to Contribute
Setting up the development environment
This project uses pre-commit to enforce code quality and consistency. To install the pre-commit hooks, run the following command:
pre-commit install
Run poetry install
poetry cache clear --all pypi
poetry update
poetry install --all-extras
Contributing code
You can install your CLI tool locally to test it:
pip install --editable .
This command installs the package in editable mode, which means changes to the source files will immediately affect the installed package without needing a reinstallation.
Available commands
init
Initialize a new Morph project.
Example:
morph init
new
Create a new Morph project directory.
Example:
morph new ~/Downloads/test
run
Run an SQL or Python file and produce the results in the output file.
Example:
# Run a Python file
morph run ~/Downloads/test/src/canvas/canvas1/example_python_cell.py
# Run an SQL file
morph run ~/Downloads/test/src/canvas/canvas1/example_sql_cell.sql
create-file
Create a new file with the specified settings.
Example:
morph create-file ~/Downloads/test/src/canvas/canvas1/hello.py '{"x": 0, "y": 0, "w": 0, "h": 0}' "print('Hello, World!')" transform '[]' English
update-file
Update the content of an existing file.
Example:
morph update-file ~/Downloads/test/src/canvas/canvas1/hello.py "print('Updated content')"
delete-file
Delete a specified file.
Example:
morph delete-file ~/Downloads/test/src/canvas/canvas1/hello.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file morph_cli-0.2.39.tar.gz
.
File metadata
- Download URL: morph_cli-0.2.39.tar.gz
- Upload date:
- Size: 37.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87ccf0061188ebb9823edef3d7af6fa0495b95972581c4c25578d9b402c8bde3 |
|
MD5 | a02d09b1740f3b43f75c97ebc42c3587 |
|
BLAKE2b-256 | 85c4c0fd71429a8bcdabb3fb393f2d8f1703428559a6b17180434a962e4e36ea |
File details
Details for the file morph_cli-0.2.39-py3-none-any.whl
.
File metadata
- Download URL: morph_cli-0.2.39-py3-none-any.whl
- Upload date:
- Size: 47.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79a3a961d509ce7825e2744655c9a5f8036e6dcf62ec582aa1b64782a6f37ca |
|
MD5 | 809dbc79757c88aae29f82ffc6bd2ec9 |
|
BLAKE2b-256 | 356bcf560aac7eedbb7e65d3f197171210a4c372b29219bdc20ed1e7e60ca6aa |