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


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

morphdb_utils-0.2.38.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

morphdb_utils-0.2.38-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file morphdb_utils-0.2.38.tar.gz.

File metadata

  • Download URL: morphdb_utils-0.2.38.tar.gz
  • Upload date:
  • Size: 28.2 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 morphdb_utils-0.2.38.tar.gz
Algorithm Hash digest
SHA256 307fe47c72f476164b8987128a85e0095a476fb0ac42eb1463c540e1ac14b624
MD5 2def1475af2b79b1825ecf906925bd75
BLAKE2b-256 30d04eefc8324ab479146fd38132428be1eed1e2f2035b704e94a7725365be5b

See more details on using hashes here.

File details

Details for the file morphdb_utils-0.2.38-py3-none-any.whl.

File metadata

  • Download URL: morphdb_utils-0.2.38-py3-none-any.whl
  • Upload date:
  • Size: 34.9 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 morphdb_utils-0.2.38-py3-none-any.whl
Algorithm Hash digest
SHA256 10e93d82853338429ca2f6d3bb43f31c708b2423d801c34563099d26bc5012cc
MD5 973eb9438f9a72f72eb04a0f894639c2
BLAKE2b-256 700743fab8a8f498284ff68147e9aa7e46ad9dfc6a6ab1881db1e934864ea049

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