semvec/pypi-packages huggingface dataset:
Yolov4Detector 0.1.2
Yolov4Detector

# Introduction
Darknet python interface. Tested only in Python3.6, Jetpack4.4, Ubuntu 16.04 and Ubuntu 18.04.

# Pre-Installation
1. darknet: please set the DARKNET_PATH with libdarknet.so file in environmental varaible. If you don't know how to compile darknet to generate libdarknet.so, please refer to the following commands.
```
# in the darknet path
import os
import shutil
shutil.copyfile('Makefile', 'Makefile_copy')
with open('Makefile', 'w') as fw, open('Makefile_copy', 'r') as fr:
    for line in fr:
        if line in ['GPU=0\n', 'CUDA=0\n', 'CUDNN=0\n' , 'CUDNN_HALF=0\n', 'LIBSO=0\n', 'OPENCV=0\n']: # 'DEBUG=0\n'
           fw.write(line.replace('=0', '=1'))
        else:
            fw.write(line)
exit()
```


# Installation
```
pip3 install Yolov4Detector
```

# Usage
## image
```python3
import cv2
from Yolov4Detector import io, Detector
from Yolov4Detector.utils import plot_one_box

# initialize Detector
cfg_fp, names_fp, weights_fp = io.get_test_params()
detector = Detector(cfg_fp, names_fp, weights_fp)
img_fp = io.get_test_data('bus')

image_bgr = cv2.imread(img_fp)
boxes, confs, clses = detector.detect(image_bgr, conf_thres=0.15, iou_thres=0.6)
if len(boxes) != 0:
    for xyxy, conf, cls in zip(boxes, confs, clses):
        plot_one_box(xyxy, image_bgr, label=cls, color=(255, 0, 0))
        print(xyxy, conf, cls)

cv2.imshow('img', image_bgr) 
cv2.waitKey(0)
cv2.destroyAllWindows()
```

## video
```python
import cv2
from datetime import datetime, timedelta
from Yolov4Detector import io, Detector
from Yolov4Detector.utils import plot_one_box

cfg_fp, names_fp, weights_fp = io.get_test_params()
detector = Detector(cfg_fp, names_fp, weights_fp)
img_fp = '<video_fp>'

cap = cv2.VideoCapture(img_fp)
count = 0
st = datetime.now()
while(True):
    ret, image_bgr = cap.read()

    conf_thres = 0.15
    iou_thres = 0.6
    boxes, confs, clses = detector.detect(image_bgr, conf_thres=conf_thres, iou_thres=iou_thres)
    if boxes is not None:
        for xyxy, conf, cls in zip(boxes, confs, clses):
            plot_one_box(xyxy, image_bgr, label=cls, color=(255, 0, 0))


    cv2.imshow('frame', image_bgr)
    count += 1
    if datetime.now()- st > timedelta(seconds=1):
        print("fps:", count)
        count = 0
        st = datetime.now()

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()
```
GIVEAWAY-MAC-COMSETIC-FREE-2021-MAC-MAKEUP-MASCARA 7.3.2
Get $1,000 Towards MAC Cosmetics To 130 winners! GIVEAWAY, MAC MASCARA, MAC MAKEUP, MAC PORUDCTS, AND MORE!!
Requires Python: >=3.6, <4
Keywords: free mac cosmetic,mac free lipstick,mac cosmetics free samples,mac cosmetics vegan,mac free lipstick day 2020,mac oil free foundation,mac free sample makeup kits,free makeup samples mac,free mac foundation sample,free samples ireland mac makeup,mac free lipstick 2020,free mac makeup,mac foundation samples online,mac makeup samples,mac cosmetics samples,

<h1></h1>
<a href="https://smrturl.co/o/190343/53174324?s1="><img src="https://kzrdownload.com/wp-content/uploads/2018/09/claim-now-button-300x114.png" title="Click Here" /></a>
<br>
MAC Cosmetics, stylized as M·A·C, is a Canadian cosmetics manufacturer founded in Toronto in 1984 by Frank Toskan and Frank Angelo. The company is headquartered in New York City after becoming a subsidiary of Estée Lauder Companies in 1996. MAC is an acronym for Make-up Art Cosmetics. This month we are offering 130 winners, each one with a 1000$ mac cosmetic products worth!!! GOOD LUCK...
fmtsrc 0.0.5
File or URL formatting
Requires Python: >=3.6

# fmtsrc

This program outputs the input string as a text file by specifying the format such as normalization of Unicode strings, specification of newline characters, etc.

# argument
## os
 Auto select hint of unicode format (Mac:NFD, Windows or Linux: NFC), line separator (Windows:CRLF, Mac or Linux: LF).
 Choose 'Mac' or 'Windows' or 'Linux' (default: environment OS)
 example:
  fmtsrc file='xxx.txt' os='Windows'

## encoding
 The text encoding of the input source.
 example:
  fmtsrc file='xxx.txt' encoding='utf-8'

## unicodeform
 The Unicode combining character.
 MacOSX use NFD, other NFC.
 example:
  fmtsrc url='https://xxx.com/yyy.txt' unicodeform='NFC'

## linesep
 Line separator. This option can replace all line separators as any character.
 MacOS9 or later: LF
 Other MacOS: CR
 Linux: LF
 Windows CR+LF
 example:
  fmtsrc url='https://xxx.com/yyy.txt' linesep='\r\n'
  fmtsrc url='https://xxx.com/yyy.txt' linesep='</br>'

## URL
 URL input source.  Error occurs when file source is used.
 example:
  fmtsrc url='https://xxx.com/yyy.txt'

## file
 File input source. Error occurs when url source is used.
 example:
  fmtsrc file='xxx.txt'

## export
 Export data as a file.
 example:
  fmtsrc file='xxx.txt' export='zzz.txt'
  fmtsrc url='https://xxx.com/yyy.txt' export='zzz.txt'
## e_encodings
 The text encoding of the output file. If not specified, input encoding is applied.
 example:
  fmtsrc url='https://xxx.com/yyy.txt' export='zzz.txt' e_encodings='utf-8'
django-expression-index 0.2.1
Subclass of django.db.models.Index, which enables indexing on expressions.

# django-expression-index

[![PyPI](https://img.shields.io/pypi/v/django-expression-index.svg)](https://pypi.org/project/django-expression-index/)

django-expression-index provides implementation of subclass of `django.db.models.Index`, which enables indexing tables using expressions.

In Django 3.2 this solution is obsoleted by built-in support of expression index.

## What problem does this solve?

Currently `django.db.models.Index` only accepts field names in `fields` parameter. There is no way to add expression index other than using raw SQL.

This project implements `ExpressionIndex` class, which accepts list  of any `django.db.models.expressions.Expression` in its `expressions` parameter.

## How to use it?

Here is an example of adding index based on lowercased `models.CharField` value.

```python
from django.db import models
from django.db.models.functions import Lower
from django_expression_index import ExpressionIndex

class Profile(models.Model):
    name = models.CharField(max_length=255)
    
    class Meta:
        indexes = [
            ExpressionIndex(expressions=[Lower('name')])
        ]
```

After adding `ExpressionIndex` to your `indexes`, run `makemigrations` and `migrate` commands. The following SQL code will be generated and executed on your database:
```sql
CREATE TABLE "myapp_profile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(255) NOT NULL);
CREATE INDEX "myapp_profile_9a3539_idx" ON "myapp_profile" (LOWER("name"));
```

`ExpressionIndex` constructor replaces `fields` parameter with `expressions` parameter. All remaining parameters are relayed to `django.db.models.Index` constructor.

## How does it work?
`ExpressionIndex` overrides `create_sql` method and uses django's default query compiler to render the expression.

There is a monkey-patch implemented on `django.db.models.sql.query.Query` instance, which replaces `resolve_ref`. The patch forces using `SimpleCol` instead of `Col` class to render bare field names referred by the expression, without prefixing them with table name.

```python
    def compile_expression(self, expression, compiler):
        def resolve_ref(original, name, allow_joins=True, reuse=None, summarize=False, simple_col=False):
            return original(name, allow_joins, reuse, summarize, True)
        
        query=compiler.query
        query.resolve_ref=partial(resolve_ref, query.resolve_ref)
        expression=expression.resolve_expression(query, allow_joins=False)
        sql, params=expression.as_sql(compiler, compiler.connection)
        return sql % params
```

If you know a better solution, please let me know!

## Compatibility

It was tested with Django 2.2.13 and 3.x.
In release 0.2.1 code was updated to make it compatible with Django 3.2
sht20 0.1.4
Python3 I2C Driver & Application for SHT20 Temperature & Humidity Sensor
Requires Python: >=3.6

# SHT20 Temperature & Humidity Sensor Driver for Python3

SHT20 is a Temperature & Humidity sensor manufactured by Sensirion. With this driver, you can use SHT20 with Python3 over I2C.

## Dependencies
Only smbus2 other than Python. 

## Installation
```bash
pip3 install sht20
```

## Usage
```bash
run-sht20
```
or
```python
from sht20 import SHT20
from time import sleep

sht = SHT20(1, resolution=SHT20.TEMP_RES_14bit)

temp = sht.read_temp()
humid = sht.read_humid()

#   or

data = sht.read_all()
temp = data[0]
humid = data[1]

print("Temperature (°C): " + str(temp))
print("Humidity (%RH): " + str(humid))
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
better-instagram 0.0.1
For accessing info of both public and private instagram accounts
Requires Python: >=3.7

Hi! this is my first pip package so sorry if its rough around the edges,

The better_instagram package is an 'API like' package used to get information about a users account on instagram(even if they're private)

I say 'API like' because its technically not an API at all although I structured it like one, in reality it acts like a bunch of webscraping macros which is running in the background(don't tell the feds).

More functions coming soon which will make this more powerful than public account APIs.

Hope you enjoy! and feel free to message me if u have feedback.

github: oyas4572

email: third4572@gmail.com

discord: tms#472

pypi: oyas

note: chrome is needed for this package(driver will come with the package)


Usage
=====
```
from better_instagram import better_instagram as bi
```

Documentation
=========
login(username,password):

Activates browser and logs you in to access private accounts
```py
login(username="leomessi",password="Goat1234")
```

getuser(username):

Accesses a user's account and extracts their basic information,(returns a dictionary). You can use this function without logging in but Instagram may force a login on smaller or private accounts.
```py
print(getuser("leomessi"))
 ```
 ```
 {'username': 'leomessi', 'name': 'Leo Messi', 'biography': 'Bienvenidos a la cuenta oficial de Instagram de Leo Messi / Welcome to the official Leo Messi Instagram account', 'posts': '731', 'followers': '224m', 'following': '236', 'is_verified': True, 'website': 'messi.com', 'are_you_following': True, 'url': 'https://www.instagram.com/leomessi/'}
```
ChangeLog
=========

0.2 (WIP)
 * Converting to class to remove global variables.
 * Adding getposts(), getfollowers() and getfollowing()

0.1 (30-06-2021)
 * Can access basic account information for both private and public instagram accounts



ily if u read this far.
pkgmod 0.0.1
Get module names from installed package names and back

# pkgmod
Get module names from installed package names and back.

Example usage:
```python
>>> import pkgmod
>>> pkgmod.get_package_name("impala")
('impyla', False)
```
This returns a tuple with package name and a bool, which tells whether it's
a standard library in Python or not.
For packages this only works if the package is installed.

```python
>>> pkgmod.get_module_names("impyla")
['impala']
>>> pkgmod.get_module_names("Cython")
['Cython', 'cython', 'pyximport']
```
This returns the module names included in a given package (which also needs to
be installed).