git-user-manager


Namegit-user-manager JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummaryA tool to manage git user profile from the terminal
upload_time2024-07-08 13:35:04
maintainerNone
docs_urlNone
authorIm Geek (Ankush Bhagat)
requires_pythonNone
licenseNone
keywords user management git terminal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Git User Manager



`git-user-manager` is a Python CLI tool designed to help you manage multiple Git user profiles. This tool makes it easy to configure and switch between different Git user credentials, which is particularly useful if you work on multiple projects with different Git accounts.



## Features



- Add new Git user credentials interactively

- Remove existing Git user credentials

- List all saved Git user credentials

- Set active Git user credentials



## Installation



You can install `git-user-manager` from PyPI:



```sh

pip install git-user-manager

```



## Usage

The `git-user-manager` tool provides several command-line arguments to manage your Git user credentials.



```sh

usage: git-user-manager [-h] [--add] [--remove] [--list] [--set user] [--user user] [--name name] [--email email]

```



## Commands and Arguments

- -h, --help: Show the help message and exit.

- --add: Use this argument to set credentials.

- --remove: Use this argument to remove credentials.

- --list: Use this argument to list saved user credentials.

- --set user: Use this argument to set the active Git user.

- --user user, -u user: Specify your username.

- --name name, -n name: Specify your full name.

- --email email, -e email: Specify your Git email.



## Examples

- Add a New User

```sh

git-user-manager --add

```

This command will prompt you to enter your username, full name, and email interactively.



- Remove an Existing User

```sh

git-user-manager --remove

```

This command will prompt you to select one or more users to remove.



- List All Saved Users

```sh

git-user-manager --list

```

This command will list all saved user credentials.



- Set the Active User

```sh

git-user-manager --set username

```

This command will set the specified username as the active Git user.



## Configuration

The user credentials are stored in a JSON file located at ~/.config/git-user-manager/credentials.json.



## Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.



## License

This project is licensed under the MIT License. See the [LICENSE](https://github.com/imegeek/git-user-manager/blob/master/LICENSE) file for details.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "git-user-manager",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "user management, git, terminal",
    "author": "Im Geek (Ankush Bhagat)",
    "author_email": "<imegeek@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e6/48/efdbc5bd485d66b4477c65c7501bda7761eb4f1713438c562fee76bf72bf/git_user_manager-1.0.1.tar.gz",
    "platform": null,
    "description": "\r\n# Git User Manager\r\n\r\n\r\n\r\n`git-user-manager` is a Python CLI tool designed to help you manage multiple Git user profiles. This tool makes it easy to configure and switch between different Git user credentials, which is particularly useful if you work on multiple projects with different Git accounts.\r\n\r\n\r\n\r\n## Features\r\n\r\n\r\n\r\n- Add new Git user credentials interactively\r\n\r\n- Remove existing Git user credentials\r\n\r\n- List all saved Git user credentials\r\n\r\n- Set active Git user credentials\r\n\r\n\r\n\r\n## Installation\r\n\r\n\r\n\r\nYou can install `git-user-manager` from PyPI:\r\n\r\n\r\n\r\n```sh\r\n\r\npip install git-user-manager\r\n\r\n```\r\n\r\n\r\n\r\n## Usage\r\n\r\nThe `git-user-manager` tool provides several command-line arguments to manage your Git user credentials.\r\n\r\n\r\n\r\n```sh\r\n\r\nusage: git-user-manager [-h] [--add] [--remove] [--list] [--set user] [--user user] [--name name] [--email email]\r\n\r\n```\r\n\r\n\r\n\r\n## Commands and Arguments\r\n\r\n- -h, --help: Show the help message and exit.\r\n\r\n- --add: Use this argument to set credentials.\r\n\r\n- --remove: Use this argument to remove credentials.\r\n\r\n- --list: Use this argument to list saved user credentials.\r\n\r\n- --set user: Use this argument to set the active Git user.\r\n\r\n- --user user, -u user: Specify your username.\r\n\r\n- --name name, -n name: Specify your full name.\r\n\r\n- --email email, -e email: Specify your Git email.\r\n\r\n\r\n\r\n## Examples\r\n\r\n- Add a New User\r\n\r\n```sh\r\n\r\ngit-user-manager --add\r\n\r\n```\r\n\r\nThis command will prompt you to enter your username, full name, and email interactively.\r\n\r\n\r\n\r\n- Remove an Existing User\r\n\r\n```sh\r\n\r\ngit-user-manager --remove\r\n\r\n```\r\n\r\nThis command will prompt you to select one or more users to remove.\r\n\r\n\r\n\r\n- List All Saved Users\r\n\r\n```sh\r\n\r\ngit-user-manager --list\r\n\r\n```\r\n\r\nThis command will list all saved user credentials.\r\n\r\n\r\n\r\n- Set the Active User\r\n\r\n```sh\r\n\r\ngit-user-manager --set username\r\n\r\n```\r\n\r\nThis command will set the specified username as the active Git user.\r\n\r\n\r\n\r\n## Configuration\r\n\r\nThe user credentials are stored in a JSON file located at ~/.config/git-user-manager/credentials.json.\r\n\r\n\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.\r\n\r\n\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/imegeek/git-user-manager/blob/master/LICENSE) file for details.\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A tool to manage git user profile from the terminal",
    "version": "1.0.1",
    "project_urls": null,
    "split_keywords": [
        "user management",
        " git",
        " terminal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "048fab2fcd0e6b147fb42b666ee2f6f3839446182f75b5a786cfb61e99576c88",
                "md5": "9e62fc79db6eed9540815df0dd467135",
                "sha256": "f2c32dfab95d16618342caf852c355b01f248692a96170c16304c32ffe17e075"
            },
            "downloads": -1,
            "filename": "git_user_manager-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e62fc79db6eed9540815df0dd467135",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5436,
            "upload_time": "2024-07-08T13:35:01",
            "upload_time_iso_8601": "2024-07-08T13:35:01.801199Z",
            "url": "https://files.pythonhosted.org/packages/04/8f/ab2fcd0e6b147fb42b666ee2f6f3839446182f75b5a786cfb61e99576c88/git_user_manager-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e648efdbc5bd485d66b4477c65c7501bda7761eb4f1713438c562fee76bf72bf",
                "md5": "54dae5320f13176bd2ca51bd06dc3f2b",
                "sha256": "a9d6a57a293c64ab3de1fee1cdde29b03b35f91981b749e68ca55c0201caa125"
            },
            "downloads": -1,
            "filename": "git_user_manager-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "54dae5320f13176bd2ca51bd06dc3f2b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5127,
            "upload_time": "2024-07-08T13:35:04",
            "upload_time_iso_8601": "2024-07-08T13:35:04.674046Z",
            "url": "https://files.pythonhosted.org/packages/e6/48/efdbc5bd485d66b4477c65c7501bda7761eb4f1713438c562fee76bf72bf/git_user_manager-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-08 13:35:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "git-user-manager"
}
        
Elapsed time: 0.25697s