semvec/pypi-packages huggingface dataset:
immutableListType 1.0.0
An Immutable List type for python.

# IMMUTABLES

A series of immutable types for use in python projects.

-----

## Immutable Types and why they matter

**ImmutableList** - The ImmutableList type is a python type that allows you to instantiate a list once and then use the contents of that list. As this list is immutable, it can not be modified in any way.

**Set** - the Set type in python is mutable. Python's built in frozenset is the immutable version of the **Set** type. No additional types are needed.

**Dict** - the Dictionary type in python is mutable. Pythons built in namedtuple type is the immutable version of the **dict** type. No additional types are needed.
lorautil 0.1
Extension methods written for loralib.
Requires Python: >=3.6

# Introduction

This repository is a collection of useful extensions for [loralib](https://github.com/microsoft/LoRA) that can be used to easily make substitutions for `Linear`, `Conv` and `Embedding` in the model using the methods in the repository.

# Usage

Suppose we have a model like the following, where we want to replace `Linear` and `conv2d` with the corresponding LoRALayer in loralib.

```python
from torch import nn
import torch.nn.functional as F


class ToyModel(nn.Module):
    def __init__(self, vocab_size, embed_dim, num_features, num_classes):
        super(ToyModel, self).__init__()
        self.embedding = nn.Embedding(vocab_size, embed_dim)
        self.conv = nn.Conv2d(1, num_features, (3, 3))
        self.fc = nn.Linear(num_features, num_classes)

model = ToyModel(vocab_size = 4096, embed_dim = 768, num_features = 1024, num_classes = 64)
```

We can call the make_lora_model_by_type method for this purpose. 

```python
>>> model = make_lora_model_by_type(model, ['linear', 'conv2d'], r = 8, lora_alpha = 16)
>>> for name, submodel in model.named_children():
...     print(f'{name:<10}, {type(submodel)}')

embedding , <class 'torch.nn.modules.sparse.Embedding'>
conv      , <class 'loralib.layers.Conv2d'>
fc        , <class 'loralib.layers.Linear'>
```

As you can see, `Linear` and `conv2d` have been replaced successfully.
DisOAuth 0.2.0
Helps with discord oauth2
Requires Python: >=3.7

# DiscordOAuth2
automatically follows through with the requests for Discord OAuth

***

## Features
- Makes a Authorization Url automatically, using the client ID, redirect_uri, and the scopes you want
- Nothing else, working on getting the json data from the query string

***

## What I'm working on for version 1.0.0

- [ ] Guaranteed features
  - [ ] Make requests to each of the usable discord api links
    - [ ] Make a working api class (api meaning discord api)
    - [ ] Return the response code
    - [ ] return the json as a python dictionary
     
- [ ] Potential features:
  - [ ] Raise errors when you try to use links that don't exist
cubao-pybind 0.0.3
misc c++ code in cubao
Requires Python: >=3.7

# cubao-pybind

Online document: **[readthedocs](http://cubao-pybind.readthedocs.io/)**

<!--intro-start-->

## Usage

Install:

```bash
python3 -m pip install cubao_pybind # install from pypi
python3 -c 'import cubao_pybind; print(cubao_pybind.add(1, 2))'
```

CLI interface: (created with [python-fire](https://github.com/google/python-fire))

```bash
python3 -m cubao_pybind add 1 2
python3 -m cubao_pybind subtract 9 4
```

Help:

```bash
$ python3 -m cubao_pybind --help

$ python3 -m cubao_pybind pure_python_func --help
```

More:

```bash
python3 -m cubao_pybind xxhash_for_file README.md
```

<!--intro-end-->
imdb-metadata-extractor 0.0.5
imdb-metadata-extractor
Keywords: web

# IMDB metadata extractor

Extracts a movie metadata from the IMDB using the JSON+LD annotations provided in the
IMDB HTML pages. 

## Installing

```
$ pip install imdb-metadata-extractor
```

## Usage

```
$ imdb-metadata-extractor tt0058700
{
    "name": "The Last Man on Earth",
    "poster": "https://m.media-amazon.com/images/M/MV5BODA0MzRhYWMtMGUxYi00NmQyLWEyOWYtMGI4NjM3ZDE5NTEyXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_.jpg",
    "description": "When a disease turns all of humanity into the living dead, the last man on earth becomes a reluctant vampire hunter.",
    "rating": 6.7,
    "release": "1964-05-06",
    "genre": "Drama; Horror; Sci-Fi",
    "actors": "Vincent Price; Franca Bettoia; Emma Danieli"
}
```

By default the results are displayed in the STDOUT, but It's also possible to set a output file and
format (JSON, CSV of XLSX).

```
$ imdb-metadata-extractor tt0058700 --output tt0058700.csv --format csv
```
gamesave 1.0.1
a small module to make hobbyist game development easier
Requires Python: >=3.7

# gamesave

Update 1.0.1: Changable file encoding via settings! Also, small bug fixes.

a small module to make hobbyist game development easier; <br>
includes Base64 support for save files.

a very simple library, probably won't get updates unless people use it :P