Skip to main content

Python packages - the simple way.

Project description

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.

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

easypackage-0.1.8.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

easypackage-0.1.8-py2-none-any.whl (20.5 kB view details)

Uploaded Python 2

File details

Details for the file easypackage-0.1.8.tar.gz.

File metadata

  • Download URL: easypackage-0.1.8.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for easypackage-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c719aa5dc4513d3239959d3dbfcd6bcad2cbb1c45d021ac82c3a00d79a2a7182
MD5 305e71df1ed632afe9c6404238dcbbaf
BLAKE2b-256 94ae858e97891b7b27f958a2fbc4fb42aacaa56f8c083e0e8043e713dea9bb5f

See more details on using hashes here.

File details

Details for the file easypackage-0.1.8-py2-none-any.whl.

File metadata

File hashes

Hashes for easypackage-0.1.8-py2-none-any.whl
Algorithm Hash digest
SHA256 6e7bb635544b6144e5d2347071df7c14f26807099623f263c6591c568e5588a4
MD5 9b99015af399e08dddd2e1d6ca9f4e72
BLAKE2b-256 a8d612ee0c3d41835fab1f5b329534b4237d13f829d895c033c081ecaf938533

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