Skip to main content

Create the __init__.py file in every single subdirectroy with a python folder

Project description

Initme

Utility to help setup python projects and libraries.

Usages

  • Created an __init__.py file in every directory containing a python script. Examples: python -m initme /path/to/my/project or cd /path/to/my/project && python -m initme

Install

pip install initme --user

Contributing

I started this library because I often have "half baked" python projects which I want to turn into a fully grown library and/or module.

This involves a bunch of annoying boilerplate such as: adding __init__.py files everywhere, creating a setup.py, creating an __about__.py ... etc.

I've created this library to take some of the hassle away from that. Currently it does a single thing, which is created __init__.py in every directory with python files, in the future I'd love for it to look at the files content and auto generate:

  • A setup.py
  • An __about__.py
  • Maybe a simple .sh files that helps with deployment or print out some instructions for beginners as to how to go about deploying.
  • Change all import's to use the proper module syntax
  • Create the "standard" dir structure (e.g. for project blax move all "python related" files in a subdir called blax)

I'm curios if anyone thinks there's a need for such a library and/or if they want to contribute with the features above or some other ones. It's all fairly easy to do, just requires a bit of time and testing, but I will probably only add the features I need and the ones which other people want.

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

initme-0.3.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file initme-0.3.0.tar.gz.

File metadata

  • Download URL: initme-0.3.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for initme-0.3.0.tar.gz
Algorithm Hash digest
SHA256 267b3367fd9089d68e377b1077a22ec15ea09769dba19ededf5ff33c72268406
MD5 54446e3162e7c05b244ee93c441d24f6
BLAKE2b-256 3bd4c0208e6f801096b3a12a6a19fb98b97a85b1f5ec31510e99f9fefb37205a

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