Skip to main content

Easy Package - for Python Build Status PyPI version

Python packages - the simple way.

Background

Had to code Python so ended up abstracting out these Python package related utilities to be able to deal with Python packages which is in a sad state in comparison to most other language environments.

Features

  • Easy package (system) load paths - because package imports and load paths in Python makes adults cry.

  • Easy package tag/release - because package tag/release management should not be done by hand, fallback on conventions.

Install

Install using pip:

pip install easypackage

Usage

How to to make use of easypackage in various ways:

Required

Create a package.json in package root folder (e.g. mypackage) - see Node.js specification, in lack of such for Python.

Easy package load paths

In any package source file:

# e.g. `~/dev/projects/mypackage/foo/foo.py`

def hello:
    print('hello!')

In any other package source file:

# e.g. `~/dev/projects/mypackage/bar/bar.py`

from easypackage import syspath as easysyspath

# add `~/dev/projects/mypackage` to Python system path unless already added
easysyspath.syspath()

from mypackage.utils.foo import foo

foo.hello()

And so on.

Easy package tag/release (WIP/TBA)

In file release.py in package project root:

from easypackage import release as easyrelease

easyrelease.release()

To tag/release a new version to Git, simply add/update a valid semver version tag in package.json - according to Node.js specification - and then run python release.py.

Currently not submitted to any Python package register, but will probably be added soon.

License

Released under the MIT license.

Metadata

Release files for easypackage 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easypackage 0.1.8
File Size Uploaded Provenance Actions
easypackage-0.1.8.tar.gz 13.2 kB Without provenance Details for easypackage-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for easypackage 0.1.8
File Interpreter ABI Platform Actions
easypackage-0.1.8-py2-none-any.whl Python 2 none any Details for easypackage-0.1.8-py2-none-any.whl

Total release size: 33.7 kB

Release files / easypackage-0.1.8.tar.gz

Download URL easypackage-0.1.8.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c719aa5dc4513d3239959d3dbfcd6bcad2cbb1c45d021ac82c3a00d79a2a7182
BLAKE2b-256 checksum
How to use checksums
94ae858e97891b7b27f958a2fbc4fb42aacaa56f8c083e0e8043e713dea9bb5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / easypackage-0.1.8-py2-none-any.whl

Download URL easypackage-0.1.8-py2-none-any.whl
Size 20.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
6e7bb635544b6144e5d2347071df7c14f26807099623f263c6591c568e5588a4
BLAKE2b-256 checksum
How to use checksums
a8d612ee0c3d41835fab1f5b329534b4237d13f829d895c033c081ecaf938533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for easypackage 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page