semvec/pypi-packages huggingface dataset:
image-shrinker 0.1.0
Shrinks images. Use it before committing to git and/or using on a website
Requires Python: >=3.8
Keywords: image,shrink,web

# image-shrinker

Go directly to the [DOCUMENTATION](https://image-shrinker.readthedocs.io/).

## Description
Yup, you guessed right, it shrinks images.
Use it before committing large image files into git and/or using large image files on a website.

*image-shrinker* was built to scratch my own itch.
You might have the same itch.

- I needed a no-brainer command I could quickly run on the source files of my website(s).
- It would shrink large image files before I committed them to git ... and before I would
  deploy them on my website.
- It wouldn't require me to remember which directories need what kind of shrinking.
  - For example, that images in my `img/thumbnails` directory needed to shrink to width=100
  - But that images in my `img/photos/carousel` needed to shrink to height=300
    so that they were all the same height on my home page's rotating photo carousel.
- I wanted to run the command only once and have it handle multiple shrink cases.
- I wanted all my shrinking requirements specified in a file in my repository
  version-controlled and in sync with the rest of my source files.
- ~~Easy peasy~~ (no, I hate that phrase)

*image-shrinker* happens to be written in Python,
but you do not need to be a Python programmer to use it.

## Documentation
For instructions on how to install and use *image-shrinker*,
see [image-shrinker.readthedocs.io](https://image-shrinker.readthedocs.io/).

## Support
Try opening an issue [HERE](https://gitlab.com/parakin/image-shrinker/-/issues).
No promises on any level of service. Best efforts only.
The code is really simple. Any Python developer should be able to help you.

## Contributing
Contributions will be considered.

## Acknowledgment
Thanks to [Pillow](https://pillow.readthedocs.io/en/stable/), the Python Image Library.
It does all the hard work of shrinking images.

## License
MIT Licensed. See [LICENSE](LICENSE).

## Project status
Actively but lightly maintained by Don Parakin.
genice-core 0.8.1
Core algorithms of GenIce2
Requires Python: >=3.9

![Logo](https://raw.githubusercontent.com/vitroid/GenIce/develop/logo/genice-v0.png)

# GenIce-core

Core algorithms of GenIce2

version 0.8.1


## Requirements

* numpy
* networkx



## Installation

GenIce-core is registered to [PyPI (Python Package Index)](https://pypi.python.org/pypi/GenIce).
Install with pip3.

    pip3 install genice-core

## Uninstallation

    pip3 uninstall genice-core

## API

API manual is [here](https://genice-dev.github.io/genice-core).

## Examples

Make an ice graph from a given undirected graph.

```python
import networkx as nx
import matplotlib
import genice_core

# np.random.seed(12345)

g = nx.dodecahedral_graph()  # dodecahedral 20mer
pos = nx.spring_layout(g)

# set orientations of the hydrogen bonds.
dg = genice_core.ice_graph(g)

nx.draw_networkx(dg, pos)
```


## Algorithms and how to cite them.

The algorithms to make a depolarized hydrogen-disordered ice are explained in these papers:

M. Matsumoto, T. Yagasaki, and H. Tanaka,"GenIce: Hydrogen-Disordered
Ice Generator",  J. Comput. Chem. 39, 61-64 (2017). [DOI: 10.1002/jcc.25077](http://doi.org/10.1002/jcc.25077)

    @article{Matsumoto:2017bk,
        author = {Matsumoto, Masakazu and Yagasaki, Takuma and Tanaka, Hideki},
        title = {GenIce: Hydrogen-Disordered Ice Generator},
        journal = {Journal of Computational Chemistry},
		volume = {39},
		pages = {61-64},
        year = {2017}
    }

M. Matsumoto, T. Yagasaki, and H. Tanaka, “Novel Algorithm to Generate Hydrogen-Disordered Ice Structures.”, J. Chem. Info. Modeling 61 (6): 2542–46 (2021). [DOI:10.1021/acs.jcim.1c00440](https://doi.org/10.1021/acs.jcim.1c00440)

    @article{Matsumoto:2021,
        author = {Matsumoto, Masakazu and Yagasaki, Takuma and Tanaka, Hideki},
        title = {Novel Algorithm to Generate Hydrogen-Disordered Ice Structures},
        journal = {Journal of Chemical Information and Modeling},
        volume = {61},
        pages = {2542-2546},
        year = {2021}
    }

## How to contribute

GenIce has been available as open source software on GitHub(https://github.com/vitroid/GenIce) since 2015. Feedback, suggestions for improvements and enhancements, bug fixes, etc. are sincerely welcome. Developers and test users are also welcome. If you have any ice that is publicly available but not included in GenIce, please let us know.
pytest-venv 0.3
py.test fixture for creating a virtual environment

===========
pytest-venv
===========

.. image:: https://img.shields.io/pypi/v/pytest-venv.svg
    :target: https://pypi.python.org/pypi/pytest-venv

.. image:: https://github.com/mmerickel/pytest-venv/actions/workflows/ci-tests.yml/badge.svg?branch=main
    :target: https://github.com/mmerickel/pytest-venv/actions/workflows/ci-tests.yml?query=branch%3Amain

``pytest-venv`` is a simple pytest plugin that exposes a ``venv`` fixture.
The fixture is used to create a new virtual environment which can be used
to install packages and run commands inside tests.

Usage
=====

.. code-block:: python

    import os

    def test_it(venv):
        venv.install('pyramid', upgrade=True)
        subprocess.check_call(
            [os.path.join(venv.bin, 'pserve'), 'development.ini'],
        )

API
===

The ``venv`` fixture is an instance of
``pytest_venv.VirtualEnvironment(path)`` which exposes the following API:

``path``

  The path to the virtualenv directory.

``bin``

  The path to the bin / Scripts directory.

``python``

  The path to the python executable in the virtualenv.

``create(system_site_packages=False, python=None, *, extra_args=None)``

  Create a virtualenv. This is called automatically by the ``venv`` fixture.
  If ``python`` is ``None`` then the virtual environment will be created
  using the same executable as the active runtime.

``install(pkg_name, editable=False, upgrade=False, *, extra_args=None)``

  Use pip to install a package into the virtualenv. ``pkg_name`` may be a
  path to a package on disk.

``get_version(pkg_name, *, raises=True)``

  Returns a ``packaging.version.Version`` object which is sortable and
  convertable to a string.


0.3 (2023-11-22)
================

- Drop Python 2.7, 3.4, 3.5, 3.6.

- Add support for Python 3.9, 3.10, 3.11, 3.12.

- No longer expect ``pkg_resources`` to be available in the created virtualenv.

- No longer depend on ``setuptools``.

- Add ``extra_args`` to ``install()`` and ``create()`` to pass extra arguments
  to the underlying commands.

- Add ``raises=False`` option to ``get_version()`` to avoid raising an
  exception if a package is not installed.


0.2.1 (2020-08-04)
==================

- Depend directly on ``pytest``.
  See https://github.com/mmerickel/pytest-venv/pull/2

- Add support for Python 3.6, 3.7, and 3.8.
  See https://github.com/mmerickel/pytest-venv/pull/2

0.2 (2016-11-27)
================

- Add ``VirtualEnvironment.get_version`` for querying versions from
  installed packages in the virtual environment.

- Support custom python interpreter paths via
  ``VirtualEnvironment.create(python=...)``.

0.1.1 (2016-11-27)
==================

- Ensure the virtual environment is started with the same Python executable
  as the current process.

0.1 (2016-11-27)
================

- Initial release.