Skip to main content

Python package that allows a user to easily import local functions from parent folders.

Project description

import-parent

A small utility for importing Python modules using paths relative to the calling script — without modifying your project structure.

Modifies sys.path, which is maybe kinda janky, but it works and will make life easier than having to run pip install -e . in every project.

Questions? Ask at


Installation

pip install import-parent

Usage

from import_parent import import_parent

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

import_parent-0.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

import_parent-0.0.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file import_parent-0.0.2.tar.gz.

File metadata

  • Download URL: import_parent-0.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for import_parent-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5e094ff9ae55558875fad604f9a5e7e17b629b5e6d8fab4f01644aeffe409e74
MD5 9e295d92513e94373b265dd0684da3e7
BLAKE2b-256 3925f9e318f99721a2b410a73048a857d6a7a1df66b0215d17c797f88dcc39ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for import_parent-0.0.2.tar.gz:

Publisher: pypi-publish.yml on michaelboerman/import_parent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file import_parent-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: import_parent-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for import_parent-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a604a23d4c9bb43f30eba38e9d8e0e4c27f6dcd11369c70ddb80c264d0aa02d
MD5 9a0cf517c04ef213c00225c7bc19eb38
BLAKE2b-256 f7622343e6adb6cbebf540befc00f86d2bd2afdd2136f1150b89fcdd5e62e2d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for import_parent-0.0.2-py3-none-any.whl:

Publisher: pypi-publish.yml on michaelboerman/import_parent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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