semvec/pypi-packages huggingface dataset:
git-credentials 1.0.0
Simple library to interact with Git Credentials
License: MIT

Git Credentials
===============

Simple small library to provide an interface around the ``git credential`` Git command.
No dependencies but ``git`` must in the PATH.

Example
-------

.. code-block:: python

    from git_credentials import GitCredentials, GitCredentialDescription, GitCredentialError, GitCredentialNotStoredError

    def test_creds(user, pw):
        ...

    def ask_for_creds():
        ...

    cred = GitCredentials("/path/to/repo")

    try:
        response = cred.fill(GitCredentialDescription(
            protocol="https",
            host="example.com",
            path="/"
        ))
        print(f"Request was successful. Host: {response.host}, User: {response.username}, Password: {response.password}")
        # Test the credentials
        if test_creds(response.username, response.password):
            # Tell Git the credentials are good.
            cred.approve(response)
        else:
            # Otherwise tell it to reject them.
            cred.reject(response)
    except GitCredentialNotStoredError:
        print("Did not know the PW :(")
        # Ask user for PW. You can store it then (after testing it) using approve:
        (user, pw) = ask_for_creds()
        if test_creds(user, pw):
            # Tell Git the credentials are good.
            cred.approve(GitCredentialDescription(
                protocol="https",
                host="example.com",
                path="/",
                username=user,
                password=pw
            ))
    except GitCredentialError:
        # Another misc. error. GitCredentialNotStoredError subclasses this.
        raise
invenio-subjects-ddc-german 2022.1.31
DDC subject terms for InvenioRDM
License: MIT
Keywords: invenio inveniordm subjects DDC

# invenio-subjects-ddc

DDC subject terms for InvenioRDM

Install this extension to get the german [Dewey Decimal Classification](https://www.dnb.de/ddcuebersichten) into your instance.

## Installation

From your instance directory:

    pipenv install invenio-subjects-ddc-german

This will add it to your Pipfile.

### Versions

This repository follows [calendar versioning](https://calver.org/):

`2021.06.18` is both a valid semantic version and an indicator of the year-month corresponding to the loaded DDC terms.


## Usage

There are 2 types of users for this package. Maintainers of the package and instance administrators.

### Instance administrators

For instance administrators, after you have installed the extension as per the steps above, you are done. It should just work.

### TODO -- Maintainers

When a new list of DDC term comes out, this package should be updated. Here we show how.

0- Make sure you have cloned this package. Then install it locally with:

    make install

1- Update:

    make update

   This will

   1- Download the new list
   2- Convert terms to InvenioRDM subjects format
   3- Write those to `invenio_subjects_ddc_german/vocabularies/subjects_ddc_german.yaml` file

3- Run the tests just to make sure everything is still good:

    make test

4- When you are happy with the list, bump the version in `invenio_subjects_ddc_german/version.py` and release it.


## Future Ideas

- InvenioRDM doesn't have a way to update pre-existing subjects yet. Once there is one,
  this package should provide the functionality to update GND subject terms.


# Changes

Version 2022.01.06 (unreleased)

- Initial release.