semvec/pypi-packages huggingface dataset:
pylibimp 1.0.1
Python import utilities
License: MIT
Keywords: python import importlib pylibimp pylibimport

========
pylibimp
========
Python utility for keeping track of packages that were imported and isolating imports.


Install
=======

.. code-block::

    pip install pylibimp


Example
=======

Normal Import Hook to save an imports dependent modules

.. code-block:: python

    import pylibimp

    with pylibimp.SaveBuiltinsImportHook() as imp:
        import pylibimp
        import urllib3

    modules = imp.get_modules()
    assert 'pylibimp' in modules
    assert 'urllib3' in modules


Import a module but keep the original system

.. code-block:: python

    import sys
    import pylibimp

    modules = sys.modules.copy()
    with pylibimp.original_system():
        import urllib3

    assert 'urllib3' not in modules
dpixels 0.3.1
A(nother) wrapper for the Python Discord Pixels API.
License: MIT
Requires Python: >=3.7

# dpixels
A(nother) wrapper for the Python Discord Pixel API.

## Features
 - Proper ratelimite handeling.
 - Saves ratelimits in a json file, so restarting scripts won't trigger cooldowns.
 - Supports all Pixel API endpoints.
 - Supports autodrawing of images.

## Examples

Get the canvas:
```py
client = dpixels.Client(token="your token")
canvas = await client.get_canvas()

# this also caches the canvas, so later you can do:
canvas = client.canvas
```

Get a specific pixel:
```py
pixel = canvas[0, 0]  # get the pixel at 0,0
pixel = await client.get_pixel(0, 0)  # fetch the pixel at 0, 0

pixel.hex  # the hex value
pixel.int  # the int value
pixel.rgb  # the rgb value
```

Setting a pixel:
```py
await client.set_pixel(0, 0, dpixels.Color(255, 255, 255))  # set the pixel at 0,0 to white
```

Autodrawing an image:
```py
from PIL import Image

im = Image.open("path_to_image.ext")

source = dpixels.Source.from_image((0, 0), im)
await client.draw_sources([source])  # draw the source
```

## Credits
This library is heavily based on [Artemis21/dpypx](https://github.com/Artemis21/dpypx)