semvec/pypi-packages huggingface dataset:
hlcpy 0.0.2
Hybrid Logical Clock in Python
License: MIT

# Hybrid Logical Clock

Python implementation of Hybrid Logical Clock.

Requires Python version >= 3.7.

You can install this package from [PyPI](https://pypi.org/project/hlcpy/):

```bash
$ pip install hlcpy
```

## Exemplary usage

```python
import hlcpy

# BASIC USAGE
# Instantiate HLC
c = hlcpy.HLC()

# specify starting nanos and logical time
c = hlcpy.HLC(nanos=123, logical=0)

# create from current time
c = hlcpy.HLC.from_now()

# create from iso8601 time
c = hlcpy.HLC.from_str('2020-01-01T00:00:00Z')

# string representation of HLC
print(str(c))
#>>> 2020-01-01T00:00:00.000000000Z_0

# create from string representation
c1 = hlcpy.HLC.from_str(str(c))

# refresh the clock
c.sync()

# supports comparison
print(c > c1)
#>>> True

# merge two events
c.merge(c1)
print(c)
#>>> 2021-04-24T18:42:47.001864924Z_0

# merge event that occured in the future see the logical tick
import time
future = hlcpy.HLC(nanos=int(time.time_ns() + 3e9))
c.merge(future)
print(c)
#>>> 2021-04-24T18:42:50.001891328Z_1

# More examples - see tests/unit/test_hlc.py

```

## Credits

Based on:
https://www.cse.buffalo.edu/tech-reports/2014-04.pdf

Inspired by:

- https://www.youtube.com/watch?v=iEFcmfmdh2w
- https://github.com/adsharma/hlcpy (based on but heavily rewritten)
- https://bartoszsypytkowski.com/hybrid-logical-clocks/
choice-composer 1.0.3
It will help you to make choice filed.
License: MIT

## Choice-composer:
It will help you to make choice filed in Django or anywhere in python script according to your choices :smiley:

## Installation
```pip install choice-composer```

## How to use it?
```python:
from choice_composer import Choice
# Write a class by extending Choice:
class UserRole(Choice):  
	ADMIN = 1  
	NORMAL_USER = 2  
	CLIENT = 3
# Let's see the how we can use it in django model:
class UserProfile(models.Model):  
	#......
	role = models.PositiveIntegerField(choices=UserRole.choices(), default=UserRole.NORMAL_USER)
	# If you want to get exact name of role then you can use property method by the following way:
	@property
	def user_role(self):
		return UserRole(self.role).name.title() 
```
***  If you want to filter data by specific role then you can use the following way:
```python:
def role_wise_users(role=UserRole.CLIENT):
	# It returns all the client users from UserProfile model.
	users = UserProfile.objects.filter(role=role)
	return users
```

## License

© 2021 Imam Hossain Roni

This repository is licensed under the MIT license. See LICENSE for details.
SilverBotFNPack 6.9.9
Imagine.
License: MIT

# SilverBot
SilverBot Is A Unbranded Lobby Bot That Is Awesome For Trolling

# Info

For The Default Skin You Can [Join Our Discord](discord.gg/hmXa5cQCJH) Server And Do The Command ?item item name to get the ID of that cosmetic and put in the Settings.json where it goes

# Support

For Any More Support [Join Our Discord](discord.gg/hmXa5cQCJH)