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.2.tar.gz (6.8 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.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: not_gitmodules-0.2.tar.gz
  • Upload date:
  • Size: 6.8 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.2.tar.gz
Algorithm Hash digest
SHA256 a5a3efeb59ed311015f3cc607028347d182b32c0ee047396032b256af485a1a9
MD5 ad62265022a960d14bcd1b8bcf2a0df9
BLAKE2b-256 cdff3e566ff1c2b41181e4fd650e1a9a658ceba14cf0888cc91f8baa32581ccb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: not_gitmodules-0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8025d03fba46d95ecdd82a230f9f9f49c9f46109b29d0e4c1e9c01d0ee7830
MD5 0b9dc9f192e23a196b56a41e18f01e28
BLAKE2b-256 f0662e043d806e5ac518d2c6a85aa27660fcccd8e58c9f8f18a7c6ab63c98f2b

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