Saravanan666/pypi-org huggingface dataset:
Package: detector-aedes
# Detector Aedes[![Coverage Status](https://coveralls.io/repos/github/datosgobar/detector-aedes/badge.svg?branch=master)](https://coveralls.io/github/datosgobar/detector-aedes?branch=master)
[![Build Status](https://travis-ci.org/datosgobar/detector-aedes.svg?branch=master)](https://travis-ci.org/datosgobar/detector-aedes)
[![PyPI](https://badge.fury.io/py/detector-aedes.svg)](http://badge.fury.io/py/detector-aedes)
[![Stories in Ready](https://badge.waffle.io/datosgobar/detector-aedes.png?label=ready&title=Ready)](https://waffle.io/datosgobar/detector-aedes)
[![Documentation Status](https://readthedocs.org/projects/detector-aedes/badge/?version=latest)](http://detector-aedes.readthedocs.io/en/latest/?badge=latest)Algoritmos de Visión Computacional para analizar imágenes de Ovisensores.Licencia: MIT licenseDocumentación:https://detector-aedes.readthedocs.io## InstalaciónEl paquete se encuentra disponible en pip:`bash $ pip install detector_aedes `Luego buscar la carpeta de instalación y renombrar el archivo config_sample.yml a config.yml### Instalacion de DesarrolloPara instalar en modo desarrollo ir a la carpeta en la que fue clonado el reporsitorio:`bash $ cdpath/to/detector-aedes`y luego instalar los requerimientos con:`bash $ pip install-rrequirements.txt $ pip install-rrequirements_dev.txt `finalmente instalar el paquete en modo desarrollo con:`bash $ pip install-e. `Luego renombrar el archivo config_sample.yml a config.yml`bash $ mv config_sample.yml config.yml `## UsoEl siguiente es un ejemplo de uso rapido que recorre todas las imagenes de una
carpeta y graba la salida a un archivo CSV:`Python from detector_aedes import AedesDetector, FolderInputConnector, FileOutputConnector ic =FolderInputConnector('/carpeta/que/contenga/imagenes')fc =FileOutputConnector('/ruta/a/archivo/de/salida.csv')ad = AedesDetector(input_connector=ic, output_connector=fc) ad.process(show_results=False) `Para una descripcion mas detallada referirse al [Manual de Uso](docs/MANUAL.md)## TestsPara correr los tests hace falta instalar las dependencias de desarrollo:`bash $ pip install-rrequirements_dev.txt `y luego correr los tests con:`bash $ nosetests `## CréditosAgradecemos al Dr. Nicolas Schweigmann del Grupo de Estudio de Mosquitos de la UBA y al equipo de Epidemiología del GCBA por su ayuda en el desarrollo de este software.## ContactoTe invitamos a [crearnos un issue](https://github.com/datosgobar/detector-aedes/issues/new?title=Encontre%20un%20bug%20en%20detector-aedes) en caso de que encuentres algún bug o tengas feedback de alguna parte dedetector-aedes.Para todo lo demás, podés mandarnos tu comentario o consulta a [datos@modernizacion.gob.ar](mailto:datos@modernizacion.gob.ar).History
===0.1.0 (2017-06-21)Primer release en PyPI.
Package: detectors-world
Detectors WorldDetectors World is a Python package created for building Computer Vision applications in easy and handy way.Developed by@MeqdadDevAvailable Computer Vision DetectorsThe available detectors in Detectors World package are:Hand DetectionFace DetectionPose DetectionFace Mesh DetectionMore detectors will be added in the next releases. Check out contribution guides below.DocumentationA mini version for documentation is created, check it out fromhere.The complete documentation will be added soon....DependenciesDetectors World dependencies are:opencv-pythonmediapipeDetectors World works with Python >= 3.7InstallationInstall detectors world package with pippipinstalldetectors_worldRun DetectorsHand DetectorHand detector examples with OpenCV:Example 1:fromdetectors_worldimportDetectorCreatorimportcv2ascvcap=cv.VideoCapture(0)creator=DetectorCreator()hand=creator.getDetector("hand")whileTrue:status,img=cap.read()hand.detect(img,drawOnHand=True)cv.imshow("Hand Detection",img)cv.waitKey(1)Example 2:fromdetectors_worldimportDetectorCreatorimportcv2ascvcap=cv.VideoCapture(0)creator=DetectorCreator()hand=creator.getDetector("hand")whileTrue:status,img=cap.read()hand.detect(img,drawOnHand=True)landmarks=hand.locate(img,drawOnHand=True,handsNumber=1)cv.imshow("Hand Detection",img)cv.waitKey(1)Pose DetectorPose detector examples with OpenCV:Example 1:fromdetectors_worldimportDetectorCreatorimportcv2ascvcap=cv.VideoCapture(0)creator=DetectorCreator()pose=creator.getDetector("pose")whileTrue:status,img=cap.read()pose.detect(img,drawOnPose=True)cv.imshow("Pose Detection",img)cv.waitKey(1)Face DetectorFace detector examples with OpenCV:Example 1:fromdetectors_worldimportDetectorCreatorimportcv2ascvcap=cv.VideoCapture(0)creator=DetectorCreator()face=creator.getDetector("face")whileTrue:status,img=cap.read()face.detect(img,drawOnFace=True)cv.imshow("Face Detection",img)cv.waitKey(1)Example 2:fromdetectors_worldimportDetectorCreatorimportcv2ascvcap=cv.VideoCapture(0)creator=DetectorCreator()face=creator.getDetector("face")whileTrue:status,img=cap.read()face.detect(img,drawOnFace=False)landmarks=face.locate(img,drawOnFace=True)cv.imshow("Face Detection",img)cv.waitKey(1)Face Mesh DetectorFace mesh detector examples with OpenCV:Example 1:fromdetectors_worldimportDetectorCreatorimportcv2ascvcap=cv.VideoCapture(0)creator=DetectorCreator()facemesh=creator.getDetector("face_mesh")whileTrue:status,img=cap.read()facemesh.detect(img,drawOnFace=True)cv.imshow("Facemesh Detection",img)cv.waitKey(1)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.For new projects/examples, please make sure you've tested your code in real environment. And to avoid duplications, please take a sneak peek on the uploaded projects before making your PR.
Package: detectorusoutlierus
detectorusoutlierusSmall package created for detecting outliers.Usage:install the package"detect_outlier_mean_std"- by mean and standard deviation. Takes column as a parameter"detect_outlier_kvart"- by kvartile. Takes column as a parameter"detect_outlier_dbscan"- with DBSCAN (clusterization). Takes two columns as a parameters"detect_outlier_shovene"- by Shovene method. Takes column as a parameter
Package: detect-probe
PrestoOne of Chopin's 24 Preludes. A virtuosic prelude, presents a technical challenge with its rapid hold-and-release of eighth notes against quarter notes in the right hand, involving chromatic movement.Installpipinstalldetect-probeQuick startInclude presto in a project with:fromdetect_probe.serviceimportProbeServiceservice=ProbeService(account_id='<ACCOUNT_ID>',secret='<ACCOUNT_TOKEN>')token=service.register()service.start(token=token)
Package: detectvpn
Free vpn, tor, datacenter, threat detection by IP addressInstallpipindtalldetectvpnHow to use# Detect vpn, tor, datacenter, threat on IP>>>fromdetectvpnimportdetect>>>detect.ip("8.8.8.8")normal>>>Detection infovpn        - using vpn
tor        - using tor
datacenter - its datacenter IP
threat     - dangerous IP
normal     - normal IP address
Package: detecty
DetectyA Mobilenet based single car plate detection model.InstallationCurrently detecty is intended to use on CPU machine (GPU support is coming soon).
To install detecty on a CPU run:pip3 install detecty
pip3 install torch --index-url https://download.pytorch.org/whl/cpuUsageCommand lineIf you have a car image namedcar.jpgYou can rundetecty car.jpgand get the plate inplate.jpgPythonfromPILimportImagefromdetecty.modelimportDetectionimg=Image.open('car.jpg')model=Detection()res=model(img)res.plate.save('plate.jpg')
Package: determ
DetermDeterm is a simple module which automatically appends the correct determiner to a given string or list element.
Only one function is requireddeterminerbut what it does depends on the datatype supplied.Determiner can only determine lists and strings. It will attempt to gracefully handle an exception if any other datatype is supplied.Feature OverviewExample usage with a string:Supply determ's determiner function with a string you want to determine.fromdeterm_packageimportdeterm# Passing determ a string to determine.test_consonant="fish"test_vowel="aardvark"# This is not a list or string so will throw an exception when determ attemps to determine it.test_exception=1print("String determ test consonant: "+determ.determiner(test_consonant))print("String determ test vowel: "+determ.determiner(test_vowel))print("String determ test exception: "+determ.determiner(test_exception))Output:String determ test consonant: a fish
String determ test vowel: an aardvark
String determ test exception: can not determine this datatypeExample usage with a list:Supply the determ's determiner function with a list and the element index want to determine.fromdeterm_packageimportdetermlist=['fish','dog','cat','aardvark']foriinrange(0,len(list)):print(str("Element ")+str(i)+str(" determined: ")+determ.determiner(list,i))Output:Element 0 determined: a fish
Element 1 determined: a dog
Element 2 determined: a cat
Element 3 determined: an aardvarkInstallationOn all operating systems, the latest stable version ofdetermcan be installed using pip:pipinstall-Udetermdeterm works with Python 3.6+ on Windows, macOS, and Linux. It is pure Python code with no 3rd-party dependencies.DocumentationThe latest documentation for determ is present in this README.
Package: deterministic_encryption_utils
Descriptiondeterministic_encryption_utils is a library containing common encryption and decryption utilities for encrypted views on files. It consists of a Encryption/Decryption class that provides filename and file encryption based on AES.ECB with salted (256bit) keys. The salt providers for the filenames and files can be extended.InstallationThe library is available for Python 3 via pypi (deterministic_encryption_utils).
Package: deterministic-rsa-keygen
deterministic-rsa-keygenUse pycryptodome to generate a deterministic RSA key pair and perform encrypt and decrypt operationsInstallpip install deterministic-rsa-keygenUssagefrom rsa import generate_key, encrypt, decrypt

# as alternatives you can use a bit39 phrase or another key as seed
secret_key = generate_key("the derived key cannot be stronger than this seed")

private_key = secret_key.exportKey("PEM")
public_key = secret_key.publickey().exportKey("PEM")

secret = encrypt("secret", public_key)
assert decrypt(secret, private_key) == bytes("secret", 'utf-8')
Package: deterministic-zip
deterministic_zipA tool to generate consistent zip files.This tool was specifically built to prevent zip file changes from triggering
AWS Lambda function updates when runningterraform apply. Before this change,
every re-build of the zipfile would result in a different zip even if its
contents had not changed.RequirementsThis tool currently only runs on python3.7 in order to use deflate compression
level 9.Installationpipinstalldeterministic_zipCreating a deterministic_zipRun the following, and verify that your zip produces the same sha256 hash:echo"The first file.">firstecho"The second file.">second
deterministic_ziparchive.zipfirstsecond
sha256sumarchive.zipIf you have\nline endings the result should be:3afbd7c9b42bd5539ffd5c40499d3d1825157ed83791dce8d7ff2694189d28d6If you have\r\nline endings (Windows) the result should be:40e16270d62f15e7a192e88b1b301fa6540c86e7e897036b56be513341d376edHow does it work?Great question! There are three tricks to building a deterministic zip.Files must be added to the zip in the same order. Directory iteration order
may vary across machines, resulting in different zips.deterministic_zipsorts all files before adding them to the zip archive.Files in the zip must have consistent timestamps. If I share a directory to
another machine, the timestamps of individual files may differ, depsite
identical content. To achieve timestamp consistency,deterministic_zipsets the timestamp of all added files to2019-01-01 00:00:00. Please note
that thisdoes notaffect the timestamp of the source files.Files in the zip must have consistent permissions. File permissions look
like-rw-r--r--for a file that is readable by all users, and only
writable by the user who owns the file. Similarly executable files might
have permissions that look like:-rwxr-xr-xor-rwx------.deterministic_zipsets the permission of all files to either-r--r--r--, or-r-xr-xr-x. The latter is only used of the user runningdeterministic_ziphas execute access on the file.
Package: deterrers-api
Python API client for DETERRERSThis library makes it easy to interact with the DETERRERS perimeter firewall
portal to automate registration, and configuration of IP addresses and firewall
profiles.InstallationUse pip to install the latest version:pip install deterrers-apiExampleimportdeterrersapideterrers=deterrersapi.Deterrers('https://deterrers.example.com','<api-token>')# get information about ip addressdeterrers.get('192.0.0.1')# delete ip addressdeterrers.delete('192.0.0.1')# add a new ip address with `virtUOS` as admindeterrers.add('192.0.0.1',['virtUOS'])# update ip with firewall profile `Multipurpose`deterrers.update('192.0.0.1','Multipurpose','')# activate firewall profiledeterrers.action('192.0.0.1','register')
Package: deterrers-cli
Command line client for DETERRERSA command line client making it easy to interact with the DETERRERS perimeter
firewall portal to registr and configuration IP addresses and firewall
profiles.Warning:The API of DETERRERS used by this tool is still experimental and somewhat fragile.
Most notably, this often leads to unexpected errors returned by the API.InstallationUse pip to install the latest version:pip install deterrers-cliConfigurationTo configure the client, create a file~/.deterrers.ymlwith the following content:url:https://deterrers.example.comtoken:<api-token># If you want to automatically register newly added hosts# Default: falseauto-register:false# If you want to skip the initial security scan by default.# Default: falseauto-skip-scan:falseUsaneUse the context based help to get information about available commands:❯ deterrers-cli --help
Usage: python -m deterrerscli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  action  Activate firewall profile or block IP address in perimeter...
  add     Add IP address to DETERRERS.
  delete  Delete IP address from DETERRERS.
  get     Get information about an IP address in DETERRERS.
  hosts   List all IPs added to DETERRERS.
  update  Update IP address in DETERRERS.Help about adding new IP addresses:❯ deterrers-cli add --help
Usage: python -m deterrerscli add [OPTIONS] IPV4

  Add IP address to DETERRERS.

Options:
  -a, --admin TEXT  [required]
  -p, --profile [|HTTP|SSH|HTTP+SSH|Multipurpose]
  -f, --firewall [|UFW|FirewallD|nftables]
  --help            Show this message and exit.Example# Delete IP 192.0.0.1 from DETERRERS❯deterrers-clidelete192.0.0.1# Add IP 192.0.0.1 with group `virtUOS` as admins and firewall profile `Multipurpose`❯deterrers-cliadd--adminvirtUOS--profilemultipurpose192.0.0.1# Set firewall profile `SSH`❯deterrers-cliupdate--profilessh192.0.0.1# Activate firewall profile❯deterrers-cliactionregister192.0.0.1Shell CompletionThedeterrers-clicommand line tool supports shell completion for several major shells:ForBash, add to~/.bashrc:eval "$(_DETERRERS_CLI_COMPLETE=bash_source deterrers-cli)"ForZSH, add to~/.zshrc:eval "$(_DETERRERS_CLI_COMPLETE=zsh_source deterrers-cli)"Forfish, add to~/.config/fish/completions/deterrers-cli.fish:_DETERRERS_CLI_COMPLETE=fish_source deterrers-cli | source
Package: dethklok
DethklokWe are here to make coffee metal. We will make everything metal. Blacker than the blackest black times infinity.Nathan Explosion, DethklokThe most uncompromising Python code formatter ever!Dethklok uses a few code formatters under the hood:astunparse-- extracted and improvedunparse.pyfrom the CPython source code. This script gets AST and formats it into the code, without knowing anything about how the code looked like before. From Python 3.9, it is a part of the standard library:ast.unparse.autopep8-- a powerful and mature code formatter. We run it to make the produced code a bit less ugly.InstallationSupported Python versions are limited by whatastunparsesupports. For now, it's Python <=3.7.python3-mpipinstall--userdethklokUsagepython3-mdethklokformat**/*.pyFAQQ:Is itflake8compatible?Almost. The tool outputs some statements in a single-line. The most noticeable example is docstrings. None of autoformatters I tried can make it multiline again.Q:When should I use it?The short answer is "NEVER". This is an experimental project that shows that producing the same AST without taking into account the initial formatting can't make the code readable.I am a mediaocre developerbut still formatting of my code has an intention and makes the code more readable: I group elements, I left comments, I align columns, I parenthesize parts of complex arithmetic operations. While some parts of the code can be easily autoformatted without breaking it, some parts shouldn't.Q:Is it a joke aboutblackor what?Well, a bit. Black targets to reformat everything, to have an opinion about part of every Python code. I admire that goal and really hope the project will grow and become mature some day. However, right now it'sunstableand tries to fix things it can't fix (yet).There are some formatters with similar philosophy in other languages (go format,cargo format,elixir format), and there are amazing. The difference is that these languages were designed with the formatter in mind, and every new feature is thoughtfully integrated with the formatter to make the result nice and idiomatic. Python is different.Q:What should I use instead.Luckily, there are plenty of cool formatters. They are doing only a small task but handle it really well. A few notable examples:autopep8fixes only parts of the code that flake8 complaints about.isortgroups and sorts imports.add-trailing-commaadds trailing commas and formats long function call statements.unifychanges single quotes by double or vice versa, depends on what you prefer.See the full list inawesome-python-code-formatters.
Package: dethub
DetHub: Object Detection Model HubInstallationpip install dethubYolov5 Object Prediction and Visualizationfromdethub.modelimportYolov5fromdethub.visualizeimportshowdetection_model=Yolov5(model_path="yolov5s.pt",device="cpu",confidence_threshold=0.5,image_size=640)show("highway1.jpg",detection_model)Torchvision Object Prediction and Visualizationfromdethub.modelimportTorchVisionfromdethub.visualizeimportshowdetection_model=TorchVision(model_path="dethub/models/torchvision/fasterrcnn_resnet50_fpn.pth",device="cpu",confidence_threshold=0.5,image_size=640)show("highway1.jpg",detection_model)TensorflowHub Object Prediction and Visualizationfromdethub.modelimportTensorflowHubfromdethub.visualizeimportshowdetection_model=TensorflowHub(model_path="https://tfhub.dev/tensorflow/efficientdet/d3/1",device="cpu",confidence_threshold=0.5,image_size=640)show("highway1.jpg",detection_model)ContributingBefore opening a PR:Reformat with black and isort:black.--configpyproject.toml
isort.References:SAHIYOLOXMcvarer
Package: detidelevel
The detideflow package includes a function to remove the tidal signal from a water level times series and a plotting function using plotly to assist with parameter setting.Installationdetidelevel can be installed via pip or conda:pip install detidelevelor:conda install -c mullenkamp detidelevelThe core dependency isPandasandstatsmodels.If you want to run the plotting functions, you will also need to install plotly.Usage examplesTo do…
Package: detik-scrapper
Detik ScrapperInstallationInstall package
After cloning, go to directory and run this command for installation package$ pip install detik-scrapperThen you test it with new file like main.py / Example Codeimport detik
import json

print(json.dumps(detik.getListHotNews(), indent=4))Available FunctionList CategorygetListCategory() -> dictList New By Category NamegetListNews(category: str) -> dict:List Hot NewsgetListHotNews() -> dict:Detail NewsgetDetailNews(link: str) -> dict:
Package: detime
DECIMAL TIMEA combination ofdecimal timeandunix time, approximating the beginning of the process ofcarbon lifegiving birth tosilicon life.Dates starting at00000-01-01 00:00:00Z, which coincides with 1970-01-01 00:00:00 UTC ofGregorian calendar.Note: you may also be interested in looking at the EXTENDED DECIMAL TIME (see:edtime), that does not try to squeeze 10 months  into Earth year length, having a year of 1000 days, which resolves the problem mentioned at the bottom of this page, making the decimal representation of days since POSIX zero, - the date itself.Usagepip install detime>>>fromdetimeimportdetime>>>detime()# zero date: 0 year, 1 month, 1, day, 0:0:0.00
# detime.detime(0, 1, 1, 0, 0, 0.0)
# _.date = 1970-01-01 00:00:00>>>detime.utcnow()# detime.detime(50, 1, 10, 5, 82, 29.538934027783398)>>>d=detime.datetime(2020,1,11,20,15,10,352595)# detime.detime(50, 1, 11, 8, 43, 86.98217013890098)>>>d=detime(50,1,11,8,43,86.98217)>>>d.date# datetime.datetime(2020, 1, 11, 20, 15, 10, 352595)>>>d.isoformat()# 0050-01-11T08:43:86.98217>>>fromdatetimeimportdatetime>>>detime(datetime(2020,9,22,10,44,11,992422))# 0050-08-11T04:47:36.10234027777915>>>d=detime(0,0,0);d# detime.detime(0, 1, 1, 0, 0, 0.0)>>>d.date# datetime.datetime(1970, 1, 1, 0, 0)>>>d.weekday# 0>>>d.week# 1>>>t=detime(datetime.fromisoformat('1968-12-31T05:07:11.131719'))>>>t.isoformat()# '-0002-10-38T02:13:32.32837847222254'>>>t.weekday# 4>>>t.week# 38# Leap years 10th month is 38-days long:>>>t.month_lengths# [36, 37, 36, 37, 36, 37, 36, 37, 36, 38]>>>exit()$dtime# 0051-01-01 [8] @04:74:42$dtime-show# [2021-02-26 =] 0051-02-21 00:33:19 [= 00:47:47](ctrl+ctostop)AboutIn childhood, I tried to simplify computation of time for myself, so I invented a decimal system for counting time.Later I discovered, that others did so as well. The relationships of this implementation follow the below axioms.AxiomsRelationships follow:1 year = 10 months1 week = 10 days1 day = 10 hours1 hour = 100 minutes1 minute = 100 secondsStarting point follows:Years start at 1970 Jan 1, midnight.The 1970 Jan 1 is first weekday, denoted by “0”Numbers of months and days of month start with “1”Months have round number of days.Use leap years.Corollaries=> 1 second is:0.864 standard SI seconds.=> 1 month is:36~37 days long, with 38 long last month on leap years.3~4 weeks rolling by 10 days onto months.=> 1 year is:36.5 (or 36.6 on leap years) weeks.NOTE: It would be nice to have decimal expression of years indicate exactly month numbers.However, the choice to use leap years and round numbers of days in months make that impossible.
Package: detimer
DetimerDetimer provides a high-level interface for making backups. Say goodbye to messy
backup scripts. With this tool you can configure all your backup targets in a
single yaml file.Currently supported backup tools:rdiff-backupmore coming soonOverviewArootis a backup job, including information such as the directory to back
up, where to store it and exclusion rules. Eventually, you will also be able to
specify a backup tool (for now rdiff-backup is assumed).InstallationYou will needrdiff-backupinstalled.
Then you can install detimer:pip install detimerUsage$detimer-h
Usage:detimer[OPTIONS]COMMAND[ARGS]...Universalbackupmanager

Options:-V,--versionShowtheversionandexit.-h,--helpShowthismessageandexit.

Commands:backupBackupspecifiedrootslistListallrootsConfigurationTo add a root, editconfig.ymlin:OS X:~/Library/Application Support/DetimerUnix:~/.config/detimerWindows:%USERPROFILE%\AppData\Roaming\DetimerEach root should have the following properties:namesrc- Absolute path of the source directorydest- Absolute path of the destination directorymatch- Inclusion/exclusion rules. Patterns starting with-are excluded,
and patterns starting with+are force-included. Any inclusion lines must
precede their corresponding exclusion lines (see the example below).Example:roots:
  - name: mega
    src: /home/USER
    dest: /mega/backups
    match: |
      - Downloads
      - **/node_modules
      + another-excluded-dir/except-this-file
      - another-excluded-dirContributingPull Requests are welcome! Please open an issue before making major changes.
Additionally, we useconventional commits.LicenseLicensed underGNU GPLv3