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.40.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

morphdb_utils-0.2.40-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: morphdb_utils-0.2.40.tar.gz
  • Upload date:
  • Size: 37.8 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.40.tar.gz
Algorithm Hash digest
SHA256 3fb566b662e3b5cbe1e7a87dae82bdfc68cd1af37e0231d73ae776dc0994836b
MD5 c0cae3b145770b034356970bd43ff75c
BLAKE2b-256 3a769751f0b9fbeb0afa11060cd39efd8533481fef838e4e08887a356772e581

See more details on using hashes here.

File details

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

File metadata

  • Download URL: morphdb_utils-0.2.40-py3-none-any.whl
  • Upload date:
  • Size: 47.8 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.40-py3-none-any.whl
Algorithm Hash digest
SHA256 48dc3c05bc59879d4c30c8db99ee9540e51242e9c77710ad1ddfee3e1d5389c7
MD5 65f4d97f2bddf6531c8d4e437fb88ee6
BLAKE2b-256 aa7590268237bdb75e6ebfdf3df527695f48c78d005ae789289fc31e94bce5da

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