semvec/pypi-packages huggingface dataset:
python-snowflake-2 0.1.0
Based on falcondai and fenhl's Python snowflake library with changes to be more similar to Discord and include documentation. This has been developed for use in Learnloot's backend, but anyone may use it.
Requires Python: >=3.6

# python-snowflake-2
Based on <a href="https://github.com/falcondai/python-snowflake/blob/69898a84ef2b9c4919b5940120f8fc8e90723e0f/snowflake.py">falcondai and fenhl's Python snowflake tool</a>, but with documentation and simliarities to Discord.

## Installation instructions
Installation is easy. Just read the docs below then run this command:
```
pip install python-snowflake-2==0.0.1
```

## Docs
### `make_snowflake`

This is a function to generate a snowflake. 

This function does not return an integer snowflake - it returns a string.

Paramters are listed below.

Here's an example if you want to look at it after reading the below docs:
```python
make_snowflake(time.time(), 0, 0, 0)
```

#### `timestamp_ms`
This is an epoch time paramter. You can get one by running `time.time()`.

Basically, an oversimplified description of the way a snowflake works is by looking at a "twepoch", then subtracting a normal epoch from it (but there are other factors in it, as detailed in the rest of this documentation). That is why you need a `timestamp_ms`.

Note that the default twepoch is `1639853814` here, but Twitter's is `1288834974657`

Discord has <a href="https://discord.com/developers/docs/reference#snowflakes">some information</a> on this as well.
![image](https://user-images.githubusercontent.com/61570792/146653588-2142e8a1-ac07-45ea-b78c-a6dc6ed605bc.png)

#### `worker_id`
This can  be used internally to keep track of the worker for each snowflake, <a href="https://discordapp.com/developers/docs/reference">inspired by Discord's snowflake system</a>. 

#### `process_id`
This can be used internally to keep track of the process for each snowflake, <a href="https://discordapp.com/developers/docs/reference">inspired by Discord's snowflake system</a>.

Discord's documentation shown in `worker_id` also applies here.

#### `increment_id`
This can be used to keep track of 12-bit increments for every generated ID on the aforementioned process.

### `snowflakeToTime`

Converts a snowflake to a Python `datetime`.

Takes a snowflake ID argument only and converts it to a datetime.

Example:

```python
snowflakeToTime(make_snowflake(time.time(), 0, 0, 0))
```
python-snowflake-py 0.0.2
Based on falcondai and fenhl's Python snowflake library with changes to be more similar to Discord and include documentation. This has been developed for use in Learnloot's backend, but anyone may use it.
Requires Python: >=3.6

# python-snowflake-2
Based on <a href="https://github.com/falcondai/python-snowflake/blob/69898a84ef2b9c4919b5940120f8fc8e90723e0f/snowflake.py">falcondai and fenhl's Python snowflake tool</a>, but with documentation and simliarities to Discord.

## Docs
### `make_snowflake`

This is a function to generate a snowflake. 

This function does not return an integer snowflake - it returns a string.

Paramters are listed below.

Here's an example if you want to look at it after reading the below docs:
```python
make_snowflake(time.time(), 0, 0, 0)
```

#### `timestamp_ms`
This is an epoch time paramter. You can get one by running `time.time()`.

Basically, an oversimplified description of the way a snowflake works is by looking at a "twepoch", then subtracting a normal epoch from it (but there are other factors in it, as detailed in the rest of this documentation). That is why you need a `timestamp_ms`.

Note that the default twepoch is `1639853814` here, but Twitter's is `1288834974657`

Discord has <a href="https://discord.com/developers/docs/reference#snowflakes">some information</a> on this as well.
![image](https://user-images.githubusercontent.com/61570792/146653588-2142e8a1-ac07-45ea-b78c-a6dc6ed605bc.png)

#### `worker_id`
This can  be used internally to keep track of the worker for each snowflake, <a href="https://discordapp.com/developers/docs/reference">inspired by Discord's snowflake system</a>. 

#### `process_id`
This can be used internally to keep track of the process for each snowflake, <a href="https://discordapp.com/developers/docs/reference">inspired by Discord's snowflake system</a>.

Discord's documentation shown in `worker_id` also applies here.

#### `increment_id`
This can be used to keep track of 12-bit increments for every generated ID on the aforementioned process.

### `snowflakeToTime`

Converts a snowflake to a Python `datetime`.

Takes a snowflake ID argument only and converts it to a datetime.

Example:

```python
snowflakeToTime(make_snowflake(time.time(), 0, 0, 0))
```
dcrf_asyncapi 0.0.2
AsyncAPI schema generation for Django Channels Rest Framework
Requires Python: >=3.9

# dcrf-asyncapi
AsyncAPI schema generation for Django Channels Rest Framework

[![PyPI Version][pypi-image]][pypi-url]

[pypi-image]: https://img.shields.io/pypi/v/dcrf-asyncapi
[pypi-url]: https://pypi.org/project/dcrf-asyncapi/

# Installation

Using pip

`pip install dcrf-asyncapi`

Using pipenv

`pipenv install dcrf-asyncapi`
pylux 1.1
Program for creating stage and entertainment lighting documentation

Pylux
=====

Pylux is a program for creating and managing documentation for stage lighting.

Pylux currently has the capability to generate plaintext documentation from
Jinja template files and create 2D plots in SVG although you will need to provide 
your own fixture vector files.

You can also import data from an Eos ASCII export, including the complete patch,
groups, palettes, and cues.

Installation and Dependencies
-----------------------------
Pylux is available on PyPI, so after installing Python and pip, you can simply run::

    pip3 install pylux

The PyPI package does not include the content repository, which includes fixture
templates, symbols and documentation templates. Pylux will search in ``~/.pylux``
for this, so you can just clone the repository there::

    git clone https://github.com/jackdpage/pylux-content.git ~/.pylux

Simply run ``pylux`` from the terminal to launch the program.

Screenshot
----------
Screenshot of curses interface showing fixture list on the left and DMX universe summary 
on the right. Data imported directly from Eos ASCII export with no post-processing.

.. image:: https://i.ibb.co/jkGYtMb/sc.png

Sample Output
-------------
Rendered at 1:50 on A3

.. image:: https://i.ibb.co/DKQRLSD/plota3.png

Visualisation enabled, titles and extra symbols disabled

.. image:: https://i.ibb.co/q0WdRnm/with-viz.png

Documentation
-------------

Documentation is available at
`Read the Docs`_.

.. _`Read the Docs`: http://pylux.readthedocs.org/

License
-------

Pylux is licensed under the GNU GPL v3.0. A full copy of the license is 
available in the file ``COPYING``.