Saravanan666/pypi-org huggingface dataset:
Package: agamotto
AgamottoAgamotto is a helper module to make it easier to test a running system
with Python.Why not use serverspec? I work in a Python shop and want our devs to be
able to easily write their own tests. Making the test suite use the same
language they use daily removes a potential friction point.InstallationpipinstallagamottoUsageimportagamottoimportunittest2asunittestclassTestKnownSecurityIssues(unittest.TestCase):deftestBashHasCVE_2014_6271Fix(self):"""Confirm that fix has been installed for CVE-2014-6271 Bash Code
    Injection Vulnerability via Specially Crafted Environment Variables
    """self.assertFalse(agamotto.process.stdoutContains("(env x='() { :;}; echo vulnerable'  bash -c\"echo this is a test\") 2>&1",'vulnerable'),'Bash is vulnerable to CVE-2014-6271')deftestBashHasCVE_2014_7169Fix(self):"""Confirm that fix has been installed for CVE-2014-7169 Bash Code
    Injection Vulnerability via Specially Crafted Environment Variables
    """self.assertFalse(agamotto.process.stdoutContains("env X='() { (a)=>\'bash -c\"echo echo vuln\"; [[\"$(cat echo)\"==\"vuln\"]] && echo\"still vulnerable :(\"2>&1",'still vulnerable'),'Bash is vulnerable to CVE-2014-7169')deftestNoAccountsHaveEmptyPasswords(self):"""/etc/shadow has : separated fields. Check the password field ($2) and
       make sure no accounts have a blank password.
    """self.assertEquals(agamotto.process.execute('sudo awk -F:\'($2 == ""){print}\'/etc/shadow | wc -l').strip(),'0',"found accounts with blank password")deftestRootIsTheOnlyUidZeroAccount(self):"""/etc/passwd stores the UID in field 3. Make sure only one account entry
    has uid 0.
    """self.assertEquals(agamotto.process.execute('awk -F:\'($3 == "0"){print}\'/etc/passwd').strip(),'root:x:0:0:root:/root:/bin/bash')if__name__=='__main__':unittest.main()Then run py.test.CaveatsWe’re a CentOS shop. This hasn’t even been tested on stock RHEL, let
alone Debian or Ubuntu. Pull requests adding that functionality are
welcome, of course.
Package: agape-auth
Agape AuthThe auth package provides a User model and an API for authenticating and registering users. It includes an account recovery API for resetting passwords and the User model can be extended dynamically.Quick startAdd the desired applications into the INSTALLED_APPS setting like this:INSTALLED_APPS = [
...
'agape.authentication',
]Include the URLconf in your project urls.py like this:url(r'^/api/, include('agape.authentication.urls')),Runpython manage.py migrate agapeAuthto create the models.Start the development server and visithttp://127.0.0.1:8000/Developer InstructionsTestingThere are 3 differentruntests_*.pyfiles. Each one runs tests using a different configuration file. There is also aruntests.shfile which will run all all of theruntests_*.pyfiles../runtests.sh

venv/bin/python runtests_default.py

...Packaging & DistributionInstead of callingpython setup.py sdistdirectly use thebuild.shscript. This script sets the version number in setup.py, builds the package, and releases to the loca repository if the$REPOvariable is set../build.shInstallationpip install agape-authLicenseCopyright (C) 2017-2020 Jeffrey Hallock, Maverik SoftwareThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

See the [LICENSE.md](LICENSE.md) file for details.
Package: agape-db
AgapeField factories for Django modelsSynopsisfrom django.db.models import Model
from agape import db

class Person( Model ):

    first_name = db.string( 32, required=True )

    last_name  = db.string( 32, required=True )

    birthday   = db.date( )

    email      = db.email( )DescriptionShorthand for building Django models.Fields default tonull=Trueandblank=True. Settingrequired=Truewill set bothnullandblanktoFalseon the native Django field.FieldsThese factory methods are wrappers over the native Django fields.
Fields that have required parameters use ordered arguments
instead of requiring named arguments. You may pass in any named
arguments that the native Django fields accept. Additional arguments may are also provided for specific fields.boolean( )color( )date( )datetime( )decimal( max_digits, decimal_places )duration( )email( )file( )float( )image( )integer( )small_integer( )join( model, on_delete_policy )slug( from_field, auto=True )If the optionalautoparamter is set toTruethe slug will
be automatically when the instance is saved for the first time.string( max_length )`user( on_delete_policy, auto=True, auto_add=True )User field which will auto populate on the instance is updated
or created. Setauto=Trueto update the field each time the
instance is saved, orauto_add=Trueonly when the instance
is saved for the first time.You must add theagape.db.middleware.AgapeUserMiddlewareto
yoursettings.pyfile to useautoandauto_add.LicenseCopyright (C) 2021 Maverik MinettThe (MIT) license.
Package: agape-django
# AgapeAgape is collection of Django apps to use for building modernweb applications.## Quick start1. Add the desired applications into the INSTALLED_APPS setting like this:INSTALLED_APPS = [...'agape.authentication',]2. Include the URLconf in your project urls.py like this:url(r'^/api/v1/', include('agape.authentication.urls')),3. Run `python manage.py migrate` to create the models.4. Start the development server and visit http://127.0.0.1:8000/## Available Applications* authentication* files## Developer Instructions### Testing```python runtests.pypython runtests.py agape.authenticationpython runtests.py agape.[module]```### Packaging & Distribution#### Package only```python setup.py sdist```#### Package and submit to PyPi repository```python setup.py sdist upload -r pypi```### Installation#### Install locally```pip install ../django-agape/dist/django-agape-*.tar.gz```#### Install from PyPi```pip install django-agape```
Package: agar
Agar is a set of utilities forGoogle App Engine python, , created as part of theSubstrate Project.ResourcesDocumentationPyPI PackageSource Code RepositoryRequirementsAgar requires the Google App Engine SDK,webapp2,webapp2_extras,pytz,restler, andbasin. Versions of these (except the Google App
Engine SDK) are located in thelibdirectory.InstallationTo install Agar, download the source and add theagardirectory to
your Google App Engine project. It must be on your path.TestsAgar comes with a set of tests. Running Agar’s tests requiresunittest2andWebTest(included in thelibdirectory). To run them,
execute:$ ./run_tests.pyTestingGoogle App Engine now includes testbed to make local unit testing
easier. This obsoletes the now-unsupported GAE TestBed
library. However, it had several useful helper functions, many of
which have been re-implemented in Agar. To use them, you must useunittest2and inherit fromagar.tests.BaseTestoragar.tests.WebTest.LicenseAgar is licensed under the MIT License. SeeLICENSE.txtfor details.ContributingTo contribute to the Agar project, fork the repository, make your
changes, and submit a pull request.
Package: agarilog
agarilogThis is simple logger for message service.想定用途長時間のバッチ処理やサービスのデモなどのloggerを想定。他から呼ばれることを想定したライブラリなどには向きません。Installationpip install agarilogFeaturesUse .env file.>>>importagarilogaslogger>>>logger.info("Hello agarilog!")Use any .env file.>>>fromagarilogimportget_logger>>>logger=get_logger(name=__name__,env_file="dev.env")>>>logger.info("Hello agarilog!")This is usedev.envfile.TelegramSlackChatworkTerminalEnvironment環境変数にサービスごとの設定を登録する。もしくは実行パスと同じ場所の.envファイルに記述する。importの方法を変えることで任意のファイルを読み込むこともできる。(上記参照)web系の設定はLOG_XXXX_LIMITを用いて並列で送信するログの数に制限をかけられる。1に設定することで、ログの順序通りに送信できる。それ以上は順序は保証されない。Environment variables will always take priority over values loaded from a dotenv file.LOG_XXXX_LEVEL: [“NOTSET”, “DEBUG”, “INFO”, “WARNING”, “ERROR”, “CRITICAL”]TelegramLOG_TELEGRAM_TOKEN=XXXXXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYY
LOG_TELEGRAM_CHAT_ID=XXXXXXXX
LOG_TELEGRAM_LEVEL=WARNING # default is warning
LOG_TELEGRAM_LIMIT=10 # default is 10SlackLOG_SLACK_TOKEN=xxxx-YYYYYYYYYYYY-YYYYYYYYYYYY-xxxxxxxxxxxxxxxxxxxxx
LOG_SLACK_CHANNEL=XXXXXXXXXXX
LOG_SLACK_LEVEL=WARNING # default is warningChatworkLOG_CHATWORK_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LOG_CHATWORK_ROOM_ID=XXXXXXXXX
LOG_CHATWORK_LEVLE=WARNING # default is warningTerminalLOG_TERMINAL_TYPE=COLOR # default is COLOR
LOG_TERMINAL_LEVEL=WARNING # default is warningLOG_TERMINAL_TYPE: [“NONE”, “PRINT”, “NORMAL”, “COLOR”]Developmentgit cloneしたら最初に実行すること。仮想環境作成とpre-commitのインストールが行われる。$ make init
Package: agario-bot
## agario-python-bot##### Lightweight client library for writing agario bots in Python##### socketio server: https://gitlab.com/unidev/agario##### installation: pip install agario-bot#### Examples###### Simplest cycle bot```pythonfrom agario_bot.bot import BotClientb = BotClient('prettygoo', wait_rate=0.1)surroundings = b.get_visible_surroundings()while True:b.move_left()surroundings = b.get_visible_surroundings()print(surroundings['cells'])print(surroundings['food'])b.move_up()surroundings = b.get_visible_surroundings()print(surroundings['cells'])print(surroundings['food'])b.move_right()surroundings = b.get_visible_surroundings()print(surroundings['cells'])print(surroundings['food'])b.move_down()surroundings = b.get_visible_surroundings()print(surroundings['cells'])print(surroundings['food'])```###### Scary bot, just runs away from everyone one the gameboard```pythonfrom agario_bot.examples.scary_bot import run_scary_botrun_scary_bot()```##### BotClient arguments- float:speed_rate - time to execute movement, 1 - one second- float:wait_rate - time to wait before server response on client emitted socket- list:cells - players- mass - will be removed- string:host - default localhost (0.0.0.0 will not work on Windows, 127.0.0.1 is highly likely not to work as well)- int:port - must be None for real server deployment
Package: agas
Agas defines similarity as the absolute difference between pairs of output
scores from an aggregation function applied to the input series.
The default behavior of Agas is to maximize similarity on a single dimension
(e.g., means of the series in the input matrix) while minimizing
similarity on another dimension (e.g., the variance of the series).The main motivation for this library is to provide a data description tool for
depicting time-series. It is customary to plot pairs of time series, where the
pair is composed of data which is similar on one dimension (e.g., mean value) but
dissmilar on another dimension (e.g., standard deviation).The library name Agas is abbreviation for aggregated-series. Also, ‘Agas’ is
Hebrew for ‘Pear’.
Package: agat
AGAT (Atomic Graph ATtention networks)ThePyTorchbackend AGAT is available now, try withpip install agat==8.*. For previous version, install withpip install agat==7.*.Using AGATThedocumentationof AGAT API is available.InstallationInstall withcondaenvironmentCreate a new environmentconda create -n agat python==3.10Activate the environmentconda activate agatInstallPyTorch,Navigate to theinstallation pageand choose you platform.
For example (GPU):conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidiaInstalldgl.Please navigate to theGet Startedpage ofdgl.
For example (GPU):conda install -c dglteam/label/cu118 dglInstall AGAT packagepip install agatInstall CUDA and CUDNN [Optional].For HPC, you may load CUDA by checkingmodule av, or you can contact your administrator for help.CUDA ToolkitcuDNNQuick startPrepare VASP calculationsRun VASP calculations at this step.Collect paths of VASP calculationsWe provided examples of VASP outputs atVASP_calculations_example.Find all directories containingOUTCARfile:find . -name OUTCAR > paths.logRemove the string 'OUTCAR' inpaths.log.sed -i 's/OUTCAR$//g' paths.logSpecify the absolute paths inpaths.log.sed -i "s#^.#${PWD}#g" paths.logBuild databasefromagat.dataimportBuildDatabaseif__name__=='__main__':database=BuildDatabase(mode_of_NN='ase_dist',num_of_cores=16)database.build()Train AGAT modelfromagat.modelimportFitf=Fit()f.fit()Application (geometry optimization)fromase.optimizeimportBFGSfromagat.appimportAgatCalculatorfromase.ioimportreadfromaseimportAtomsmodel_save_dir='agat_model'graph_build_scheme_dir='dataset'atoms=read('POSCAR')calculator=AgatCalculator(model_save_dir,graph_build_scheme_dir)atoms=Atoms(atoms,calculator=calculator)dyn=BFGS(atoms,trajectory='test.traj')dyn.run(fmax=0.05)Application (high-throughput prediction)fromagat.app.cataimportHpAdsmodel_save_dir='agat_model'graph_build_scheme_dir='dataset'formula='NiCoFePdPt'ha=HpAds(model_save_dir=model_save_dir,graph_build_scheme_dir=graph_build_scheme_dir)ha.run(formula=formula)For more custom manipulations, see ourdocumentationpage.Some default parametersagat/default_parameters.py; Explanations:docs/sphinx/source/Default parameters.md.Change logPlease checkChange_log.md
Package: agate-mdb
agate-mdb adds read support for Microsoft Access files (*.mdb, *.accdb) toagate, with the help ofmdbtools.It’s still a work in progress. Caveat emptor!Important links:agatehttp://agate.rtfd.orgDocumentation:http://agate-mdb.rtfd.orgRepository:https://github.com/lcorbasson/agate-mdbIssues:https://github.com/lcorbasson/agate-mdb/issues
Package: agatereports
AgateReportsPure Python engine to generate reports from JasperReports jrxml file.IntroductionAgateReports is a pure Python tool to generate reports without extensive coding.
It currently relies on Jaspersoft Studiohttps://sourceforge.net/projects/jasperstudio/to graphically position reporting elements on a report layout.This package aims to be a solution to following users:Python developers who want to create a report using GUI tool.Users who want to modify existing reports without programming.Differences with JasperReportsAgateReports use different components than JasperReports and there are minor differences. AgateReports components are based on modules such as ReportLab that are available in PythonAgateReports ia able to use .ttc fontsAdditional components available in Python are added. Currently, jrxml file must manually be edited to use these components. Furthermore, since JasperReports do not support these components, edited jrxml file can no longer be edited with Jaspersoft Studio. There is a plan to fork Jaspersoft Studio to support Python language syntax and these components.Current RestrictionsAgateReports is still in initial development phase and does not provide all of JasperReports features.Patterns, format, and Java classes specified in jrxml file need to be changed to Python equivalent.
For example, “Current Date” needs to be converted from “new java.util.Date()” to “datatime.datetime.now()”Currently, only MySQL, Postgresql, and csv file are supported as a datasourcePerformance is slow for large data source.RequirementsPython3.6 or above
ReportLab
Pillow
MySQL Connector/Python
psycopg2InstallationAgateReports requires Pillow. If Pillow is not already installed, please install it with the following command.pip install PillowAgateReports can be installed by the following command:pip install agatereportsGetting StartedPlease refer to the following github project for full documentation.https://github.com/ozawa-hi/agatereportsdemos directorycontains samples of jrxml files and Python scripts on how to use AgateReports.Usage Samplefromagatereports.adaptersimportMysqlAdapterfromagatereports.basic_reportimportBasicReportimportlogginglogger=logging.getLogger(__name__)defdatasource_mysql_sample():"""
    MySQL data source sample.

    WARNING: Before running this sample, schema 'agatereports' must be create and populated.
    Run scripts in directory 'agatereports/tests/database/mysql' to create and populated database tables.

    CAUTION: Edit values of 'host' and 'port' to those in your environment.
     """logger.info('running datasource mysql sample')jrxml_filename='../demos/jrxml/datasource_mysql.jrxml'# input jrxml filenameoutput_filename='../demos/output/datasource_mysql.pdf'# output pdf filename# MySQL datasourceconfig={'host':'localhost','port':'3306','user':'python','password':'python','database':'agatereports'}data_source=MysqlAdapter(**config)pdf_page=BasicReport(jrxml_filename=jrxml_filename,output_filename=output_filename,data_source=data_source)pdf_page.generate_report()if__name__=='__main__':datasource_mysql_sample()END
Package: agave
agaveAgave is a library that implement rest_api across the use of Blueprints based on Chalice Aws.this library allow send and receive JSON data to these endpoints to query, modify and create content.Install agave using pip:pipinstallagave==0.0.2.dev0You can use agave for blueprint like this:fromagave.blueprints.rest_apiimportRestApiBlueprintagave include helpers for mongoengine, for example:fromagave.models.helpersimport(uuid_field,mongo_to_dict,EnumField,updated_at,list_field_to_dict)Correr testsmaketest
Package: agavedb
Multiuser-aware key/value store built using the Agave metadata APIDocumentation:https://agavedb.readthedocs.io/en/latest/GitHub:https://github.com/TACC/agavedbPyPI:https://pypi.python.org/pypi/agavedbFree software: 3-Clause BSD LicenseInstallationInstall fromPyPIpip install agavedbInstall from GitHub checkout:cd agavedb
python setup.py installTestsTests are implemented usingtox. To run them, just typetox
Package: agave-pyclient
agave_pyclientA Python client for the Agave 3d volume rendererFeaturesConnects to Agave server and sends draw commands. Receives and saves rendered images.Quick StartYou must have Agave installed. On command line, run:agave --server &For Linux headless operation, you need to tell the Qt library to use the offscreen platform plugin:agave -platform offscreen --server &fromagave_pyclientimportAgaveRenderer# 1. connect to the agave serverr=agave_pyclient.AgaveRenderer()# 2. tell it what data to loadr.load_data("my_favorite.ome.tiff")# 3. set some render settings (abbreviated list here)r.set_resolution(681,612)r.background_color(0,0,0)r.render_iterations(128)r.set_primary_ray_step_size(4)r.set_secondary_ray_step_size(4)r.set_voxel_scale(0.270833,0.270833,0.53)r.exposure(0.75)r.density(28.7678)# 4. give the output a namer.session("output.png")# 5. wait for render and then save outputr.redraw()InstallationStable Release:pip install agave_pyclientDocumentationFor full package documentation please visitallen-cell-animated.github.io/agave.DevelopmentSeeCONTRIBUTING.mdfor information related to developing the code.The Four Commands You Need To Knowpip install -e .[dev]This will install your package in editable mode with all the required development
dependencies (i.e.tox).make buildThis will runtoxwhich will run all your tests in both Python 3.7
and Python 3.8 as well as linting your code.make cleanThis will clean up various Python and build generated files so that you can ensure
that you are working in a clean environment.make docsThis will generate and launch a web browser to view the most up-to-date
documentation for your Python package.Allen Institute Software License
Package: agbenchmark
Auto-GPT BenchmarksBuilt for the purpose of benchmarking the performance of agents regardless of how they work.Objectively know how well your agent is performing in categories like code, retrieval, memory, and safety.Save time and money while doing it through smart dependencies. The best part? It's all automated.Scores:Ranking overall:1-Beebot2-mini-agi3-Auto-GPTDetailed results:Click here to see the results and the raw data!!More agents coming soon !
Package: agbpycc
agbpyccagbpycc is a python based compiler frontend for theagbcccompiler for the GameBoy Advance.
It provides an interface more similar to a modern gcc frontend, making it easier to use agbcc with other tools like compiler explorer.
agbpycc also does some processing of the assembly code, allowing for easier comparrison to other assembly.
This is due to its main usage in decompiling matching binaries.InstallationYou can install agbpycc from pypi using pip.
This installs agbpycc as a command line tool, and also as an importable module.
You might want to use a virtual environment.pipinstallagbpyccTo install from source, you need to build the ASM Parser first.
This requiresantlr.
The provided Makefile takes care of downloading the tool using wget.
Should wget not be available to you as a command, download theantlr toolmanually, and place it in the projects directory.gitclonehttps://gitlab.com/henny022/agbpycccdagbpycc
makeinstallTo work with the project files directly, you need to install the required dependencies in addition to building the antlr files.
You can use the provided make target to do all thisgitclonehttps://gitlab.com/henny022/agbpycccdagbpycc
makesetupUsageTo run agbpycc after install, use theagbpycccommand line tool.agbpycc<arguments>To run the files from source without installing run the python module from the project directory.python-magbpycc<arguments>The following is a list of the most basic arguments.
Runagbpycc --helpto get a full list.--cc1   Path to the agbcc binary (required for compiling C)
    -o      output assembly file name
    -g      enable debug info
            processed output contains only file and line informationAssembling objects and Linking binaries are not yet supported.Examplescompile a file to cleaned assembly for nice human readingagbpycc--cc1agbcc-g-ooutput.sinput.cclean assembly for nice human readingagbpycc-ooutput.sinput.sSupportFor problems with the tool, please use thegitlab issue tracker.
For questions you can use thetmc-miscchannel on thezeldaret discord server.
Ping @Henny022 there.ContributingTo contribute your own code to this project, create a fork, do you changes and open a Merge Request.
Please usegitmojiin your commit messages, this creates a neat git history and allows to grasp the contents of a commit in a single look.Authors and acknowledgmentThis was originally based on thepycc.pyfile inthis repo, most of the has been modified or replaced since. (original file)Main Contributors:OctorockHenny022LicenseThis is licensed under the Unlicense.
So you can use this code however you want.
Any credit you can give is very appreciated.
Package: agbus
AmazonGlacierBackUpSystemAmazon Glacier BackUp System (AGBUS) is a cli tool that provides an interface to Amazon Glacier that is simpler than the aws cli. It can also be pointed to a mongoDB instance to store information about vaults, archives and more.Installation:pip install agbusDatabase Configuration Filelocation:~/.gbs/db_configOnly 1 attribute:dbUri- Can define the connection string URI for any mongo instanceexampledb_config:{
    "dbUri": "mongodb://localhost:27017"
}AWS authenticationAGBUS uses the awscli for authenticationhttps://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html