semvec/pypi-packages huggingface dataset:
npyfile 1.0.0
NumPy File
Requires Python: >=3.6

``npyfile``: Write arrays continuously to ``.npy`` files
========================================================

``npyfile`` is a a package that allows you to continuously write arrays to a ``.npy`` file. You can use it like a
standard Python file with the well-known context manager.

*Warning*: Due to the internal structure of ``.npy`` files, the arrays must have the same ``shape`` & ``dtype``.

.. teaser-end

Example
-------
Generate some artificial dummy data, e.g. images, & write them into a temporary file. A real world scenario reflecting
this is the continuous arrival of new images from a camera.

.. code-block:: python

    import pathlib
    import tempfile
    tmp_dir = tempfile.TemporaryDirectory()
    outfile = pathlib.Path(tmp_dir.name) / 'images.npy'

    images = np.random.randint(low=0, high=255, size=(10,640,480,3))

    with NpyFile(outfile) as file:
        for img in images:
            file.write(img)

    np.testing.assert_array_equal(images, np.load(outfile))

    tmp_dir.cleanup()



Credits
-------

- `attrs`_: Project & infrastructure setup
- `numpy`_: File format


.. _attrs:
    https://www.attrs.org
.. _numpy:
    https://numpy.org/
MegaLib2 0.0.2
Package that helps me with my projects feel free to use it yourself
Requires Python: >=3.8

# MegaLib
Package that helps me with my projects feel free to use it yourself


Hello i am Kacper known in internet as Mega145.
I am a hobby Python developer and i made this package to help me with my projects and help people so they have a easier life using my projects


- Features(For Now):
  - networking:
    - setup() - returns socket.socket(socket.AF_INET, socket.Sock_STREAM)
    - host(port) - give it a port and it starts a listening server
    - connect(ip,port) - speaks for itself
    - getip() - returns public ip usefull for indicating what to use to connect
    - getlocalip() - returns local ip
  - Utils:
    - Log(message) - Prints {message} and writes it to output.txt file