semvec/pypi-packages huggingface dataset:
blueblack 1.0.2
Automatic light/dark mode transitions based on location
Requires Python: <4.0,>=3.12

# Blueblack

Automatically change to light and dark mode depending on your location.

Set up a simple `config.yaml` under your `$XDG_CONFIG_HOME/blueblack` file with

```
# Get your lattitude and longtitude through e.g. gmaps (https://support.google.com/maps/answer/18539?hl=en&co=GENIE.Platform%3DDesktop)
"lat": 23.2003
"lng": 31.1233
"update_days": 1
```

and change the update_days to something appropriate (e.g. 10 days).

When it's slightly past sunrise or sunset time (around 5 seconds), executable scripts inside `XDG_CONFIG_HOME/blueblack/{dark,light}_mode` will run automatically.
Some examples are provided in [the source code page](https://github.com/smitropoulos/blueblack/tree/main/configs)

Internally, Blueblack will use [the Sunrise-sunset API](https://sunrise-sunset.org/api) which is currently free. Please use this responsibly, so we can have free things.
pyphyi 1.0
A 2D Rigid Body Physics Engine.
Requires Python: >=3.6

# PyPhyi

## Description

PyPhyi is a 2D Rigid Body Physics Engine designed to simulate physical interactions of objects in a two-dimensional space. It is easy to integrate and can be used for games, simulations, and educational purposes.

## License

This project is licensed under the MIT License.

## Installation

Before installing PyPhyi, ensure you have PyGame installed:

```sh
pip install pygame

```
or

```sh
pip install pygame-ce

```

## Example Project

```python
from pyphyi import World, Body, Vector2
import pygame
import sys

WIDTH, HEIGHT = 900, 900
WINDOW = pygame.display.set_mode((WIDTH, HEIGHT))

space = World(window=WINDOW, gravity=(0, 9.8))

clock = pygame.time.Clock()
FPS = 60

testBody = Body.CreateCircleBody(radius=25, center=Vector2(100, 100), density=1.2, restitution=0.8, static=False)
space.AddBody(testBody)

while True:
    dt = clock.tick(60) / 1000

    space.step(dt)

    WINDOW.fill((0, 0, 0))
    space.Render()

    pygame.display.update()

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()
```