Skip to main content

A library for managing git repositories in a directory.

Project description

Not Gitmodules


Why not_gitmodules?

  1. not_gitmodules demonstrate how simple and elegant gitmodules should be to those developers who enjoy their lives. Add and remove modules without caring about irrelevant stuff. No * shitshow*, just simplicity.
  2. Production-use friendly. This is documented in the license.
  3. No third-party libraries are required; only built-in tools are used.
  4. OS-agnostic. Written in Python, meaning it can be used in any type of project, especially those running on Linux.

Installation

  • Clone the repository using Git.

  • Install via pip:

    pip install not-gitmodules
    

Here's the updated README.md snippet with the changes you requested:


Usage

  1. IMPORTANT: Create a notgitmodules.yaml file in your project's root directory.
# directory_name: url (ssh or https)
# example:
file_reader: https://github.com/Free-Apps-for-All/file_manager_git_module
  1. Let not_gitmodules do the job.

Example with Code:

Pass the path to the initializer function:

from not_gitmodules import initializer

initializer('custom/path/to/notgitmodules.yaml')

or

from not_gitmodules import initializer

initializer()  # if notgitmodules.yaml exists in the project root

Example with CLI:

1. Install the library locally if you cloned the repo (optional) :

pip install .

2. Install the modules directly from the terminal:

Flags

Flag Description
-d, --dir_name Specify a directory name where the modules will be saved (optional).
-y, --yaml-path Specify a custom location for the notgitmodules.yaml file (optional).

Default command:

not_gitmodules install

Command pattern:

not_gitmodules install --yaml-path </path/to/notgitmodules.yaml>  --dir_name <directory_name>

or

not_gitmodules install -y </path/to/notgitmodules.yaml>  -d <directory_name>

Do not forget to add not_gitmodules to requirements.txt

Run

pip show not_gitmodules

Check the Version and include it to requirements.txt

Example:

not_gitmodules~=0.2

Possible Issues with Private Repositories

If cloning fails but you have access to the repository, provide the HTTPS repo URL instead of SSH in notgitmodules.yaml.


That's it!

No more wasted time with .git, metadata, and other bloat that offer no real tradeoff.


Recommended Modifications

After cloning the repository, delete unnecessary files if you're customizing or using the project for specific purposes:

  • not_gitmodules\.gitignore
  • not_gitmodules\LICENSE
  • not_gitmodules\README.md
  • not_gitmodules\setup.py (if you're not using it as a CLI tool or environment package)
  • not_gitmodules/cli.py (if you're not using the installer in a CLI context)

Author

Armen-Jean Andreasian, 2024


License

This project is licensed under a Custom License. See the LICENSE file for full details.

Key points:

  • You may use this project for commercial or personal purposes.
  • You may not claim ownership of this project or its code.

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

not_gitmodules-0.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

not_gitmodules-0.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file not_gitmodules-0.3.tar.gz.

File metadata

  • Download URL: not_gitmodules-0.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for not_gitmodules-0.3.tar.gz
Algorithm Hash digest
SHA256 831d389860b29e916d9476a8ca35e675af25fb81ad147127146ba4838ade79cb
MD5 8d508dc6924efbf2e996af6e8bd3f082
BLAKE2b-256 dad0c764a48252bc4ed02a16e1825bac17fcbd1d112e010b52c2da62ca5afae2

See more details on using hashes here.

File details

Details for the file not_gitmodules-0.3-py3-none-any.whl.

File metadata

  • Download URL: not_gitmodules-0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for not_gitmodules-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a24921be387053c92675225414c14abd21402bf50eb720a2ccf28cfaa1a8576a
MD5 f3baceb137c5b924c7df58bb04ca657a
BLAKE2b-256 d507b4b6a8ad503298e6a6bb2ac460683b0807e2c249d59c1bf2de1fcc2b855f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page