Skip to main content

Petroluem production engineering calculations package. Inspired by Unifloc VBA.

Project description

neftpy


tips

для работы внутри проекта оказалось удобным to install the project in editable mode.

This way, all files will be able to locate each other, always starting from your project root directory. In order to do this, follow these steps:

  1. write a setup.py file and add it to your project root folder - it doesn't need much info at all:
# setup.py
from setuptools import setup, find_packages

setup(name='MyPackageName', version='1.0.0', packages=find_packages())
  1. install your package in editable mode (ideally from a virtual environment). From a terminal in your project folder, write
$ pip install -e .

Note the dot - this means "install the package from the current directory in editable mode".

  1. your files inside the project are now able to locate each other, always starting from the project root. To import Objective, for example, you write:
from mod.mods import Objective

This will be true to import Objective for any file, no matter where it is located in the project structure.

you should use a virtual environment for this, so that pip does not install your package to your main Python installation (which could be messy if your project has many dependencies).

https://stackoverflow.com/questions/56806620/how-to-import-modules-from-parent-sub-directory


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

neftpy-0.2.tar.gz (9.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neftpy-0.2-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

Details for the file neftpy-0.2.tar.gz.

File metadata

  • Download URL: neftpy-0.2.tar.gz
  • Upload date:
  • Size: 9.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for neftpy-0.2.tar.gz
Algorithm Hash digest
SHA256 853a47c835c1f529ed4a93010c25a979e497f5fcba2c63659f3b62dfa0035447
MD5 7001235124eceb2c136c12fc1d8bca59
BLAKE2b-256 e2efb29d2c837031733e150b46b3f571291febad7f5221695d902a6a2cce32ba

See more details on using hashes here.

File details

Details for the file neftpy-0.2-py3-none-any.whl.

File metadata

  • Download URL: neftpy-0.2-py3-none-any.whl
  • Upload date:
  • Size: 45.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for neftpy-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73cf4996261cbd5a9781b4bf6c081c78200ca14efa40c1eb5d876ab6bcf8dab6
MD5 53c55d1f7fe3665730452e75e645b1da
BLAKE2b-256 b1779cf5eae28687a701489796d0befcca3bd08720d7a3616075934e719aaddf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page