Skip to main content

A very simple Hello world app to submit a job using pycalrissian

Project description

simple-app-with-pycalrissian

Create a simple python app to submit a job using pycalrissian. The app will only print a very basic hello world.

To create mamba environment please execute this command:

mamba create -n hello_world_pycalrissian -c conda-forge python=3.8 twine
mamba activate hello_world_pycalrissian

How to install the module:

To create a module using pyproject.toml with PIP dependencies please execute the code below:

pip install .    # this will create build folder

Note: To create a module using pyproject.toml with conda dependencies in a particular channel please execute the code below:

unidep install .    # this will create build folder

How to create PYPI package(Optional):

You need to install some packages to create dist/* directory including .whl and .tar.gz files:

  • Check the python and pip version by environment
## 
which python
which pip
  • Update pip and install dist folder using the python specific version and build library: EX:
/home/t2/micromamba/envs/hello_world_pycalrissian/bin/python -m pip install --upgrade pip
/home/t2/micromamba/envs/hello_world_pycalrissian/bin/pip install twine build
  • Create API token on PYPI account and configure it under $HOME/.pypirc file as below:
[pypi]
  username = __token__
  password = pypi-...

  • Create dist folder:
/home/t2/micromamba/envs/hello_world_pycalrissian/bin/python -m build

Now you need to publish your application packages on PYPI:

twine upload dist/*

How to use the package in an isolated environment:

pip install hello-world-pycalrissian
hello-world-pycalrissian

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

hello_world_pycalrissian-0.0.8.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

hello_world_pycalrissian-0.0.8-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file hello_world_pycalrissian-0.0.8.tar.gz.

File metadata

File hashes

Hashes for hello_world_pycalrissian-0.0.8.tar.gz
Algorithm Hash digest
SHA256 cecb4047078f1ad590c304697b2f0eea3543cf2b9c410d6800e1918efb631037
MD5 2712a4c172f70e57db4159db3b0a7bb6
BLAKE2b-256 418f8c7f0ba4d1f1ce66cd0d3f494ecfe2b40f96ea6d795b2c0ea2e5b85e8441

See more details on using hashes here.

File details

Details for the file hello_world_pycalrissian-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for hello_world_pycalrissian-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9d83964d039f605853c4f60640dc3bb98518131a8feafe3447e21b60e8969b46
MD5 2031ebe2a7ba646bc83e5e197d1bcc9e
BLAKE2b-256 71e7fba68578ca91f8fd9193e050a9fe592559600aa0394f0e0d1349d4c70e37

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