semvec/pypi-packages huggingface dataset:
triton-utils 0.2.0
A collection of utility functions and tools for Triton projects
Requires Python: >=3.7

# Triton Utils

[WIP]

A collection of utility functions and tools for Triton kernel development.

Most code copied from project below:

- [BobMcDear/attorch: A subset of PyTorch's neural network modules, written in Python using OpenAI's Triton.](https://github.com/BobMcDear/attorch)
- [FlagOpen/FlagGems: FlagGems is an operator library for large language models implemented in Triton Language.](https://github.com/FlagOpen/FlagGems)
- [lectures/lecture\_014/triton\_util.py at main · gpu-mode/lectures](https://github.com/gpu-mode/lectures/blob/main/lecture_014/triton_util.py)
- [UmerHA/triton\_util: Make triton easier](https://github.com/UmerHA/triton_util)


### pre-commit

```
pip install pre-commit
pre-commit install
pre-commit run --show-diff-on-failure --color=always --all-files
```

## Features



## Installation

```bash
git clone https://github.com/2niuhe/triton-utils.git && cd triton-utils
pip install .
```


## Usage



## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


**CI**

- action

.github/workflows/code-format-check.yml

- self runner action

.github/workflows/make-build.yml
recnetlogin 0.2.0
RecNetLogin is a Python library that lets you to acquire your RecNet access token and more!
Requires Python: >=3.8

![rnl](https://github.com/Jegarde/RecNet-Login/assets/13438202/5d25fa39-6d8f-4717-82c8-619574036817)
This is a Python package that allows you to acquire your [RecNet](https://rec.net/) access token and more with your cookie! 🍪

# Features
- Automatically renewing token
- Supports 2FA accounts
- Decoding the bearer token
- Detailed exceptions

# Installation
Download the recnetlogin folder and place it in your project.

pip installation once this is stable.

# Setup
### Gathering your session token
1. Login to [RecNet](https://rec.net/). While logging in, make sure you toggle on "Remember me / my machine".
2. Open your browser's DevTools (Inspect Element)
3. Open the `Storage` or `Application` tab on the top
4. Locate `Cookies` > `https://rec.net` on the directory
5. Search for `__Secure-next-auth.session-token` by filtering the cookies
6. Double click the value and copy it 
![image](https://github.com/Jegarde/RecNet-Login/assets/13438202/0fba154d-031e-4c57-87ab-e4d5ae9c0fe1)

### Option 1/2: Storing it in your environment variables (Windows)
1. Search for environment variables and open the first result

![image](https://github.com/Jegarde/RecNet-Login/assets/13438202/c35ebeb9-de31-46ba-a264-f02138560321)

2. Click `Environment Variables...`

![image](https://github.com/Jegarde/RecNet-Login/assets/13438202/dd341365-fa90-4145-82aa-94a12f91019a)

3. Click `New` under System Variables

![image](https://github.com/Jegarde/RecNet-Login/assets/13438202/2d098f6f-145c-4232-b9ed-86000622a077)

4. Name the variable `RN_COOKIE` and paste the copied value

![image](https://github.com/Jegarde/RecNet-Login/assets/13438202/d792c266-b348-459c-b74f-dc765efc1f41)


5. Press OK on all the opened tabs

6. Restart your computer for it to take effect

### Option 2/2: Storing it in a .env.secret file
1. Make a new file named `.env.secret` in your project's directory
2. Type `RN_SESSION_TOKEN=` in the file and paste the copied value

![image](https://github.com/Jegarde/RecNet-Login/assets/13438202/8a9025ed-cb13-43d8-adaf-07a600766fca)


3. If the file is not in your project's directory, make sure to specify it
```py
rnl = RecNetLogin(env_path=".env.secret")  # Env path defaults to local directory
```

# Usage

### Getting your token
```py
from RecNetLogin import RecNetLogin

rnl = RecNetLogin()
token = rnl.get_token()
decoded_token = rnl.get_decoded_token()  # JWT decoded
print(token, decoded_token)
```

### Making authorized calls
```py
from recnetlogin import RecNetLogin

rnl = RecNetLogin(env_path=".env.secret")

# Fetch using RecNetLogin's HTTPX client
r = rnl.client.get("https://accounts.rec.net/account/me")

for key, value in r.json().items():
    print(key, value)

# Close the client once done
rnl.close()
```
streamlit-query-wrapper 0.1.3
A wrapper for Streamlit components accessable via query parameters
Requires Python: >=3.10

# streamlit_query_wrapper

## About
This project provides wrapper of default streamlit input widgets(checkbox, multibox, etc.).

With sharable link, you can access with exactly same setting you used.

## Install
`pip install streamlit-query-wrapper`

## Usage

```python
import streamlit_query_wrapper as stq

stq.radio("Test", ["Hello", "world"])

stq.sharable_link() # shows st.code component with sharable URL
```

Result


<img src="https://github.com/minolee/streamlit_query_wrapper/blob/main/readme/basic.png?raw=true" alt="drawing"/>

Now you can access your page with given link. If you access your page with given URL, all settings you made will be loaded.

## Components
Works with basic streamlit input components.

Supports
* `checkbox`
* `radio`
* `selectbox`
* `multiselect`
* `slider`
* `text_input`
* `number_input`

Also works with `st.sidebar`. You can use either `stq.sidebar.checkbox`, or `stq.checkbox` in `with st.sidebar` statement.

As in original streamlit, this module uses label as default key value, and duplicate is not allowed.