semvec/pypi-packages huggingface dataset:
sketcher 1.0.3
A processing like sketch framework for prototyping.

# Warning
This project is deprecated.
Due to bugs and incoherency, as well as a relatively poorly though interface I decided to deprecate this project.
A better scoped, better designed version may come later.

# What is this ?

__sketcher__ is a python module which may be used to quickly create littles
program (sketches) that produce graphical output.  It is obviously deeply
inspired by processing and try to get the same feeling in the python world. It
is different from processing.py in that it has no dependencies to Java
environnement and it use a more Pythonic approach of a sketch. By the way
__sketcher__ does not try to stick to the processing API but a lot of methods
names are the same.

# How to install it ?

The simpliest way to install this is to use __pip__.
Run `$ pip3 install sketcher` and that is all.

You could also copy the sketcher folder from this repository and put it in your
sketches directory.

# How to use it ?

A basic sketch consist in a class of arbitrary name having two methods __setup__
and __loop__. The class have to be decorated by the decorator __sketch__ from
the __sketcher__ module. Here is the default empty sketch :
```python3
from sketcher import sketch


@sketch
class Sk:
    def setup(self):
        pass  # Here come the initialisation

    def loop(self):
        pass  # Here come the per-frame actions
```

In the __loop__ and __setup__ methods you have access to all the useful methods
from the __Sketch__ class (thanks to the decorator) to produce graphical output
and more.

Then you can run a sketch like this :
```
$ python3 path/to/your/sketch.py
```

Further explanations are available [here](https://github.com/Lattay/sketcher/tree/master/docs).

# About graphical backend

To produce graphical output __sketcher__ can use different backends.
For now tkinter and pyglet are implemented. The two backends expose roughly
the same features however some differences remains. If you notice any let me
know so I can improve the compatibility.

# Contribute

Any kind of contribution is welcomed. You could propose a new graphical backend
or extend the functionnalities of sketches. Please contact me if you are
intereseted.
rc522 0.0.1.5
RFID Utility
Requires Python: >=3.7

## Context

This tool is showcased in the project [IotaWorkshop](https://github.com/Tsangares/iotaworkshop)

# Summary

This is a basic RFID libarary for the rc522. This simply lets you pull a single tag data and later lets you confirm it using the function `detectKey(uid,block)`

# Installation

This package requires `RPi.GPIO`, which I installed on arch arm using

    yay -S python-raspberry-gpio
	
But ubuntu or rasbian can use,

    pip install RPi.GPIO

To install pibeep simply install the pip package.

    pip install rc522


# Example
Simple example of usage 

	from rc522 import detect,detectKey
	uid,block detect(rst=31,irq=29)
	#Later you can check that the same raid tag is still there using
	if detectKey(uid,block,rst=31,irq=29):
		print("RFID tag is still there")
	else:
		print("RFID tag is vacant!")
		

## Wiring
To connect the RC522 module to SPI use the following schematic. [Use this pinout diagram](http://pi.gadgetoid.com/pinout) for reference.

| Board pin name | Board pin | Physical RPi pin | RPi pin name | 
|----------------|-----------|------------------|--------------|
| SDA            | 1         | 24               | GPIO8, CE0   | 
| SCK            | 2         | 23               | GPIO11, SCKL | 
| MOSI           | 3         | 19               | GPIO10, MOSI | 
| MISO           | 4         | 21               | GPIO9, MISO  | 
| IRQ            | 29        |                  | GPIO5        | 
| GND            | 6         | 6, 9, 20, 25     | Ground       | 
| RST            | 31        |                  | GPIO6        | 
| 3.3V           | 8         | 1,17             | 3V3          |
django-krules-procevents 0.1.3
A Django app that provides models and admin interface to store and manage your krules processed events within your Django ORM
Requires Python: >=3.6
Keywords: django krules

=====
Django Krules Procevents
=====

This app provides models and admin interface to store and manage your krules application within your Django ORM
Quick start
-----------

1. Add "django_krules_procevents" and "django_json_widget" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        'prettyjson',
        'rest_framework',
        'django_krules_procevents',
        ...
    ]


2. Add urls to your application

    urlpatterns = [
        ...
        path(r'api/', include("django_krules_procevents.urls")),
        ...
    ]

3. [OPTIONAL] Define custom authentication policies

    By default procevents API is completely open because they are designed to be used within an isolated cluster.
    However, if you want to integrate them into an external service, you can override the authentication mode, using for example a jwt token, and restrict the permissions by changing the settings.

    PROCEVENTS_AUTHENTICATION_CLASSES = []
    PROCEVENTS_PERMISSION_CLASSES = ['rest_framework.permissions.AllowAny', ]

    Both authentication and permission classes must be compliant with `Django Rest Framework <https://www.django-rest-framework.org/>`_.
    Look at `Authentication <https://www.django-rest-framework.org/api-guide/authentication/>`_ and `Permissions <https://www.django-rest-framework.org/api-guide/permissions/>`_ sections for more info.


API Guide
---------
This package provide some API to fully interact with `rules processed events  <https://github.com/airspot-dev/krules-doc/issues/3>`_

**GET**

Url: /procevents/procevent/<id>

Returns:
{
    "rule_name": string,
    "type": string,
    "subject": string,
    "event_info": dict,
    "payload": dict,
    "time": datetime string [YYYY:MM:ddTHH:mm:ss],
    "filters": dict,
    "processing": dict,
    "got_errors": boolean,
    "processed": boolean,
    "origin_id": string
}


**POST**

Url: /procevents/procevent/

Content-Type: application/json

Data:
{
    "rule_name": string,
    "type": string,
    "subject": string,
    "event_info": dict,
    "payload": dict,
    "time": datetime string [YYYY:mm:ddTHH:MM:ss],
    "filters": dict,
    "processing": dict,
    "got_errors": boolean,
    "processed": boolean,
    "origin_id": string
}


**LIST**

Url: /procevents

Returns:
[
    {
        "rule_name": string,
        "type": string,
        "subject": string,
        "event_info": dict,
        "payload": dict,
        "time": datetime string [YYYY:MM:ddTHH:mm:ss],
        "filters": dict,
        "processing": dict,
        "got_errors": boolean,
        "processed": boolean,
        "origin_id": string
    }
]
opentext 0.1.6
Python class to talk to OpenText REST and Search API, better known as iDMS.
Requires Python: >=3.5, <4
Keywords: opentext,contentserver,restapi,searchapi

# opentext

![Upload Python Package](https://github.com/ProvZH/opentext/workflows/Upload%20Python%20Package/badge.svg)


Python class to talk to OpenText REST and Search API, better known as iDMS within Provincie Zuid-Holland.

# Goal
The goal of the package is to have an easy interface to use the API in Python.

Mainly focussed to work with Content Server 20.2, see [API docs](
https://appworksdeveloper.opentext.com/webaccess/#url=%2Fawd%2Fresources%2Fapis%2Fcs-rest-api-for-cs-20-2&tab=501).


# Development
Package is hosted on GitHub. After each change increase version number and create a new Release on GitHub. The pipeline will trigger a release to PyPi (see status batch above).
MapColoniesJSONLogger 1.0.0
A JSON logger for map colonies project
Requires Python: >=3.6

# json-logger

## Installation
```
pip3 install mapcoloniesjsonlogger
```

## Usage Example
```py
from MapColoniesJSONLogger.logger import generate_logger
import os

log = generate_logger('service_name', log_level='INFO', handlers=[{'type': 'rotating_file', 'path': '/var/log/service.log'}])
log.info('basic message')
log.info('message with extra fields', extra={'extra.field': 'extra_value', 'service': 'some_service'}) # supports nesting of fields
log.debug('will not be in a file')
```

## Configuration Example
The configuration dict bellow is used by the package. For more information on logging configuration see [logging.config](https://docs.python.org/3.6/library/logging.config.html#module-logging.config) docs