semvec/pypi-packages huggingface dataset:
lua-imports 1.0.0
Import Lua modules directly from within Python
License: MIT
Requires Python: >=3.6

# lua_imports

Import Lua modules directly from within Python.

## Basic Usage

Once `lua_imports.lua_importer` has been registered, write an `import` statement in your Python code, referring to your Lua module.

### Example

`foo.lua`

```lua
return {
    say_hello = function(person)
        print("Hello, " .. person)
    end
}
```

`bar.py`

```python
import foo

foo.say_hello("World")
```

## Registration

`lua_importer` may be registered within Python code:

```python
from lua_imports import lua_importer

lua_importer.register()
```

(Note that this must come *before* any Lua imports)

Alternatively, to register `lua_importer` environment-wide, create a `lua-imports.pth` file in your environment's `site-packages` folder with the following contents:

```pth
import lua_imports; lua_imports.lua_importer.register()
```

## Caveats

This module wraps [Lupa](https://github.com/scoder/lupa), and so comes with all the same caveats about Lua vs. Python data types.
azcaptchaapi 0.3.1
Python API implementation for AZCaptcha.com
License: MIT

<<<<<<< HEAD
# AZCaptcha.com Python API

This library implements a simple to use wrapper around the AZCaptcha.com API.

### Installation
From PyPi
```
pip install azcaptchaapi
```

From source
```
git clone https://github.com/azcaptcha/azcaptchaapi.git
cd azcaptchaapi
python setup.py install
```

### Examples

#### Initializing the API
```python
from azcaptchaapi import AZCaptchaApi
api = AZCaptchaApi('<API KEY>')
```

#### Solving a captcha blocking
```python
with open('/my/captcha/path.png', 'rb') as captcha_file:
    captcha = api.solve(captcha_file)

print(captcha.await_result())
```
Waits until the captcha is either solved or an error occurred (indicated through an exception).

#### Solve captcha "non-blocking"
```python
captcha = api.solve(captcha_file)
print(captcha.try_get_result())
```
If already available, prints the captcha text, else `None`. Please note that while this code doesn't repeatedly ask the API if the captcha was solved, the HTTP request is still sent synchronously, so this method isn't *really* non-blocking.

#### Reporting a bad captcha
```python
result = captcha.await_result()
if use_captcha_code(result) == 'failed':
    captcha.report_bad()
```

#### Query account balance
```python
print(api.get_balance())
```

### Compatibilty
This library was successfully tested on Python 2.7 and 3.5. Python versions < 2.7 are *not* officially supported.

### License
This code is released under MIT license. Dependencies are under their respective licenses.

*This project is _not_ affiliated with, maintained, authorized, endorsed or sponsored by AZCaptcha.com or any of its affiliates.*
=======
# azcaptchaapi
python api upload image captcha to azcaptcha.com
dbexport 0.1.0
Python projects that takes the input from a postgres database and exports the results on csv and json format
License: MIT
Requires Python: >=3.7.0


# Database exporter

## What's this
Python project that uses sqlalchemy to retrieve data from a postgres database and exports them to csv and json format

## Install
```
pip install dbexport
```

## Run

* To export in csv format run
```
csvexport
```
* To export in json format run 
```
jsonexport
```
ugly-switch 0.1.2
An ugly pseudo solution for using switches in python.
License: MIT
Requires Python: >=3.7
Keywords: switch

# ugly_switch
  [![Build Status](https://travis-ci.org/RoW171/ugly_switch.svg?branch=master)](https://travis-ci.org/RoW171/ugly_switch)
  [![codecov](https://codecov.io/gh/RoW171/ugly_switch/branch/master/graph/badge.svg)](https://codecov.io/gh/RoW171/ugly_switch)
  [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://choosealicense.com/licenses/mit/)

  An ugly pseudo solution for using switches in python.

### Installation

    pip install ugly_switch

### Usage

    from ugly_switch import switch

  A Switch can be used once:

    switch[
        True, door_lock,
        False, door_unlock
    ](not door_state)

    # looks the door when it's state is False and vice versa

  or can be stored to be used multiple times in the future:

    s = switch[
        'a', lambda: print('was a'),
        'b', lambda: print('was b')
    ]

    # some stuff

    value = 'a'
    s(value)

    # OUT: "was a"

  When the number of args in the switch is **even**,
  the pairs make up the switch as sets of **cases** and **actions**.
  actions must be **callable methods** or **lambdas**.
  If the number of args may be **odd**, the last item
  will be used as **default**, expecting it to be a callable.

  With the example directly above, nothing will happen, if `value`
  happens to be neither `'a'` nor `'b'`.

  Below it has a default action.

    value = 'c'
    s = switch[
        'a', lambda: print('was a'),
        'b', lambda: print('was b'),
        lambda: print('something else')
    ]

    # some stuff

    s(value)

    # OUT: "something else"
pbz-heap 0.0.1
Min and Max Heap implementation in Python.
License: MIT

# pbz-heap

Since no max heap seems to exist for Python, here is a Min and Max Heap
implementation.

I just stood there, dumbfounded that there is [no Max Heap for Python anywhere on
the internet](https://stackoverflow.com/a/2501527). Seriously? In 2020? If you
can find one, open an Issue and I'll check it out.

### Performance

Absolutely no claims are made about the performance of this Min/Max Heap
implementation. I would just be glad that it exists at all ;)

That said, even the Python 3.8 standard library heap is implemented in [pure
Python](https://github.com/python/cpython/blob/3.8/Lib/heapq.py).

### Usage

```python
# Min Heap
h = MinHeap([4, 5, 2, 1, 9, 10])
print(h.pop(), '==', 1)
print(h.pop(), '==', 2)
print(h.pop(), '==', 4)

# Max Heap
h = MaxHeap([4, 5, 2, 1, 9, 10])
print(h.pop(), '==', 10)
print(h.pop(), '==', 9)
print(h.pop(), '==', 5)
```

### Implementation Details

Yes, yes, I know I just wraped the standard library `heapq`. That is, after all,
[the officially accepted](https://stackoverflow.com/a/2501527) max heap data
structure for Python.
covid19-cli 1.0.4
A CLI for getting covid19 status at lightning speed.
License: MIT
Requires Python: >=3.5
Keywords: covid19,covid19-india,coronavirus,cli python

## covi19-cli
<br/>

![image](https://github.com/asprazz/covid19-cli/blob/master/screenshots/screenshot1.png)

<br/>
<br/>

[![PyPI version](https://badge.fury.io/py/covid19-cli.svg)](https://badge.fury.io/py/covid19-cli)
![PyPI - Downloads](https://img.shields.io/pypi/dm/covid19-cli)

- Get instant coronavirus status of India on terminal
- Clean user interface
- Making of README.md in progress Than you :)

## Dependencies
- >python3.5
- pip3

### Installation
- From pip :
- `pip3 install covid19-cli`
- Manual installation :
- `git clone https://github.com/asprazz/covid19-cli.git`
- `cd covid19-cli`
- (optional for linux users) if requires `chmod +x install.sh`
- then run `scripts/./install.sh`


### Usage
- `covid19 -e` or `covid19 --emergency` : for printing emergency numbers
- `covid19` : for country's status (default)
- `covid19 -s=maharashtra` or `covid19 -s maharashtra` : for both country's and state's status
- `covid19 -s mh` : will also work
- `covid19 -h` or `covid19 --help` : for help


### Development
- fork the repo
- `git clone https://github.com/{your_username}/covid19-cli.git`
- Activate environment if available
- `cd covid19-cli`
- run `pip install .`
- run `python covid19/__main__.py`
- run `python covid19/__main__.py -h` for help




### Error reports
- First of all thank you.
- https://github.com/asprazz/covid19-cli/issues

### Contributing Guidelines
- Suggesting a new feature ? Open an feature issue
- Sending PR, send it without worries
- Just `fork` `change` `send`
- Thank you

### Special Thanks To
- https://api.covid19india.org/
- argparse
- prettytable