semvec/pypi-packages huggingface dataset:
string-to-ms 0.0.5
A package that converts string times into milliseconds and milliseconds back to readable strings
Requires Python: >=3.9

# String to Milliseconds Converter

This Python module provides functionality to convert between time strings and milliseconds, and vice versa.

## Main Function

### `ms(time: str | int | float, decimal: bool = True) -> str | int | float`

A versatile function that handles bidirectional conversion between time strings and milliseconds. Inspired by the `ms` [npm package](https://www.npmjs.com/package/ms), it allows for both parsing time strings into milliseconds and converting milliseconds into human-readable time strings.

#### Parameters

- `time` (str | int | float): The value to parse or convert
- `decimal` (bool, optional): If False, returns string dates rounded to whole numbers. Default is True.

#### Functionality

**String Input → Milliseconds Output:**

- Parses time strings with format: `"<number> <unit>"`
- Supported units:
- Milliseconds: `ms`, `msec`, `msecs`, `milli`, `millis`, `msecond`, `mseconds`
- Minutes: `min`, `mins`, `m`, `minute`, `minutes`
- Hours: `h`, `hr`, `hrs`, `hour`, `hours`
- Days: `d`, `day`, `days`
- Weeks: `w`, `wk`, `wks`, `week`, `weeks`
- Years: `y`, `yr`, `yrs`, `year`, `years`
- Years will return as floats as they use the average weeks in a year (52.143 weeks).

**Numeric Input → Human-readable String Output:**

- Converts milliseconds to the most appropriate time unit
- Automatically handles pluralization
- Returns formatted strings like "2.5 Hours" or "1 Day"

#### Examples

```python
ms("2.5 hours")  # Returns 9000000
ms("3mins")  # Returns 180000
ms(8280000)      # Returns "2.3 Hours"

ms(8280000, decimal=False)  # 2 Hours
```
[https://github.com/chickenman34234/StringToMilliseconds](https://github.com/chickenman34234/StringToMilliseconds)
paramax-py39 0.0.3.1
Parameterizations and parameter constraints for JAX PyTrees, forked for Python 3.9 compatability.
Requires Python: >=3.9
Keywords: jax, neural-networks, equinox


## Paramax for Python 3.9 (a fork)
============
Parameterizations and constraints for JAX PyTrees
-----------------------------------------------------------------------

Paramax allows applying custom constraints or behaviors to PyTree components,
using unwrappable placeholders. This can be used for
- Enforcing positivity (e.g., scale parameters)
- Structured matrices (triangular, symmetric, etc.)
- Applying tricks like weight normalization
- Marking components as non-trainable

Some benefits of the unwrappable pattern:
- It allows parameterizations to be computed once for a model (e.g. at the top of the
  loss function).
- It is flexible, e.g. allowing custom parameterizations to be applied to PyTrees
  from external libraries
- It is concise

If you found the package useful, please consider giving it a star on github, and if you
create ``AbstractUnwrappable``s that may be of interest to others, a pull request would
be much appreciated!

## Documentation

Original documentation available [here](https://danielward27.github.io/paramax/).

## Installation (Requires python>=3.9)
```bash
pip install paramax 
```

## Example
```python
>>> import paramax
>>> import jax.numpy as jnp
>>> scale = paramax.Parameterize(jnp.exp, jnp.log(jnp.ones(3)))  # Enforce positivity
>>> paramax.unwrap(("abc", 1, scale))
('abc', 1, Array([1., 1., 1.], dtype=float32))
```

## Alternative parameterization patterns
Using properties to access parameterized model components is common but has drawbacks:
- Parameterizations are tied to class definition, limiting flexibility e.g. this
  cannot be used on PyTrees from external libraries
- It can become verbose with many parameters
- It often leads to repeatedly computing the parameterization

## Related
- We make use of the [Equinox](https://arxiv.org/abs/2111.00254) package, to register
the PyTrees used in the package
- This package spawned out of a need for a simple method to apply parameter constraints
    in the distributions package [flowjax](https://github.com/danielward27/flowjax)
recode-geohash 0.1.0
Codificação e decodificação de geohash com geração de vizinhos.
Requires Python: >=3.6

# recode_geohash

Biblioteca para codificação e decodificação de geohash, além de geração de vizinhos próximos (~5km).

## Instalação

```bash
pip install recode_geohash
```
openwrapper 0.2.0
Discord API wrapper

# discord.gg/opening | dataopen

## DISCLAIMER:
##      Some features can rate limit your account, use this at your own risk.


```python
import openwrapper
client = openwrapper.Client(token='your_token') # Initialize the client with your token


def get_country():
    country_code = client.get_country()
    if country_code:
        print(f"Country Code: {country_code}")
    else:
        print("Failed to retrieve country code")
get_country()

def get_dms():
    dms = client.get_dms()
    for user_id, username in dms:
        print(f"User ID: {user_id} | Username: {username}")
get_dms()

def get_guilds():
    guilds = client.get_guilds()
    for guild_id, guild_name in guilds:
        print(f"Guild ID: {guild_id} | Guild Name: {guild_name}")
get_guilds()

def get_friends():
    friends = client.get_friends()
    for friend_id, friend_name in friends:
        print(f"Friend ID: {friend_id} | Friend Name: {friend_name}")
get_friends()

def token_lookup():
    profile = client.token_lookup()
    if profile:
        print(f"Username: {profile['username']}")
        print(f"Email: {profile['email']}")
        print(f"Phone: {profile['phone']}")
        print(f"Locale: {profile['locale']}")
    else:
        print("Invalid token")
token_lookup()

def send_message(c,m):
    client.send_message(channel_id=c, message=m)
    print(f"Message sent to channel {c}: {m}")
send_message(c=id, m='Hi star plsssssssss')

def remove_friend(uid):
    client.remove_friend(user_id=uid)
    print(f"Removed friend with User ID: {uid}")
remove_friend(uid=ID)

def set_language(country_code):
    client.set_language(country_code=country_code)
    print(f"Language set to {country_code}")
set_language(country_code='country code') 
            # 'da', 'de', 'en-GB', 'en-US', 'es-ES', 'fr', 'hr', 'it',
            # 'lt', 'hu', 'nl', 'no', 'pl', 'pt-BR', 'ro', 'fi', 'sv-SE',
            # 'vi', 'tr', 'cs', 'el', 'bg', 'ru', 'uk', 'th', 'zh-CN',
            # 'ja', 'ko'

def set_hypesquad(house_id):
    client.set_hypesquad(house_id=house_id)
    print(f"Hypesquad house set to {house_id}")
set_hypesquad(house_id=id) # 1 = bravery, 2 = balance, 3 = brilliance

def block_user(uid):
    client.block_user(user_id=uid)
    print(f"Blocked user with User ID: {uid}")
block_user(uid=ID) # Block a user

client.UnblockUser(UserId=id) # Unblock a user
def unblock_user(uid):
    client.unblock_user(user_id=uid)
    print(f"Unblocked user with User ID: {uid}")
unblock_user(uid=ID) # Unblock a user

def get_messages(channel_id):
    messages = client.get_messages(channel_id=channel_id)
    for msg in messages:
        print(f"Message ID: {msg['message_id']} | Username: {msg['username']} | Content: {msg['content']}")
get_messages(channel_id=ID) # Get messages from a channel
```