Saravanan666/pypi-org huggingface dataset:
Package: aglio
Another Geodata Library for Input/Output (aglio :garlic:)agliofocuses on data aggregation and regularization from a variety of sources, with an emphasis on geophysical applications but may be useful beyond.For now, check out the examplesherefor an idea of what you can do!InstallationFor a base installation:pipinstallaglioTo install optional dependencies:pipinstallaglio[full]To install extra dependencies that are not used byagliobutareused in
some of the examples:pipinstallaglio[extra]Development installationafter forking and cloning:pipinstall-e.[dev]
Package: agl-ocr-reader
OCR App with APIThe OCR app is an application for extracting text from images and PDF files. It is built on Flask, a Python web framework, and utilizes the Tesseract OCR library and the PIL library for image processing.FeaturesAPI for the upload of images and PDF files for text extraction.
Support for various image formats such as JPG, JPEG, PNG and PDF.
Processing of PDF files by converting them into images and extracting text from the images.
API access to the same texts.RequirementsTo run the app, the dependencies from requirements.txt must be installed:Flask
pytesseract
Tesseract OCR
PIL (Python Imaging Library)
fitz
You can install the dependencies with pip by running the following command:pip install -r requirements.txtStarting the ApplicationRun the app with the following command:python app.pyThe app will be started in test mode onhttp://localhost:5000.API Access GuideFor API usage, a request can be sent for example as Python code with the path of the image in the following form:url = 'http://localhost:5000/api_endpoint'
image_path = '/image_path'
files = {'image': open(image_path, 'rb')}
response = requests.post(url, files=files)Note: Make sure the app is running.InstructionsMake sure the app is running in your webbrowser. Since no content is put on the homepage you will see a server error. To use the API send a request like in the request.py file, supplying your path to the image .NoteMake sure that Tesseract OCR is installed on your system and the 'TESSDATA_PREFIX' environment variable is correctly set to the directory with the Tesseract language data.RechtlichesMedizinische Daten werden mit MedCat klassifiziert.
Die Erstellung erfolgt unter Verwendung der maschinenlesbaren Fassung des Bundesinstituts für Arzneimittel und Medizinprodukte (BfArM).Max Hild // AG Lux // 2023
Package: agm
AGM is an unofficial command line interface for Google APIs, written in Python. For example, if I wanted to get a list of all the items in my drive account, I would use the command:agmdrivefileslist--usermyemail@gmail.com--fields"*"AGM will parse this command and efficiently execute these requests. AGM works with allGoogle APIsand provides additional features which makes quickly processing data from Google’s APIs simple and easy. It’s great for debugging, G Suite administration, or simple task automation.This tool is currenly inAlpha, so bugs are possible. Please report any issues to theissuestab on GitHub. If you’d like to contribute, please let me know or submit a pull request!Developed and maintained byAlex WennerbergDocumentationMore detailed documentation can be found onreadthedocs!
Package: agm-io-utils
agm_io_utilsThis package provides some more complex functions e.g. for looking for files and creating unique filenames.Install:pip install agm_io_utilsExample 1:from agm_io_utils import io_utils

p = r"C:\Users\micro\OneDrive\Dokumente"
result_list = io_utils.get_all_files_recursively_from_path(path=p,
                                                           file_extensions=[".xmind"],
                                                           not_allowed_in_files_name_list=["test", "optional"],
                                                           not_allowed_in_path_string_list=["duplicate"],
                                                           must_be_a_part_of_files_name_list=["python"])
for file_name in result_list:
    print(file_name)Output:2 files found in folder 'C:\Users\micro\OneDrive\Dokumente'
C:\Users\micro\OneDrive\Dokumente\Python.xmind
C:\Users\micro\OneDrive\Dokumente\wmr\Wissen\Python.xmindExample 2:Explanation: Sometimes you get a path to a file through user input. Now the following has to be done:Check whether the file type specified by the user is actually the correct one (e.g. '.txt')Test whether the file actually existsTo save the original file from being changed, find a new file name for the target file.A postfix can either be appended here or, if no postfix is specified, a time stamp is automatically appended. In any case, it must be ensured that the target file does not yet exist in the file system.
If so, count up the file name with an additional index.from agm_io_utils import io_utils

    path_to_file = r"C:\Users\micro\OneDrive\Dokumente\clean_this_xminds.txt"  
    
    new_filename = io_utils.check_path_and_return_new_file_name_with_postfix(path=path_to_file, extension="txt", postfix="tested")
    print(new_filename)Output:C:\Users\micro\OneDrive\Dokumente\clean_this_xminds_tested_06.txt
Package: agmodeling
AgmodelingStatistical modeling tools, to unify model creation and scoring based on pythonpackage agmodeling.setscoring implements a part of the SET method for comparing
sensor output as described by :An Evaluation Tool Kit of Air Quality 1 Micro-Sensing Units
(Barak Fishbain1,Uri Lerner, Nuria Castell-Balaguer)What’s New(2022/10) correct behavior when DummyRegressor usage (v 0.10)(2022/10) change the way to calculate NRMSE (v 0.9)(2022/09) logging configuration added  (v 0.8)(2022/09) introducing get_detailed_score() returning all coef  (v 0.7)move to python logger(2022/09) correction of warning after pandas version evolution (v 0.6)(2019/08) python 3 support (v 0.4)(2018/11) First version (v 0.3)DependenciesAgmodeling is written to be use with python 2.7 and python 3.6
It requires Pandas, numpy and  scipy
It requiresPandas:pip install pandas
pip install numpy
pip install scipyInstallationspip install agmodelingUses cases
Package: agnee
Find sensitive information using dorks from different search-engines.Agnee usessearch_enginesto find sensitive information about given domain using multiple dorks through mutltiple search-engines. I have modified some code ofsearch_enginesand used it in this script to get the custom results and currently it only find results from bing, google and yahoo (will implement more in future for sure).Installationsudopip3installgit+https://github.com/R0X4R/Search-Engines-Scraper.git&&sudopip3installagneeNote: Before installing agnee you must need git and python3 installed on your system.UsageSimple usage arguments$agnee-dtestphp.vulnweb.comhttps://www.exploit-db.com/ghdb/6630https://www.exploit-db.com/ghdb/5665http://testphp.vulnweb.com/secured/phpinfo.phpTo use a specific engine$agnee-dtestphp.vulnweb.com-eyahooYahooDork:inurl:"/.git"testphp.vulnweb.com-githubhttps://www.exploit-db.com/ghdb/6630https://www.exploit-db.com/ghdb/5665http://testphp.vulnweb.com/secured/phpinfo.phpTo search specific number of pages$agnee-dtestphp.vulnweb.com-p1Use all the search-engines$agnee-dtestphp.vulnweb.com-allNote: Sometimes google may block your requests so you need to wait for few hours.DonateIf this tool helped you or you like my workbuymeacoffee.com/R0X4Rpmny.in/bIKNZngt4ys1ko-fi.com/R0X4RWarning:This code was originally created for personal use, do not abuse the traffic, please use with caution.
Package: agnm
Physics equations of motion solverThis is a package for physics motion calculations.Installationpip install agnmUsageDisplacementDisplacement is calculated using formula:x = (vi-vf)/2*tfromagnm.motionimportdisplacementdisplacement(1,2.3,3)# output: 2.65# or use named variablesdisplacement(vf=2.3,t=1,vi=3)# output: 2.65Change in positionChange in position is calculated using formula:x = vi*t+1/2*a*t^2fromagnm.motionimportchange_in_positionchange_in_position(1,3,2)# output: 12.0# or use named variableschange_in_position(a=2,t=3,vi=1)# output: 12.0Final velocityFinal velocity is calculated using one of formulas:vf = (vi^2+2a*x)^1/2
vf = vi+a*tfromagnm.motionimportv_final# using first equationv_final(vi=1,a=3,x_delta=1.5)# output: 10.0# using second equationv_final(vi=1,a=2.3,t=2)# output: 5.6Average velocityAverage velocity is calculated using one of formulas:va = x/t
va = (vi+vf)/2fromagnm.motionimportv_average# using first equationv_average(x_delta=1,t=3)#output: 0.3333333333333333# using second equationv_average(vi=1,vf=2.6)#output: 0.8AccelerationAcceleration velocity is calculated using one of formulas:a = v/t
a = (vf+vi)/tfromagnm.motionimportacceleration# using first equationacceleration(v_delta=5,t=2.5)#output: 2.0# using second equationacceleration(vi=1,vf=6,t=2.5)#output: 2.0
Package: agnmo
Physics equations of motion solverThis is a package for physics motion calculations.Installationpip install agnmolUsageDisplacementDisplacement is calculated using formula:x = (vi-vf)/2*tfromagnm.motionimportdisplacementdisplacement(1,2.3,3)# output: 2.65# or use named variablesdisplacement(vf=2.3,t=1,vi=3)# output: 2.65Change in positionChange in position is calculated using formula:x = vi*t+1/2*a*t^2fromagnm.motionimportchange_in_positionchange_in_position(1,3,2)# output: 12.0# or use named variableschange_in_position(a=2,t=3,vi=1)# output: 12.0Final velocityFinal velocity is calculated using one of formulas:vf = (vi^2+2a*x)^1/2
vf = vi+a*tfromagnm.motionimportv_final# using first equationv_final(vi=1,a=3,x_delta=1.5)# output: 10.0# using second equationv_final(vi=1,a=2.3,t=2)# output: 5.6Average velocityAverage velocity is calculated using one of formulas:va = x/t
va = (vi+vf)/2fromagnm.motionimportv_average# using first equationv_average(x_delta=1,t=3)#output: 0.3333333333333333# using second equationv_average(vi=1,vf=2.6)#output: 0.8AccelerationAcceleration velocity is calculated using one of formulas:a = v/t
a = (vf+vi)/tfromagnm.motionimportacceleration# using first equationacceleration(v_delta=5,t=2.5)#output: 2.0# using second equationacceleration(vi=1,vf=6,t=2.5)#output: 2.0
Package: agnos
Agnosis across-language,cross-platform, lightweight RPC framework
with support for passing objectsby-valueorby-reference. Agnos is meant
to allow programs written in different languages to easily interoperate,
by providing the needed bindings (glue-code) and hiding all the details from
the programmer. The project essentially servers the same purpose as existing
technologies likeSOAP,WSDL,CORBA, and others, but takes aminimalist approachto the issue at hand.
Package: agnos_compiler
Agnosis across-language,cross-platform, lightweight RPC framework
with support for passing objectsby-valueorby-reference. Agnos is meant
to allow programs written in different languages to easily interoperate,
by providing the needed bindings (glue-code) and hiding all the details from
the programmer. The project essentially servers the same purpose as existing
technologies likeSOAP,WSDL,CORBA, and others, but takes aminimalist approachto the issue at hand.
Package: agnostic
Agnostic Database MigrationsOverviewAgnostic is a light-weight, easy-to-learn, and flexible database migration tool
in which migration scripts are written in pure SQL. It is agnostic towards
database, programming language, and object relational mapper (ORM).Super Quick StartHere is an absurdly brief introduction to Agnostic:~/myapp$mkdirmigrations

~/myapp$agnostic-tpostgres-umyuser-dmydbbootstrap
Migrationtablecreated.

~/myapp$cat>migrations/add_cell_phone.sql
ALTERTABLEcustomerADDcell_phoneVARCHAR(255);^D

~/myapp$cat>migrations/add_nickname.sql
ALTERTABLEcustomerADDnicknameVARCHAR(255);^D

~/myapp$agnostic-tpostgres-umyuser-dmydbmigrate
Backingup"mydb"to"/tmp/tmpm8glpgaa".
Abouttorun2migrationsin"mydb":*Runningmigrationadd_cell_phone(1/2)*Runningmigrationadd_nickname(2/2)Migrationscompletedsuccessfully.
Removingbackup"/tmp/tmpm8glpgaa".For a not-quite-as-quick-but-still-pretty-quick start, please refer to thefull documentation.
Package: agnostic-calculator
Agnostic CalculatorA Python3 library that parses strings representing mathematical expressions. TheCalculatortakes aconverterby which means you can specify numerical types other than regular base 10 numbers. There is one converter available:roman.How to installUsing pip:pip install agnostic-calculatorManually:git clone git@github.com:carawarner/calculator.git
cd calculator/calculator
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txtHow to run testsThis libary usespytest, a powerful but lightweight testing tool for Python.cd calculator
pytestHow to useWARNING: Don't useagnostic-calculatorin production. The calculator library calls Python'seval()on user input.It's not safe.fromcalculator.calculatorimportCalculatorimportcalculator.converters.romanasconvertercalculator=Calculator(converter)result=calculator.evaluate(expression)
Package: agnostic-file-store
AFS - Agnostic File StorageGoals and motivationsThe purpose of this module is to offer an agnostic, easy-to-use module
for different file systems (At present time, just local and SMB/CIFS).
The initial use of this module was provide an easy path to translate
local file systems operations to a network samba server.Example of useSo, you can translate code like this:if os.path.isdir('/tmp/token.txt'):
    if not os.path.isdir('/tmp/results'):
        os.mkdir('/tmp/results')
    with open('/tmp/results/data.txt', 'wb') as f:
        f.write('This is an example\n')To something like this (which must work identical):with afs.connect('temp') as fs:
    if not fs.isdir('results'):
        fs.mkdir('results')
    fs.cd('results')
    fs.save('data.txt', 'This is an example\n')Usually you need to iterate a list of directories checking
for the existence of the dir, create if needed, and then changing
to the dir, for every directory::dirs = ['media', 'public', '2016', 'sep', '14']
with afs.connect('static') as fs:
    for dir in dirs:
        if not fs.is_dir(dir):
            fs.mkdir(dir)
        fs.cd(dir)
    # You can save the file nowUsing theset_pathmethod make all this steps with one single call::with afs.connect('static') as fs:
    fs.set_path('media', 'public', '2016', 'sep', '14')
    # You can save the file nowThe entrytempis defined in a configuration file, using
a format similar to windows .INI files, like this:[temp]
kind: local
base: /tmpWe can now switch to another directory by just replacing thetempbase entry to the desired base path, for example. More
interesting, you can change to a network SMB Server, modifying the
configuration file to:[temp]
kind: smb
username: samba_user
password: samba_password
host: nas
domain: mycompany.com
service: test$Things to doAdd more storage file systems: NFS, Amazon S3, SFTPImprove security, nobody likes password stored as plain text
in configuration files.More tests
Package: agnpy
agnpyModelling Active Galactic Nuclei radiative processes with python.descritpionagnpyfocuses on the numerical computation of the photon spectra produced by leptonic radiative processes in jetted Active Galactic Nuclei (AGN).agnpy binderRun this repository in binderacknowledging and citing agnpyAs a general acknowledgement ofagnpyusage, we recommend citing the agnpy release paper.
Additionaly, to specify which version ofagnpyis being used, that version's zenodo record can be cited.
We recommend citing both.At the following links you can find:the agnpy release paper (for a general citation);the zenodo record (for citing a specific version)documentation and quickstartYou are invited to check the documentation athttps://agnpy.readthedocs.io/en/latest/.To get familiar with the code you can run the notebooks in thetutorialssection
of the documentation.dependenciesThe only dependencies are:numpymanaging the numerical computation;astropymanaging physical units and astronomical distances.matplotlibfor visualisation and reproduction of the tutorials.scipyfor interpolationinstallationThe code is available in thepython package indexand can be installed viapippipinstallagnpyThe code can also be installed usingcondacondainstall-cconda-forgeagnpytestsA test suite is available inagnpy/tests, to run it just typepytestin the main directory.shields
Package: ago
What are human readable timedeltas?ago.py makes customizable human readable timedeltas, for example:Testing past tense:Russell commented 1 year, 127 days, 16 hours ago
You replied 1 year, 127 days agoTesting future tense:Program will shutdown in 2 days, 3 hours, 27 minutes
Job will run 2 days, 3 hours from nowHow to installThere are a number of ways to install this package.You could run this ad hoc command:pip install agoor specifyagounder thesetup_requireslist within yoursetuptools-compatible project’ssetup.pyfile.How to useThe ago module comes with three functions:humandelta2dictget_delta_from_subjectYou really only need to worry abouthuman.Here are all the available arguments and defaults:human(subject, precision=2, past_tense='{} ago', future_tense='in {}', abbreviate=False):subjecta datetime, timedelta, or timestamp (integer/float) object to become human readableprecision (default 2):the desired amount of unit precisionpast_tense (default ‘{} ago’):the format string used for a past timedeltafuture_tense (default ‘in {}’):the format string used for a future timedeltaabbreviate (default False):boolean to abbreviate unitsHere is an example on how to usehuman:from ago import human
from ago import delta2dict

from datetime import datetime
from datetime import timedelta

# pretend this was stored in database
db_date = datetime(year=2010, month=5, day=4, hour=6, minute=54, second=33, microsecond=4000)

# to find out how long ago, use the human function
print 'Created ' + human( db_date )

# optionally pass a precision
print 'Created ' + human( db_date, 3 )
print 'Created ' + human( db_date, 6 )We also support future dates and times:PRESENT = datetime.now()
PAST = PRESENT - timedelta( 492, 58711, 45 ) # days, secs, ms
FUTURE = PRESENT + timedelta( 2, 12447, 963 ) # days, secs, ms

print human( FUTURE )Example past_tense and future_tense keyword arguments:output1 = human( PAST,
  past_tense = 'titanic sunk {0} ago',
  future_tense = 'titanic will sink in {0} from now'
)

output2 = human( FUTURE,
  past_tense = 'titanic sunk {0} ago',
  future_tense = 'titanic will sink in {0} from now'
)

print output1
# titanic sunk 1 year, 127 days ago
print output2
# titanic will sink in 2 days, 3 hours from nowNeed more examples?You should look at test_ago.pyHow do I thank you?You should follow me on twitterhttp://twitter.com/russellbalLicensePublic DomainPublic Revision Controlhttps://git.unturf.com/python/ago
Package: agodashi
AgodashiAgodashi is a simple REST API server.
It takes a workflow file written in workflow language as input and returns workflow type, workflow version and workflow parameters template.
Currently, supported workflow languages are as follows:Common Workflow Language (CWL)In the future, we plan to support the following languages.NextflowSnakemakeWorkflow Description Language (WDL)Install and RunAgodashi supports Python 3.6 or newer.$pip3installagodashi
$agodashiDockerWe also expect to launch using Docker.# Launch$docker-composeup-d# Launch confirmation$docker-composelogsUsageAs API specifications, please checkSwaggerUI - Agodashi API SpecThe help for the Agodashi startup command is as follows.$agodashi--help
usage:agodashi[-h][--host][-p][--debug]AnAPIserverforparsingworkflowswritteninworkflowlanguages

optionalarguments:-h,--helpshowthishelpmessageandexit--hostHostaddressofFlask.(default:127.0.0.1)-p,--portPortofFlask.(default:8080)--debugEnabledebugmodeofFlask.As the simplest example of a REST API Request, here is the result of aPOST /inspect-workflow.POST/inspect-workflow-F'wf_url=https://raw.githubusercontent.com/suecharo/agodashi/master/tests/resources/cwl/trimming_and_qc_packed.cwl'{"wf_params":"nthreads: 2  # default value of type \"int\". (optional)\nfastq_2:  # type \"File\"\n    class: File\n    path: a/file/path\nfastq_1:  # type \"File\"\n    class: File\n    path: a/file/path\n","wf_type":"CWL","wf_version":"v1.0"}DevelopmentYou can start the development environment as follows.$docker-compose-fdocker-compose.dev.ymlup-d--build
$docker-compose-fdocker-compose.dev.ymlexecappbashWe useflake8,isort, andmypyas the Linter.$bash./tests/lint_and_style_check/flake8.sh
$bash./tests/lint_and_style_check/isort.sh
$bash./tests/lint_and_style_check/mypy.shWe usepytestas a Test Tool.$pytest.LicenseApache-2.0. See theLICENSE.
Package: agoge
AgogeAn opinionated ML development environmentTrain pytorch models, hyperparameter tune them with single loc change.LibrariesPytorchPytorchis a Python first machine learning libraryRayRayProvides easy experiment scaling + hyper parameter optimisationWeights and BiasesAgoge uses WandB to monitor model training. It's super easy to setup, just go to thewandb websiteand sign up for an account. Then follow the instructions to set upStatic ComponentsThese components should not need to be customised for model specific use casesTrain WorkerSetups all the required components to train a modelInference WorkerSetups all the required components for inference. Also attempts to download model weights if they are not found locally.Data HandlerLoads the dataset and handles the dataset splitUser Provided ComponentsThese components need to be inherited by project specific classesModelProvides some convenience functions around loading models. This class will hold all model specific code and is used by the train worker and inference workersSolverOverride thesolvemethod with the code required to train your modelDatasetAny dataset that is compatiable with thePytorch map style dataset modelDisclaimerThis code is subject to change. I will try not to break anything but can't promise. File an issue if an update breaks your code
Package: agogos
The Agogos package contains implementations of ml pipeline blocks and the underlying codeThis package contains many modules and classes necessary to construct the ml pipeline for machine learning competitions.Pytest coverage reportTo generate pytest coverage report runpytest--cov=agogos--cov-report=html:coverage_reDocumentationDocumentation is generated usingSphinx.To make the documentation, runmake htmlwithdocsas the working directory. The documentation can then be found indocs/_build/html/index.html.Here's a short command to make the documentation and open it in the browser:cd./docs/;./make.bathtml;startchromefile://$PWD/_build/html/index.htmlcd../Uploading to pypipython-mbuild
Package: agon
AgonAgon is a thin wrapper aroundjmespathwhich let you to compose projections in a more natural manner.It's usage is quite simplefromagonimportAgonassertAgon("foo | bar")==Agon("foo")|Agon("bar")==Agon("foo")|"bar"assert{"foo":{"bar":"baz"}}|Agon("foo | bar")=="baz"assert{"foo":{"bar":"baz"}}|Agon("foo")|Agon("bar")=="baz"assert{"foo":{"bar":"baz"}}|(Agon("foo")|"bar")=="baz"
Package: agora-busclient
agora_busclientThis package is the Bus Client library for the Agora Edge Apps SDK (Python) developed by SLB.Use this SDK to construct an edge application, and then containerize it for the running on the edge with AgoraIoT.  Documentation on using the entire SDK can be found at:AgoraIoT SDK Documentation.Release Notesv 1.1.51Fix for BREAKING change for paho.mqtt.pythonv2.0.0 Added callback_api_version=mqtt.CallbackAPIVersion.VERSION1 as the first argument to Client()v 1.1.50Fix Event Message Schema with MediaDataRef & Workflow types naming conventionv 1.0.47Fix bug in getting port number and update tests in baseline.v 1.0.46Fix bug in decoding/encoding of events which left out SlaveIdv1.0.18Make versions of all modules all the sameAdd ability to Mock (AEA2:BusClient:Mock (True/False)) the BusClientFix issue with subscriptionsv1.0.8 - BetaAdd ability to change the message topic for send_data and send_request.v1.0.7 - BetaInitial test release.