Creates a simple package structure, git, PyPI, bumpversion, pytest and configfile ready
Project description
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
myproject
and inside: - hardlink to
bin/myproject
namedbin_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.py
file, where you need to fill the requirements list and other thingsREADME.org
, that will generateREADME.md
when./distcheck
is run- with
config
module it creates a new config DIR~/.config/myproject
- and some less important stuff
Highlights:
- The modules should be callable in
jupyter
that is opened in themyproj
directory. - The hardlink
bin_myproject
make the script insidebin/
callable (but git pull from elsewhere looses the hardlink!) - Installable on local system with the usual command
pip3 install -e .
config
module 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.2.6.tar.gz
(14.3 kB
view details)
File details
Details for the file codeframe-0.2.6.tar.gz
.
File metadata
- Download URL: codeframe-0.2.6.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a81dd62a93d162ddf227016c4856e31a1e8c409a2a626f6956d2edc71702d20 |
|
MD5 | cd041b3f9f7f3ca25ad9ff5cf5ed8f63 |
|
BLAKE2b-256 | 33f0dcad571c1f993c69025f673c4e8e401cad9e1d4dd0385af97c47bbdf007a |