semvec/pypi-packages huggingface dataset:
esmf-git 0.6.0
Standard Git Library for ESMF applications.
License: MIT


Standard Git Library for ESMF applications.
===========================================

.. image:: https://img.shields.io/pypi/v/esmf_git.svg
    :target: https://pypi.org/project/esmf-git/
    :alt: PyPi Link

.. image:: https://github.com/esmf-org/esmf-git/actions/workflows/pylint.yml/badge.svg
    :target: https://github.com/esmf-org/esmf-git/actions/workflows/pylint.yml
    :alt:  Lint and Test

.. image:: https://github.com/esmf-org/esmf-git/actions/workflows/python-publish.yml/badge.svg
   :target: https://github.com/esmf-org/esmf-git/actions/workflows/python-publish.yml
   :alt: Upload Python Package 

.. image:: https://www.codefactor.io/repository/github/esmf-org/esmf-git/badge/main
   :target: https://www.codefactor.io/repository/github/esmf-org/esmf-git/overview/main
   :alt: CodeFactor

**esmf-git** is a library for implementing Git functionality inside a python application.

The ``_command_safe`` wrapper does a few things:

Foremost, the git CLI does not return robust error codes, pass or fail.  It also can return a failure for an acceptable command.  For example, calling ``git push`` raises a ``subprocess.CalledProcessError`` if there is nothing new to push.

With the wrapper, the error is first inspected.  If there is a critical error, the ``stderr`` will have a value. That value is logged at the ERROR level and the exception is re-raised.  

If ``stderr`` is **None**, a ``subprocess.CompletedProcess`` is created and returned in order to stay persistent with the standard successful return object.

``stdout`` is always logged at the INFO level is a ``subprocess.CalledProcessError`` is raised.

The wrapper also provides a backwards compatible way of handling output streams, raises an exception if return code is not 0, and sets the default encoding.


Basic Usage
-----------

::

    import esmf_git as git

    result = git.status("/path/to/repo") 
    print(result) # equivalent to 'git status'



Installation
------------

::

    $ pip install esmf-git
pycounts-gloriaye 0.1.0
Calculate word counts in a text file!
License: MIT
Requires Python: >=3.9,<4.0

# pycounts

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycounts
```

## Usage

`pycounts` can be used to count words in a text file and plot results
as follows:

```python
from pycounts.pycounts import count_words
from pycounts.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
```

## Contributing

Interested in contributing? Check out the contributing guidelines. 
Please note that this project is released with a Code of Conduct. 
By contributing to this project, you agree to abide by its terms.

## License

`pycounts` was created by Tomas Beuzen. It is licensed under the terms
of the MIT license.

## Credits

`pycounts` was created with 
[`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and 
the `py-pkgs-cookiecutter` 
[template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
pycounts-jlc207 0.1.0
Calculate word counts in a text file!
License: MIT
Requires Python: >=3.9,<4.0

# pycounts_jlc207

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycounts_jlc207
```

## Usage
`pycounts_jlc207` can be used to count words in a text file and plot results
as follows:

```python
from pycounts_jlc207.pycounts import count_words
from pycounts_jlc207.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
```

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`pycounts_jlc207` was created by Vera Cui. It is licensed under the terms of the MIT license.

## Credits

`pycounts_jlc207` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).