Skip to main content

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 myproject and inside:
  • hardlink to bin/myproject named bin_myproject,
  • unit myunit, that is soft-linked as test_myunit, so it works with pytest,
  • version.py, that works with bumpversion
  • 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 things
  • README.org, that will generate README.md when ./distcheck is run
  • with config module it creates a new config DIR ~/.config/myproject
  • and some less important stuff

Highlights:

  1. The modules should be callable in jupyter that is opened in the myproj directory.
  2. The hardlink bin_myproject make the script inside bin/ callable (but git pull from elsewhere looses the hardlink!)
  3. Installable on local system with the usual command pip3 install -e .
  4. config module can be both - used at a new project and imported from any project from 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
  • keyenter ''

Metadata

Release files for codeframe 0.5.23

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

Source distribution (sdist)

Source distribution for codeframe 0.5.23
File Size Uploaded Provenance Actions
codeframe-0.5.23.tar.gz 44.1 kB Without provenance Details for codeframe-0.5.23.tar.gz

Release files / codeframe-0.5.23.tar.gz

Download URL codeframe-0.5.23.tar.gz
Size 44.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aeead5b5e152c5175bacd0d8245b727ca665b5e87f58ae879be6ec8f75fefb70
BLAKE2b-256 checksum
How to use checksums
8aea39fcccfd29a8e7d568a4574d67a59af258111db157014dbec79d79511c4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for codeframe 0.5.23

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.

Release history Release notifications | RSS feed

This release

0.5.23 This release

1 release file No provenance

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