Automatically created environment for python package
Project description
COMPLETE REFACTOR --------- LAST WORKING VERSION HERE
Project codeframe
Creates a simple package structure, Fire, git, PyPI, bumpversion, pytest and configfile ready
Introduction
To create a new python project is a bit tedious task, especially if one doesn't know how to.
This purpose of this package is to make a simple, but still functional project structure.
Installation
pip3 install codeframe
Usage
Try just:
codeframe myproject myunit
This will create:
- subdirectory named
myprojectand inside: - hardlink to
bin/myprojectnamedbin_myproject, - unit
myunit, that is soft-linked astest_myunit, so it works withpytest, version.py, that works withbumpversion- subsubdirectory
myproject, that contains softlinks to../so that the package structure works setup.pyfile, where you need to fill the requirements list and other thingsREADME.org, that will generateREADME.mdwhen./distcheckis run- with
configmodule it creates a new config DIR~/.config/myproject - and some less important stuff
Highlights:
- The modules should be callable in
jupyterthat is opened in themyprojdirectory. - The hardlink
bin_myprojectmake the script insidebin/callable (but git pull from elsewhere looses the hardlink!) - Installable on local system with the usual command
pip3 install -e . configmodule can be both - used at a new project and imported from any projectfrom codeframe import config
./distcheck
- generates
README.md - creates git commit
- bumpversion release
- pushes to PyPI
Notes for development
Thanks to Fire, each module can be developed separately and CLI can be
finally tuned in bin/myproject (hard-linked to bin_myproject) file.
TODO
- topbar from gregory
- key
enter''
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codeframe-0.5.23.tar.gz
(44.1 kB
view details)
File details
Details for the file codeframe-0.5.23.tar.gz.
File metadata
- Download URL: codeframe-0.5.23.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aeead5b5e152c5175bacd0d8245b727ca665b5e87f58ae879be6ec8f75fefb70
|
|
| MD5 |
52533104e231f33bec224838f018559a
|
|
| BLAKE2b-256 |
8aea39fcccfd29a8e7d568a4574d67a59af258111db157014dbec79d79511c4a
|