semvec/pypi-packages huggingface dataset:
snowflake.py 1.0.0
Simple Twitter snowflake-like id generator
Requires Python: >=3.6

# snowflake.py

This is just a simple library for creating and managing twitter-like snowflake identifiers.


## How do I use it?
Its honestly really simple to generate a snowflake.

```python
import snowflake
import time

# The generator takes 3 arguments,
# The epoch timestamp, The number of seconds since the Unix Epoch
#   That we want to base all of our snowflake timestamps from.
#   By default it does time.time()/1000 and uses that.
# The process_id, By default it is the PID of the process however this can be
#   Whatever identifer you would like
# The worker_id, By default its 0, However it can also be whatever number you decide.
generator = snowflake.Generator()

# Then we just call generate and optionally provide a timestamp
snowflake = generator.generate()
```
Once you generate the snowflake, you can get an int using `int()` or string using `str()`,
It has some properties added to it, they are `timestamp`, `process_id`, and `worker_id` and they give as they say.

Its pretty simple. :)

if you have any issues or questions feel free to post an issue.
test-plus 0.2.2
Test analysis tool for Django
Keywords: django,test

# Django Test Plus Extensions
[![License](https://img.shields.io/pypi/l/django-extensions.svg)](https://raw.githubusercontent.com/tolgahanuzun/test_plus/master/LICENSE) [![](https://img.shields.io/pypi/v/test-plus.svg)](https://pypi.org/project/test_plus/) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/tolgahanuzun/test_plus.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/tolgahanuzun/test_plus/context:python) 

Django Test Plus Extensions is a collection of custom extensions for the Django Framework.

## Getting Started

Django Test Plus Extension is an advanced tool for Django tests. Motivation; This is a detailed analysis of the atomic parts of Django tests. In short, each running test understands how long it runs.

## Requirements

- Django > 1.11

## Getting

You can get Django Extensions by using pip:

```
$ pip install test_plus
```

If you want to install it from source, grab the git repository from GitHub and run setup.py:

```
$ git clone git://github.com/tolgahanuzun/test_plus.git
$ cd test_plus
$ python setup.py install
```

## Installing

To enable django_extensions in your project you need to add it to INSTALLED_APPS in your projects settings.py file:

```
INSTALLED_APPS = (
    ...
    'test_plus',
    ...
)
```
## Using

It takes the same parameter in Django tests.

### Default using

```
python manage.py test_plus
```

### Path definition

```
python manage.py test_plus app_name.test.test_file -k -v 2
```


### Repeated running of tests

Runs the test n times.

```
python manage.py test_plus app_name.test.test_file -k -v 2 -rp 3 
```

### Result

![](https://raw.githubusercontent.com/tolgahanuzun/test_plus/master/test.png)

## Support

Inspired by the Django Extensions package. It is free and open to improvement. I can improve if you tell me your needs. You can also support the development.