semvec/pypi-packages huggingface dataset:
mc-mod-getter 1.1.2
Download & Update Mods for Minecraft
License: MIT
Keywords: Package

# mc-mod-getter [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Package Pypi](https://img.shields.io/pypi/v/mc-mod-getter.svg)](https://pypi.org/project/mc-mod-getter)

I made this tool to download & update mods using [MultiMC](https://github.com/MultiMC/MultiMC5) but you can use this as a standalone python module as well

## Usage

### MultiMC

1. Create or Edit a minecraft instance 

   ***NOTE**: Ensure there are no spaces in the instance name or the directory paths*

2. Install your loader of choice

3. Download the binary from [releases](https://github.com/mgutierrezz/mc-mod-getter/releases) or [build your own binary](#building-your-own-binary) from scratch

4. Copy the binary to your MultiMC's instance .minecraft folder

5. Create a [yaml file](#yaml-file-structure) in the same .minecraft directory

6. Enable Custom Commands under in your instance's Settings & paste the following in the Pre-launch command box

   MacOS

   ```bash
   $INST_MC_DIR/mc-mod-getter --file $INST_MC_DIR/<FILENAME>.yaml
   ```

   

   Windows:

   ```bash
   $INST_MC_DIR/mc-mod-getter.exe --file $INST_MC_DIR/<FILENAME>.yaml
   ```

7. Launch your instance

### Python

Install it from PyPi to an env:

```bash
python3 -m pip install mc-mod-getter
```

Run the tool:

```bash
python3 -m mc-mod-getter --file /path/to/file.yaml
```



## YAML File Structure

The tool takes a yaml file as input (Tabs for indentations, space after hyphens)
Here's an example yaml file:

```yaml
loader: fabric
version: 1.17.1
mod_dir: C:\Games\mmc-stable-win32\MultiMC\instances\fabric-1.17.1\.minecraft\mods
mods:
    curseforge:
        - Cloth Config API (Fabric)
    modrinth:
        - Fabric API
        - FallingTree
        - EasierVillagerTrading
        - Mod Menu
        - Starlight
        - Hydrogen
        - Sodium
        - Lithium
        - Indium
        - DashLoader
        - Enhanced Block Entities
        - Seamless Loading Screen
        - Falling Leaves
```

### Supported Mod Hosts:

> [Modrinth](https://modrinth.com/mods?q=)

> [Curseforge](https://www.curseforge.com/minecraft/mc-mods)

## Building Your Own Binary

Activate an env and navigate to the root project directory

```bash
make build
```

or if you don't have make

```bash
python3 -m pip install pyinstaller 
python3 -m PyInstaller --onefile mc_mod_getter/__main__.py
```
smartpay-sdk 0.0.8
Smartpay SDK Python
License: MIT

# Smartpay Python SDK

The Smartpay Python SDK offers easy access to Smartpay API from applications written in Python.

## Prerequisites

Python v3+

## Installation

```shell
pip install --save smartpay-sdk
```

## Usage

The package needs to be configured with your own API keys, you can find them on your [dashboard](https://merchant.smartpay.co/settings/credentials).

```python
from smartpay import Smartpay

smartpay = Smartpay('<YOUR_PRIVATE_API_KEY>', public_key='<YOUR_PUBLIC_API_KEY>');
```

If you would like to know how Smartpay payment works, please see the [payment flow](https://docs.smartpay.co/#payment_flow) for more details.

### Create Checkout session

```python
payload = {
  items: [
    {
      name: "レブロン 18 LOW",
      amount: 250,
      currency: "JPY",
      quantity: 1,
    },
  ],

  shipping: {
    line1: "line1",
    locality: "locality",
    postalCode: "123",
    country: "JP",
  },

  # Your internal reference of the order
  reference: "order_ref_1234567",

  # Callback URLs
  successURL: "https://docs.smartpay.co/example-pages/checkout-successful",
  cancelURL: "https://docs.smartpay.co/example-pages/checkout-canceled",

  test: true,
};

session = smartpay.create_checkout_session(payload);
```

### To retreive the session URL

```javascript
sessionURL = smartpay.get_session_url(session);
```

We also prepare a more [real-world example](https://github.com/smartpay-co/integration-examples/blob/main/server/python/server.py) for you to refer to.
ip-pool 0.1.0
Coming soon
License: MIT
Requires Python: >=3.7

# IP Address Pool

## Description

This is a tool to generate a list of IP addresses and track which ones are used. For example, tooling that generates VPN profiles can request a new address, and this will hand out the next available one and make a note of it. When an address is no longer required, it can be returned to the pool.

Currently only supports IPv4.

## Installation

```Console
$ pip3 install [--user] ip-pool
```

## Example Usage

Usage:

```Console
$ ip-pool --help
usage: ip-pool [-h] [--initialize CIDR_ADDRESS] [--new-address HOSTNAME] [--release-address HOSTNAME]
               [--address-for HOSTNAME]
               pool_db_json

positional arguments:
  pool_db_json          Path to IP pool database json file

optional arguments:
  -h, --help            show this help message and exit
  --initialize CIDR_ADDRESS
                        Initialize IP pool with the provided CIDR address/netmask
  --new-address HOSTNAME
                        Allocate next unused address to HOSTNAME
  --release-address HOSTNAME
                        Release address for HOSTNAME and return it to the pool
  --address-for HOSTNAME
                        Print address for HOSTNAME
```

The following will initialize a new IP address pool, but not allocate any addresses:

```Console
$ ip-pool ./pool.json --initialize "192.168.8.1/24"
$ cat pool.json
{
  "ip_version": 4,
  "network": "192.168.8.0/24",
  "hostnames": {}
}
```

Request a new address for hostname (or other identifier) `server_1`:

```Console
$ ip-pool ./pool.json --new-address server_1
192.168.8.1/24
```

Return a new address for hostname `server_1`:

```Console
$ ip-pool ./pool.json --release-address server_1
```

Reassign an address from host_2 to host_3:

```Console
$  ip-pool ./pool.json --release-address host_2 --new-address host_3
192.168.8.2/24
```

Get the address for `host_3`:

```Console
$ ip-pool pool.json --address-for host_3
192.168.8.2/24
```

List all addresses and their identifiers in use:

```Console
 $ ip-pool pool.json --list-used
host_1: 192.168.8.1/24
host_3: 192.168.8.2/24
```