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 ‘.[morph-project]

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.

How to Publish

This project uses poetry to manage dependencies and packaging. To publish a new version of the package, run the following command:

First, update the version in pyproject.toml file.

poetry version patch
git commit -am "Bump version"
git push origin main

If you want to update the version of morph-lib, you can do it by editing the template file:

vim core/morph/task/template/pyproject.toml
git commit -am "Update template file"
git push origin main

Publish the package:

poetry publish --build

How to Install the package

First, create a virtual environment and activate it:

python -m venv venv
source venv/bin/activate

Install the dependencies:

pip install morph-lib
pip install 'morph-lib[morph-project]'

Import the package:

 python
Python 3.11.8 (main, Jun 11 2024, 14:34:56) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from morph import MorphGlobalContext

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_lib-0.0.1.tar.gz (79.6 kB view details)

Uploaded Source

Built Distribution

morph_lib-0.0.1-py3-none-any.whl (116.8 kB view details)

Uploaded Python 3

File details

Details for the file morph_lib-0.0.1.tar.gz.

File metadata

  • Download URL: morph_lib-0.0.1.tar.gz
  • Upload date:
  • Size: 79.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.1 Darwin/23.6.0

File hashes

Hashes for morph_lib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fb72372fa59de1eacbb1fd9ce5552e3908ce84e3c8042a8dad89b4f605d2ce15
MD5 5666d0f30d9ee828266ef3789bb8163c
BLAKE2b-256 57b7a37ad882de5da875eff2f7ed245a293d21afd4caea98cc39027d2c2747f5

See more details on using hashes here.

File details

Details for the file morph_lib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: morph_lib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 116.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.1 Darwin/23.6.0

File hashes

Hashes for morph_lib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1183b31c6f60614f56dae30db2eab1c2ffcb06df745db30d4082b9a12359c657
MD5 6bd1f263d787f2f3189415a0e9f40e8b
BLAKE2b-256 2258dc281b421d7db2e225497c4a76ffa5bdab0eda667ef8103a6a7e12edfc34

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