semvec/pypi-packages huggingface dataset:
django-g 0.0.2
Django global context
License: MIT

# django-g

Django global context to get current request from anywhere in your application.

Many scenarios need the current request but Django don't have it accessible.
They expect that your application implement a middleware to use the request,
but it is burdensome and not reusable.

Other packages, like [django-threadlocals](https://pypi.org/project/django-threadlocals/) do the same thing with threadlocals, but it doesn't work on the
async world.

## How to install

```
$ pip install django-g
```

## How to use

Add `django_g.middleware.RequestMiddleware` to your settings `MIDDLEWARE`. It
is a small middleware just to capture the current request and save to global
context, ordering probably doesn't matter because any other middleware
already have access to the request.

```python
MIDDLEWARE = [
    "django_g.middleware.RequestMiddleware",
    ...
]
```


```python
from django_g import get_current_request


def your_func():
    request = get_current_request()
    # Use the request here. Be careful and handle when `request=None`.
```

**protip** It is not a good idea to get the request everywhere, because you're
coupling the framework specifics with your logic, so use this package only to
get the request where you don't have a better way.
coloury 7.7.7
Make your ASCII art beautiful!
License: MIT
Keywords: coloury

# Coloury
> ## Make your ASCII art beautiful!

```
import coloury

# Example

text = """
  cccc yy   yy   aa aa nn nnn  rr rr    aa aa zzzzz   eee  
cc     yy   yy  aa aaa nnn  nn rrr  r  aa aaa   zz  ee   e 
cc      yyyyyy aa  aaa nn   nn rr     aa  aaa  zz   eeeee  
 ccccc      yy  aaa aa nn   nn rr      aaa aa zzzzz  eeeee 
        yyyyy                                              
"""

output = coloury.purplish(text)

print(output)
```

All cosmetic styles:
## purplish
## grellow
## green_flames
## crimson
## flaming
## pink

> ## Check CIA out on **[GitHub](https://github.com/CodeIntelligenceAgency)**!
garpyclient 0.1.1
Basic library for authenticating and querying Garmin Connect
License: MIT
Requires Python: >=3.7.9,<4.0.0

# Garpyclient: Basic library for authenticating and querying Garmin Connect


[![PyPI-Status](https://img.shields.io/pypi/v/garpyclient.svg)](https://pypi.org/project/garpyclient)
[![Tests](https://github.com/felipeam86/garpyclient/actions/workflows/test.yml/badge.svg)](https://github.com/felipeam86/garpyclient/actions/workflows/test.yml) 
[![Coveralls](https://coveralls.io/repos/github/felipeam86/garpyclient/badge.svg?branch=develop)](https://coveralls.io/github/felipeam86/garpyclient?branch=develop)



`garpyclient` is a simple library to communicate with Garmin Connect. It was extracted from
[garpy](https://github.com/felipeam86/garpy) and the idea is for this to become the core client
library of it in a next iteration. Ideally, `garpyclient` is intended to be used by other python libraries that want to download their data from Garmin Connect. It is kept simple on purpose so that
end users can build upon it with their own workflows. As an example, the following code will fetch the 
latest activity from your Garmin profile:


```python
from garpyclient import GarminClient

with GarminClient(username="user", password="pass") as client:
    activities = client.list_activities()
    response = client.get_activity(activities[0]["activityId"], fmt="original")
```

The file content will be found in `response.content`. The format of the file will depend on the parameter `fmt` to which you can pass the following values:

- For an overview of the activities: `summary` or `details`
- For data points of the activity: `gpx`, `tcx`, `original` (usually fit format) and `kml`.


## Installation

``garpyclient`` requires Python 3.7 or higher on your system. 
Install with pip as follows:


```bash
    pip install -U garpyclient
```

If you are new to Python, I recommend you install [Miniconda](https://docs.conda.io/en/latest/miniconda.html). To my knowledge, it is the simplest way of installing a robust and
lightweight Python environment.


## Acknowledgements

The original library ([garpy](https://github.com/felipeam86/garpy)) is based on
[garminexport](https://github.com/petergardfjall/garminexport). I borrowed the GarminClient, refactored it to my taste and created a package from it.