Skip to main content

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


Download files

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

Source Distribution

morph_cli-0.2.39.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

morph_cli-0.2.39-py3-none-any.whl (47.7 kB view details)

Uploaded Python 3

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

Hashes for morph_cli-0.2.39.tar.gz
Algorithm Hash digest
SHA256 87ccf0061188ebb9823edef3d7af6fa0495b95972581c4c25578d9b402c8bde3
MD5 a02d09b1740f3b43f75c97ebc42c3587
BLAKE2b-256 85c4c0fd71429a8bcdabb3fb393f2d8f1703428559a6b17180434a962e4e36ea

See more details on using hashes here.

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

Hashes for morph_cli-0.2.39-py3-none-any.whl
Algorithm Hash digest
SHA256 d79a3a961d509ce7825e2744655c9a5f8036e6dcf62ec582aa1b64782a6f37ca
MD5 809dbc79757c88aae29f82ffc6bd2ec9
BLAKE2b-256 356bcf560aac7eedbb7e65d3f197171210a4c372b29219bdc20ed1e7e60ca6aa

See more details on using hashes here.

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