semvec/pypi-packages huggingface dataset:
earthspeed 1.2
Finding the Earth velocity relative to the dark matter halo
Requires Python: >=3.7

# earthspeed

By Benjamin Lillard

**For finding the instantaneous velocity of the Earth with respect to the galactic dark matter halo** 

### DESCRIPTION: ##########################################################

This package tracks the effective DM wind velocity for a lab on Earth, including the annual effects from the Earth's orbit around the Sun. 
The parameters for the Earth-Sun system are taken from Lewin & Smith (1996), but with the corrected elliptical terms of arXiv:1312.1355. Updated values for the Local Standard of Rest (LSR) are taken from arXiv:2105.00599.
This notebook uses the astropy package to convert galactic coordinates to ICRS, so that the location of the DM wind source on the sky can be expressed using right ascension (RA) and declination. 
Given a location on Earth, the package can also find the altitude and azimuth angles of the DM wind at any time of day.

A Jupyter notebook "GalacticOrientations" demonstrates how to use the package with a few examples. The primary function is vEt(obstime), which returns the Earth velocity relative to the galactic center in Cartesian coordinates, at an observation date and time "obstime" provided in the format of the datetime package.


**References:**

J. D. Lewin and P. F. Smith, “Review of mathematics, numerical factors, and corrections for dark matter experiments based on elastic nuclear recoil,” Astropart. Phys. 6 (1996) 87–112.

C. McCabe, "The Earth’s velocity for direct detection experiments," JCAP 02, 027 (2014), arXiv:1312.1355 [astro-ph.CO].

D. Baxter et al., “Recommended conventions for reporting results from direct dark matter searches,” Eur. Phys. J. C 81 no. 10, (2021) 907, arXiv:2105.00599 [hep-ex].
django-sage-timezone 0.1.3
A project for timezone handling.
Requires Python: <4.0,>=3.10


# Django Sage Timezone Management

Django Sage Timezone Management is a Django package that allows administrators to easily select and apply a timezone for their session directly from the Django Admin interface. Once set, the timezone is automatically applied to all datetime displays during the session.

## Features

- Adds a "Select Timezone" option in the Django Admin navigation bar.
- Automatically applies the selected timezone to the user's session using middleware.
- Supports all timezones available through `pytz`.
- Simple integration with existing Django projects.

## Installation

### Using `pip` with `virtualenv`

1. **Create a Virtual Environment**:

    ```bash
    python -m venv .venv
    ```

2. **Activate the Virtual Environment**:

   - On Windows:

     ```bash
     .venv\Scripts\activate
     ```

   - On macOS/Linux:

     ```bash
     source .venv/bin/activate
     ```

3. **Install `django-sage-timezone`**:

    ```bash
    pip install django-sage-timezone
    ```

### Using `poetry`

1. **Initialize Poetry** (if not already initialized):

    ```bash
    poetry init
    ```

2. **Install `django-sage-timezone`**:

    ```bash
    poetry add django-sage-timezone
    ```

3. **Apply Migrations**:

    After installation, ensure to run the following commands to apply necessary migrations:

    ```bash
    python manage.py makemigrations
    python manage.py migrate
    ```

## Configuration

### Django Settings

Add `django-sage-timezone` to your `INSTALLED_APPS` in the Django settings:

```python
INSTALLED_APPS = [
    ...
    "sage_timezone",
    "django.contrib.admin"
]
```

Also, add the `TimezoneMiddleware` to your middleware settings:

```python
MIDDLEWARE = [
    "django.contrib.sessions.middleware.SessionMiddleware",
    "sage_timezone.middleware.TimezoneMiddleware",
    ...
]
```

### Important Note:

The `sage_timezone.middleware.timezone.TimezoneMiddleware` must be placed after the `django.contrib.sessions.middleware.SessionMiddleware` in your `MIDDLEWARE` setting. This order is crucial to ensure that the session data is available when the timezone is set.

## Note:
You can set a custom session name in your Django settings using the `TIME_ZONE_SESSION_NAME` setting. For example:

```python
   TIME_ZONE_SESSION_NAME = 'your_custom_session_name'
```


## Usage

Once configured, the Django Admin will include a "Select Timezone" option in the navigation bar. Administrators can choose their preferred timezone, which will be applied to their session.

---