semvec/pypi-packages huggingface dataset:
PyNimFFI 0.1
Call nim functions from Python.
License: MIT
Keywords: nim

A wrapper to allow nim functions to be called in Python.

It requires a nim package (also called PyNimFFI) to be installed, through nimble.

It uses cffi, and has some performance overhead, but has a reasonable number of features.

Ints, cstrings, and floats can be sent natively.

Exceptions are wrapped, and propagated back to Python.

Opaque types can be wrapped as subclasses of a "NimBase" class, and have a delete method created (which decrements the nim ref count - allowing garbage collection to happen correctly).

Note, there is apparently another nim / python bridge in the works, and may turn out to be better.
Gallerize 0.3.2
Create a static HTML/CSS image gallery from a bunch of images.
License: MIT

=========
gallerize
=========

Create a static HTML/CSS image gallery from a bunch of images.


:Copyright: 2007-2015 Jochen Kupperschmidt
:License: MIT, see LICENSE for details.
:Version: 0.3.2
:Date: 09-Aug-2015


Features
========

- Integrates ImageMagick_ to resize images and create thumbnails.
- Generates clean, slim, semantically appropriate HTML5 and uses
  CSS 3 for styling.  As a result, the output can easily be themed.
- Provides HTML access keys for keyboard navigation.


Requirements
============

- Python_ 2.7+ or 3.3+
- Jinja_ (tested with 2.7.1)
- ImageMagick_ (tested with 6.6.9-7)


Installation
============

It is recommended to create a virtual environment and run gallerize
inside it.

To install ImageMagick_ and virtualenv_ on Debian/Ubuntu:

.. code:: sh

  $ aptitude install imagemagick python-virtualenv

This should also give you a copy of pip_.

Create a virtual environment called `venv` in the application path:

.. code:: sh

  $ virtualenv venv

Activate it (note the space after the first dot!):

.. code:: sh

  $ . venv/bin/activate

Install the dependencies of this application:

.. code:: sh

  $ pip install -r requirements.txt


Tests
=====


Run with py.test
----------------

Install pytest_ as test runner:

.. code:: sh

  $ pip install pytest

Run tests:

.. code:: sh

  $ py.test test_gallerize.py


Run with tox
------------

To easily run tests in different Python interpreters, use tox_:

.. code:: sh

  $ pip install tox
  $ tox

And to test against a single, specific Python interpreter (version 3.4,
in this case):

.. code:: sh

  $ tox -e py34


Usage
=====

To create a gallery in the directory `output` from a all images in the
directory `images`:

.. code:: sh

  $ ./gallerize.py output/ images/*

See the usage help for more information on specifying a gallery title,
image captions, and image dimensions:

.. code:: sh

  $ ./gallerize.py --help


.. _Python: http://www.python.org/
.. _ImageMagick: http://www.imagemagick.org/
.. _Jinja: http://jinja.pocoo.org/
.. _virtualenv: http://www.virtualenv.org/
.. _pip: http://www.pip-installer.org/
.. _pytest: http://pytest.org/
.. _tox: http://tox.testrun.org/