Skip to main content

Ultimate PyFoam

Project description

Ultimate PyFoam

https://doc.cfd.direct/openfoam/user-guide-v8/basic-file-format

PyPI Status Python Version License

Read the documentation at https://py2of.readthedocs.io/ Tests Codecov

pre-commit Black

Features

  • TODO

Requirements

  • TODO

Installation

You can install Ultimate PyFoam via pip from PyPI:

$ pip install py2of

Usage

Please see the Command-line Reference for details.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Ultimate PyFoam is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

Python virtual environment cheatsheet

Which python/pip am I using?

which python
which pip

List python packages installed using pip

pip list

Use venv to create new virtual environment called for example test_env in the current working directory

python -m venv test_env

Start using test_env virtual environment

source test_env/bin/activate

which python should now show you the path to /something/test_env/bin/python

If you now do for example pip install numpy, numpy will be installed only into the test_env virtual environment. pip list will show that only pip, setuptools and numpy are installed.

Stop working in the current virtual environment

deactivate

Install another python version, for example 3.11.0

pyenv install 3.11.0

List installed python versions

pyenv versions

Start using python 3.11.0

pyenv local 3.11.0

Command python should now open a python shell on version 3.11.0

Now you should be able to create a virtual environment with this new python version :)



Poetry is a tool for dependency management and packaging in Python. Moreover, it can create it's own virtual environments, which makes your life easier. If you're in a folder of a project which uses Poetry (for example the Claudio's template we're using is such a project), you can find out which virtual environment this project is using by

poetry env info

If you want to start using this environment in your terminal, you don't have to do the whole source /something/activate thing anymore, you can just type

poetry shell

and the environment will be activated.

If you want to update a package, or a python version, you can do so manually in a file pyproject.toml. For example, you might rewrite python version from ^3.7 to ^3.8. If you update the pyproject.toml like this, you must update poetry.lock by doing

poetry lock

In poetry.lock you can find all the packages and versions which your project is using. In order to add a new package, for example numpy, type

poetry add numpy

If you don't know which command to use, or what all the possibilities offered by the tool you are using are, there are multiple sources where to look.

You can always try to run the tool with no arguments like this (not just poetry):

poetry

which usually outputs some information about usage and a list of available commands.

If that is not enough, there is usually some kind of official documentation which is only one google search away: https://python-poetry.org/docs/basic-usage/

In case of desperation, you might want to try going to Stack Overflow https://stackoverflow.com/.

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

py2of-0.1.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

py2of-0.1.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file py2of-0.1.1.tar.gz.

File metadata

  • Download URL: py2of-0.1.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-47-generic

File hashes

Hashes for py2of-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f3eb8ad1e617cc4278bcf8b114e0ca48003f2a05c3345a97bde40d763689207f
MD5 bbbeb312f879b696132f2964a6e29948
BLAKE2b-256 05309e0837d1d40844d9359b2e95dc058efe6abd81d2af859eecf3077b3a3b94

See more details on using hashes here.

File details

Details for the file py2of-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py2of-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-47-generic

File hashes

Hashes for py2of-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 153b6accbf7ac98d02624c121ed173822a035ee33184038a2fe8df7e9ab799c4
MD5 4c601bdad897e04baf0be350512aea0c
BLAKE2b-256 4bb509030eed1ff1236b525a288f02f1dc7e403d60a32abec28a0015f90b5543

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