semvec/pypi-packages huggingface dataset:
niolithic 0.1.0
A simple Matrix client library wrapped around `matrix-nio`
License: MIT
Requires Python: >=3.10,<4.0

# Niolithic

A simple Matrix client library wrapped around `matrix-nio`.

It's meant to ressemble the very easy to work with design of `discord.py`. The intention is to make it quicker and simpler to set up a bot regardless of your skill level. But if you want to make a full-blown application or intricate bot, you should use `matrix-nio` as it is.

## Example

```py
from niolithic import SimpleClient


class MyBot(SimpleClient):
    async def on_ready(self):
        print('Bot is live!')

    async def on_message(self, room: MatrixRoom, event: RoomMessageText):
        print(
            f"Message received in room {room.display_name}\n"
            f"{room.user_name(event.sender)} | {event.body}"
        )

        command, *args = event.body.split()

        if command == '!clear':
            # Remove the last N messages
            
            if len(args) < 1:
                await self.send_text(
                    room.room_id,
                    'You need to provide the number of messages to clear out. Ex. `!clear 10`'
                )
                return

            limit = int(args[0]) + 1  # Plus 1 to include the command
            
            async for message in self.get_messages(
                    room.room_id, (RoomMessageText,), limit=limit):

                await self.redact_event(message, reason='Mass deletion by `!clear`')

            print(f'{limit} messages redacted.')


client = MyBot(
    'https://matrix.org',       # Homeserver
    '@username123:matrix.org',  # User ID
    'MyBot',                    # Device name
)
client.run()
```
htmltopdfy 1.0.1
Convert template html to pdf
License: MIT
Keywords: core package


HTML TO PDF
===
Convert template html to pdf

Detailed documentation is in the "docs" directory.

## Quick start

1. Install the module:

         pip install htmltopdfy

2. EXAMPLE

   ### Import module

         from htmltopdfy.job import htmlToPdf

   Let suppose we have a model like this:



         class User():
            name = models.CharField(max_length=200)
            age = models.CharField(max_length=20)
            cni = models.FileField(null=True,blank=True)
   ### Let's create user
         user = User(name="dddd",age="23")
         user.save()
   ### We supposed we have a template named cni.html already designed on which we want to display name and age

         cni_file = htmlToPdf (
            media_root_url=settings.MEDIA_ROOT,
            file_name="cni",
            template_src = "cni.html",
            context_dict = {"name":"dddd","age":"20ans"}
         )
         user.cni.save("cni.pdf",cni_file)
   
   ### After you can print variable _cni_ in console to see result or send url file on  your response view:
         print(user.cni)
   or 

         return Response({"cni":user.cni.url})
xepmts 0.5.9
Python client for accessing the XENON experiment PMT data.
License: MIT
Requires Python: >=3.8,<3.11

======
xepmts
======
A helper package for managing the PMT database used by the XENONnT Dark Matter Experiment.

.. image:: https://img.shields.io/pypi/v/xepmts.svg
        :target: https://pypi.python.org/pypi/xepmts

.. image:: https://img.shields.io/travis/jmosbacher/xepmts.svg
        :target: https://travis-ci.com/jmosbacher/xepmts

.. image:: https://readthedocs.org/projects/xepmts/badge/?version=latest
        :target: https://xepmts.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

Basic Usage
-----------

.. code-block:: python

    import xepmts

    # If you are using a notebook:
    xepmts.notebook()

    # use v1 client
    db = xepmts.login("v1", token='YOUR-API-TOKEN')

    # or the v2 client
    db = xepmts.login("v2")

    # set the number of items to pull per page
    db.tpc.installs.items_per_page = 25
    
    # get the next page 
    page = db.tpc.installs.next_page()

    # iterate over pages:
    for page in db.tpc.installs.pages():
        df = page.df
        # do something with data

    # select only top array
    top_array = db.tpc.installs.filter(array="top")

    # iterate over top array pages
    for page in top_array.pages():
        df = page.df
        # do something with data

    query = dict(pmt_index=4)
    # get the first page of results for this query as a list of dictionaries
    docs = db.tpc.installs.find(query, max_results=25, page_number=1)

    # same as find, but returns a dataframe 
    df = db.tpc.installs.find_df(query)


    # insert documents into the database
    docs = [{"pmt_index": 1, "position_x": 0, "position_y": 0}]
    db.tpc.installs.insert_documents(docs)
    
* Free software: MIT
* Documentation: https://xepmts.readthedocs.io/


Features
--------

* TODO

Credits
-------

This package was created with Cookiecutter_ and the `briggySmalls/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`briggySmalls/cookiecutter-pypackage`: https://github.com/briggySmalls/cookiecutter-pypackage
htmlToPdfy 1.0.0
Convert template html to pdf
License: MIT
Keywords: core package


HTML TO PDF
===
Convert template html to pdf

Detailed documentation is in the "docs" directory.

## Quick start

1. Install the module:

         pip install htmlToPdf

2. EXAMPLE

   ### Import module

         from htmlToPdf.job import htmlToPdfy

   Let suppose we have a model like this:



         class User():
            name = models.CharField(max_length=200)
            age = models.CharField(max_length=20)
            cni = models.FileField(null=True,blank=True)
   ### Let's create user
         user = User(name="dddd",age=23, document)
         user.save()
   ### We supposed we have a template named cni.html already designed on which we want to display name and age

         cni_file = htmlToPdfy (
            media_root_url=settings.MEDIA_ROOT,
            file_name="cni",
            template_src = "cni.html",
            context_dict = {"name":"dddd","age":"20ans"}
         )
         user.cni.save("cni.pdf",cni_file)
   
   ### After you can print variable _cni_ in console to see result or send url file on  your response view:
         print(user.cni)
   or 

         return Response({"cni":user.cni.url})
eve-panel 0.3.28
Top-level package for Eve-Panel.
License: MIT
Requires Python: >=3.8,<3.11

=========
Eve-Panel
=========


.. image:: https://img.shields.io/pypi/v/eve_panel.svg
        :target: https://pypi.python.org/pypi/eve_panel

.. image:: https://img.shields.io/travis/jmosbacher/eve_panel.svg
        :target: https://travis-ci.com/jmosbacher/eve_panel

.. image:: https://readthedocs.org/projects/eve-panel/badge/?version=latest
        :target: https://eve-panel.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status



Dynamically create an httpx based client for any Eve api. Uses Param + Cerberus for type enforcement and Panel for GUIs.
This is just a prototype package,features will slowly be added as i need them for my own purposes.
The api is expected to change without warning based on my needs but feel free to fork or copy parts and adapt to your own needs.

To view the widgets in a notebook you will need to install the pyviz plugin. For details, see panel docs.

Usage
-----

.. code-block:: python

    import eve
    from eve_panel import EveClient


    app = eve.Eve()

    api = eve_panel.EveClient.from_app(app)
    
    # optional
    api.set_token("my-secret-token")

    # show a resources gui
    api.resource_name

    # get a specific item
    api.resource_name["item_id"]

    # get current page
    api.resource_name.current_page()

    # get next page
    api.resource_name.next_page()

    # get previous page
    api.resource_name.previous_page()

    # insert new documents
    docs = [{"name": "new document"}]
    api.resource_name.insert_documents(docs)
    


* Free software: MIT
* Documentation: https://eve-panel.readthedocs.io.


Features
--------

* TODO

Credits
-------

This package was created with Cookiecutter_ and the `briggySmalls/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`briggySmalls/cookiecutter-pypackage`: https://github.com/briggySmalls/cookiecutter-pypackage
NROBOT 0.1.1
NROBOT API library
License: MIT

## NROBOT

NROBOT is a Python library for NROBOT API Made By Nasir Ali.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install NROBOT.

```bash
pip install NROBOT
```

## Usage

```python
from NROBOT import *

# Initialize Robot 
robot = NROBOT('ws://192.168.4.1:81/')

# Move Function
robot.move('F')
robot.move('B')
robot.move('L')
robot.move('R')

# Stop Robot
robot.stop()

# Turn Robot Led On/Off
robot.led(1)
robot.led(0)

# Set Robot Speed  0-255
robot.speed(150)

# Set Robot Step Size Based on Time ms
robot.step_delay(100)

# Set Robot Mode 

 {
  '0':'STEP_MODE',                     
  '1':'SMOOTH_MODE',  
  '2':'CONTINOUS_MODE'
 }
 
robot.mode(0)
robot.mode(1)
robot.mode(2)

# Enable/Disable Object Avoidance Mode
robot.object_avoidance_mode()

# Get Distance to Object infront of Robot
robot.object_distance()

# Get Robot Battery Voltage & Level
robot.get_battery()

# Command Line Live Remote Mode
robot.cmd_control()


```

## Command Line Interface
```
/* TYPE FOLLOWING IN LINUX TERMINAL */
$ nrobot
```

## Contact
```
Github : https://github.com/nasirxo
Facebook : https://fb.com/nasir.xo
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)