semvec/pypi-packages huggingface dataset:
bandcalq 0.0.1
Band theory calculations using variational quantum algorithms
Requires Python: >=3.9

# BandCalQ
**BandCalQ** is a Qiskit library created for band theory calculations using variational quantum algorithms. This framework's goal is to deliver a simple interface that allows users to acquire electronic band structures providing minimal input. 

## Installation
BandCalQ can be installed via ``pip`` using the following command.
```bash
pip install bandcalq
```
All dependencies are handled automatically.
## Usage
Usage of the BandCalQ library is explained in provided Jupyter Notebooks - ``example_simple.ipynb`` and ``example_advanced.ipynb`` that can be found in examples directory.
temporary-mail 1.6
A Temp Mail library for python
Keywords: python,mail,tempmail


A package that allows to create temp mail and receive emails from it.
<br>
<h3>Example:</h3>

    from pytempmail import TempMail
    from time import sleep
    
    tm=TempMail()
    # Print Current Mail
    print(f'Email: {tm.email}')
    
    printed_mails=[]
    
    print('All Emails are:')
    while True:
    	all_mails=tm.get_mails()
    	for mail in all_mails:
    		if mail.id not in printed_mails:
    			# Adding to the list, so it will not print it again
    			printed_mails.append(mail.id)
    			print(f'From: {mail.from_name} - {mail.from_addr}')
    			print(f'Subject: {mail.subject}')
    			print(f'Body: {mail.text}')
    			# you can use mail.description to print short text
    			# mail.html returns only html. use it if you're on web
    			print('\n-  -  -  -  -  END  -  -  -  -  -\n')
    	sleep(5)
python-advance-logger 0.1.0
advanced python logging tools contains elasticsearch and file logger
Requires Python: >=3.10

# PythonAdvanceLogger
Python Advance logger capable to log every event with django default logger, elasticsearch, and file log
This package use as a python standard logger as a base logger and add extra features for better log handling 
by lesser actions in python and django

This package aims to create log like asp.net logger which capable to distribute log over elasticsearch, file, and other
extra loggers

This package contains 4 main modules:
* Python default logger
* Elasticsearch logger (Using http requests)
* file logger

Install package by:
    


How to setup package in django:

After installation advanceLogging package from pypi, you can setup you logger as a shown below:

```
elsConf = ElasticSearchConf(hosts=["your host: port"],
                            user="username",
                            password="pass",
                            indicator="your elastic index",
                            maxConnection=10)

LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "formatters": {
        "advance_logger": {
            "format": "%(asctime)s %(created)f %(filename)s %(funcName)s %(levelname)s %(levelno)s %(lineno)d %(module)s"
                      " %(name)s %(levelname)s %(message)s %(pathname)s",
            "datefmt": "%Y-%m-%dT%H:%M:%S%z",
            "class": "advanceLogger.AdvanceLogFormatter"
        }
    },
    "handlers": {
        "console": {
            "class": "advanceLogger.AdvanceLogHandler",
            "formatter": "advance_logger",
            "els_conf": elsConf
        }
    },
    "loggers": {
        # Make sure to replace the following logger's name for yours
        "django": {
            "handlers": ["console"],
            "level": "INFO",
        },
    }
}
```

After define logger in your django settings.py you can use this logger every place of your codes like below:

```angular2html
import logging

logger = logging.getLogger("django_structlog_demo_project")


class Startup:
    def __init__(self):
        logger.info("start app", extra={"extraParams": 1})
        logger.debug("start app")
        logger.error('test')
        requests.get('https://reqres.in/api/users?page=2')
```
easy-scrap 0.1.0
A small package for scrapping images from google
Requires Python: >=3.7

# easy_scrap

A simple Python package for scrapping images from Google Image Search

## Installation

The package is available for pip installation

```bash
pip install easy_scrap
```

## Usage

The main class is ```GoogleImageScrapper```, which takes query as argument, searches for image
links and downloads them to a separate folder. Folders for saving the images will be created on the
runtime.

A basic example of usage

```python
from easy_scrap import GoogleImageScrapper

query = "fruits"
save_folder_name = "fruit"
n_images = 100

# parse Google Image Search html page for image links
scrapper = GoogleImageScrapper(query=query,
                               save_folder_name=save_folder_name,
                               n_images=n_images)

# download and save images
scrapper.download_all_images()
```

## TODOs

- Add option to parse queries from the shell
- Add other search systems
- Try asynchronous download for speed boost
- Handle issue when first 3 downloaded images are some Google icons