semvec/pypi-packages huggingface dataset:
PyRandomNameGenerator 0.2
This is a simple name generator package
License: MIT

RandomNameGenerator
===================

RandomNameGenerator is a Python package that provides a simple and
easy-to-use interface for generating random names. It can be used in
various applications such as creating fictional characters, generating
test data, or any scenario where random names are needed.

Installation
------------

You can install RandomNameGenerator using pip, the Python package
manager. Open your terminal or command prompt and run the following
command:

.. code:: bash

   pip install PyRandomNameGenerator

.. code:: python

   from PyRandomNameGenerator import generateRandomName

   # After that

   print(generateRandomName())

License
-------

This project is licensed under the `MIT License <LICENSE>`__.
ipynbcompress 0.5.0
Compress images in IPython/Jupyter notebooks
License: MIT
Keywords: ipynbcompress

ipynbcompress
=============

|build-status-image| |pypi-version| |wheel|

Overview
--------

So you have included an image with ``IPython.display.Image()`` and the
file size of your IPython Notebook got huge? No problem! This package
will resize images in your notebook and compress them as PNG or JPEG.
Images are only resized if they are above the specified width. 2048px
and PNG compression is the default, which should give relative high
quality images and normal sized notebooks. JPEG compression is nice if
you serve the notebooks over the web (eg nbviewer) and prefer fast
loading times.

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

Install using ``pip``\ …

.. code:: bash

   pip install ipynbcompress

Example
-------

From command line:

.. code:: sh

   $ ipynb-compress notebook4.ipynb
   notebook4.ipynb: 10 megabytes decrease
   $ find . -name "*ipynb" -size +2M -exec ipynb-compress {} \;
   ./lab 03.21/automated scan.ipynb: warning: no compression - 0 bytes gained
   ./lab 03.21/automated scan.ipynb: compression less than 100k bytes - keeping original
   ./lab 03.21/trouble.ipynb: 9 megabytes decrease
   ...

In python:

.. code:: python

   >>> import os
   >>> from ipynbcompress import compress
   >>> filename = '/path/to/notebook.ipynb'
   >>> out = '/path/to/compressed.ipynb'
   >>> # original size
   ... os.stat(filename).st_size
   11563736
   >>> # return bytes saved
   ... compress(filename, output_filename=out, img_width=800, img_format='jpeg')
   11451545
   >>> compress(filename, output_filename=out, img_width=800, img_format='png')
   11205762
   >>> # defaults to img_width = 2048px and png compression
   ... compress(filename, output_filename=out)
   11411377
   >>> # overwrite existing notebook
   ... compress(filename)
   11411377

API reference
-------------

API reference is at http://ipynbcompress.rtfd.org.

Development
-----------

Install dependencies and link development version of ipynbcompress to
pip:

.. code:: bash

   git clone https://github.com/arve0/ipynbcompress
   cd ipynbcompress
   pip install -r requirements.txt # install dependencies and ipynbcompress-package

Testing
~~~~~~~

.. code:: bash

   pytest

Build documentation locally
~~~~~~~~~~~~~~~~~~~~~~~~~~~

To build the documentation:

.. code:: bash

   pip install -r docs/requirements.txt
   make docs

.. |build-status-image| image:: https://github.com/arve0/ipynbcompress/actions/workflows/main.yml/badge.svg
   :target: https://github.com/arve0/ipynbcompress/actions/workflows/main.yml
.. |pypi-version| image:: https://img.shields.io/pypi/v/ipynbcompress.svg
   :target: https://pypi.python.org/pypi/ipynbcompress
.. |wheel| image:: https://img.shields.io/pypi/wheel/ipynbcompress.svg
   :target: https://pypi.python.org/pypi/ipynbcompress