Saravanan666/pypi-org huggingface dataset:
Package: deploymentutils
deploymentutilsThis repo contains a small python package to facilitate deployment of some personal projects.OverviewThis package provides a thin layer on top offabricto execute commands with a state likecurrent working directoryactivated virtual environment (not yet implemented)It also tries to simplify to deploy/maintain multiple instances of the same software but with varying fixtures, including one or more local instances for testing.MotivationThe package is mainly intended to facilitate deployment tasks (e.g. for django apps) by running a simple python script.
Compared to configuration management tools likeAnsiblethis approach is far less powerful and scalable.
However, it might be easier to understand for developers and thus lowering the hurdle to deploy applications by them selves.Assumed Directory LayoutThe scripts marked with [*] make use of this module.<general project dir>
│
│
├── project-src-repo/                       ← official project repo
│   ├── .git/
│   ├── deployment/
│   │   ├── some_files/
│   │   ├── deploy.py      [*]              ← original deployment script  (delivered by the project)
│   │   └── ...
│   ├── django_project/
│   │   ├── settings.py
│   │   └── ...
│   ├── django_app/
│   │   ├── views.py
│   │   └── ...
│   ├── manage.py
│   └── ...
│
├── instance-specific/
│   ├── README.md
│   ├── demo
│   │   ├── .git/
│   │   ├── deploy.py
│   │   ├── project_data
│   │   └── ...
│   ├── production
│   │   ├── .git/
│   │   ├── deploy.py      [*]
│   │   ├── project_data
│   │   └── ...
│   ├── testing
│   │   ├── .git/
│   │   ├── deploy.py      [*]
│   │   ├── project_data
│   │   └── ...
│   └── ...
│
├── local_testing/               ← contents of this directory are autogenerated
│   ├── deploy.py          [*]
│   ├── <appname>_deployment
│   └── ...
.StatusStill under development and not comprehensively tested.FeaturesCreateconfig-example.inifrom an existingconfig-production.ini(which contains additional example values).python -c "import deploymentutils as du; print(du.remove_secrets_from_config('config-production.ini'))"Seetest/test_config.iniand unittests for details.Known IssuesIf a command started byc.run("some_command")is reading input, then the calling python process waits 'forever', i.e. until interrupted manually.possible solution fragment:https://stackoverflow.com/questions/35751295/python-subprocess-check-to-see-if-the-executed-script-is-asking-for-user-input
Package: deployml
# deploy-ml
This open source library is esentually a wrapper for popular machine learning libraries. It streamlines, and simplifies the training and deployment of algrithms. Right now the library is in its infancy. We are working to get the core functionality up and running in order to be tested at Imperial College London.## Installation
You don’t need this source code unless you want to modify the package. If you just want to use the package, just run:` pip install--upgradedeployml` `Install from source with:` python3 setup.py install `## RequirementsPython 3+ (PyPy supported)You should be good to go from there.## Examples
You can find a simple example for each module under the folder examples/[MODULE-NAME]## Documentation
You can find documentation for each module on how to train, test and package machine learning in the README file.## Getting Involved
As this is still a very new project, we have enabled bug reporting and feature requesting. Also if you’re good at python or doing research please let us know and get involved in the development.## Dependancies
Modules are activated seperately meaning that you don’t have to have everything. However, you will have to have the sk-learn library as this is used a lot for the data processing in pretty much all the models. Keras and Tensorflow are only needed if you activate
Package: deployplex
DeployPlex Python SDKdeployplexis the official DeployPlex SDK for PythonGetting StartedRequirementsPython 3.11.2InstallYou can install and configuredeployplexusing this command:pipinstall-UdeployplexConfigurefromfastapiimportFastAPIimportdeployplex.integrations.fastapiasdeployplex_fastapi_integrationapp=FastAPI()deployplex_fastapi_integration.init(app)Auth for DeployPlex CronJob endpointsfromfastapiimportFastAPI,Depends,Responsefromdeployplex.integrations.fastapiimportcron_job_authapp=FastAPI()@app.post("/job")defjob(auth:None=Depends(cron_job_auth))->Response:returnResponse()
Package: deploy-py
deploy-pyDeploy applications using Docker, Helm and Kubernetes/kubectlFree software: MIT licenseDocumentation:https://deploy-py.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-09-04)First release on PyPI.
Package: deploy-python
Setup:First, create an YAML file similar tosample_config.yamland fill the configuration details.Next, create afabfile.pyin your project directory and import all functions(fab commands/tasks) fromdeploy_python.Finally, call setup() function with your configuration yaml file path.Here is an example fabfile-# fabfile.pyfromdeploy_python.commandsimport*setup("fabconfig.yaml")Usage:To list all the fab commands:fab-lTo install the requirements on your local system, you can run the command as followsfabrun_localactivate_env_install_requirements(or)fabactivate_env_install_requirementsTo run a command on staging/live host,fab[run_local/run_stage/run_live]<command_name>NOTE:By default, all the functions will run on the local system.Visit our Django web development pageHere
Package: deployrecipes
********************************************************deployrecipes -- Set of Buildout recipes for PasteDeploy********************************************************This package offers `PasteDeploy <http://pythonpaste.org/deploy/>`_-specific`Buildout <http://www.buildout.org/>`_ recipes, such as:- One to make all the variables in the section of a PasteDeploy configurationfile available in a Buildout parts section.- One to generate WSGI scripts where the application is loaded by PasteDeploy.The end-user manual is available at: http://packages.python.org/deployrecipes/**DeployRecipes** releases==========================Version 1.0.1 (2015-10-30)--------------------------- Included changelog file in distribution because it's needed by ``setup.py``.The previous approach stopped working in newer versions of setuptools.- Added Python 3 compatibility and dropped support for Python 2.5 (and olderversions).Version 1.0 Final (2013-09-24)------------------------------Minor internal changes made:- Converted :meth:`ConfvarsRecipe.get_config_variables` to a protected method.- Exposed static method:meth:`ConfvarsRecipe.get_config_variables_from_app_config` to allow forsub-classing.Version 1.0 Release Candidate 2 (2013-06-19)--------------------------------------------- Made ``install`` method on recipe return an empty tuple to tell Buildout thatno file was updated.- Exposed method ``get_config_variables`` on recipe to allow for sub-classing.- Excluded options in ``global_conf`` from the options made available to otherrecipes.Version 1.0 Release Candidate 1 (2011-04-06)--------------------------------------------- Updated minimum version of ``zc.recipe.egg`` to 1.2.2.Version 1.0 Alpha 5 (2010-02-15)--------------------------------- Lowered the required version of *zc.recipe.egg* to v1.1.Version 1.0 Alpha 4 (2010-02-15)--------------------------------- Renamed the ``eggs`` option to ``factory_distribution`` in the ``confvars``recipe.- Made the ``confvars`` recipe really load the distribution that provides thePasteDeploy application factory. Thanks to Jim Fulton for explaining how todo it!Version 1.0 Alpha 3 (2010-02-10)--------------------------------- Fixed packaging problem, where the module was not included in the distribution.Version 1.0 Alpha 2 (2010-02-10)--------------------------------- Fixed typos in the documentation.- Added `Paste itself <http://pythonpaste.org/>`_ as a dependency, to avoidimport errors.Version 1.0 Alpha 1 (2010-02-08)--------------------------------Implemented the **confvars** recipe.
Package: deployserver
Deploy your project automatically when git branch was updated via GitHub or BitBucket webhooks.UsageInstall deployserver from pip.$pip3installdeployserverTo start your first autodeploy daemon you need to createdeploy.pyscript file in your project.importdeployserverdeployserver.init({'server_address':'http://mydomain.com','port':1234,'deploy':'cd /var/www/myProject;'\'git pull;'})To start autodeploy with multiple branchesimportdeployserverdeployserver.init({'server_address':'http://mydomain.com','port':1234,'branches':[{'name':'master','script':'/var/www/myProject/master-deploy.sh'},{'name':'deploy/test','script':'/var/www/myProject/test-deploy.sh',},{'regexp':r'feature/.*','script':'/var/www/myProject/feature-deploy.sh'}]})Then you need to run this script.$python3deploy.pyIf you want to run autodeploy daemon in background, use Screen.$screen-dmSdeployserver_myProjectpython3deploy.pyScreen docs:https://www.gnu.org/software/screen/manual/screen.htmlWebhooksCurrently support three types of webhooks:GitHubBitBucketCustomCustom WebhooksSend HTTP POST request to the callback URL with JSON payload.{
    "branch": "master",
}Initial paramsFor initiation deployserver params dict is required.server_address : stringEnter a domain name for this server with http protocol.'server_address':'http://mydomain.com''server_address':'http://8.8.8.8''server_address':'http://0a1b2c3d.ngrok.io'port : integerdeployserver will listen this local port.'port':2345deploy : stringBash commands sequence which should be initiated on branch update.'deploy':'cd /var/www/myProject;'\'git pull;''deploy':'/var/www/myProject/deploy.sh'(optional) host : stringdeployserver will listen this local address (default 0.0.0.0).'host':'127.0.0.1'(optional) branch : stringWhich branch push event should initiate deploy function.# default'branch':'master''branch':'current-sprint''branch':'ver2'(optional) uri : stringCallback uri.# default'uri':'/callback''uri':'/'(optional) secret_token : stringSecret token. Check if it is set.# default'secret_token':None'secret_token':'a96529a4af7864e7f6e11035d10b7db5'RequirementsPython >= 3.5aiohttpasyncioLinksRepository:https://github.com/codex-team/deployserverReport a bug:https://github.com/codex-team/deployserver/issuesPyPI Package:https://pypi.python.org/pypi/deployserverCodeX Team:https://ifmo.su
Package: deploy-transformers
🚀 Deploy Transformers 🤗Deploy a SOTA model for text-generation in just three lines of code 💻InstallationPytorchandTransformersare obviously needed.pipinstalldeploy-transformersFor deployment, file structure needs to be like this:├──static
│├──script.js
│├──style.css
├──templates
│├──404.html
│├──index.html|└──your_file.pyYou can eitherclonethis repository to have original files or use the functionwebsite.create_structure()orcreate yourselfthe structure.website.create_structure()will automatically createtemplates/,static/and all the files that are in it (.html, .js, .css).UsageCheck theexamples/folder.# Deploymentfromdeploy_transformersimportWebsitewebsite=Website(model_type="gpt2",model_name="distilgpt2")# website.create_folder(homepage_file="index.html", template_folder='templates', static_folder='static')website.deploy()You can change homepage filename, templates/ and static/ names inwebsite.deploy()but it's better to keep them as default.# Only text generationfromdeploy_transformersimportListModels,Model# ListModels() to show available modelsmodel=Model("gpt2","distilgpt2",seed=42,verbose=False)model.generate(length=20,prompt="The quick brown fox jumps over the lazy dog")# If no prompt, input will be ask until exit## ThanksTransformerspackage by HuggingFacegpt-2-cloudrunby minimaxirNotesDo the same but for other tasks like sentiment analysis, or Q&A.Add Flask option?
Package: deploy-utils
deploy_utilsUtilities for deploying projects to EC2Table of ContentsDocumentationInstallationEC2 NotesSample AWS Config FileDocumentationFor now, just look at the test code.InstallationIn Another ProjectInstall with pip:pip install deploy_utilsor put it in yoursetup.pyininstall_requires:deploy_utils.As StandaloneThe project is based of off python 2.7, but is best used with thevirtualenvdevelopment scheme.Install Python 2.7Install virtualenv:$ [sudo] pip install virtualenvInstantiate the virtual python environment for the project using python 2.7:Windows:virtualenv --python=C:\Python27\python.exe deploy_utilsLinux:virtualenv -p /path/to/python27 deploy_utilsBrowse to project foldercd deploy_utilsActivate the virtualenv:Windows:.\Scripts\activateLinux:source bin/activate(Windows only) Manually install thepycryptolibrary.  The followin command assumes you have 32 bit python 2.7 installed:pip install http://www.voidspace.org.uk/python/pycrypto-2.6.1/pycrypto-2.6.1-cp27-none-win32.whlIf 64 bit python 2.7 is installed, run the following command instaed:pip install http://www.voidspace.org.uk/python/pycrypto-2.6.1/pycrypto-2.6.1-cp27-none-win_amd64.whlInstall the python project using develop mode:python setup.py developEC2 NotesYou will need to do the following for automatically launching Amazon EC2 instances using the scripts:Create AWS accountGet the access keyGet the secret access keyCreate a profile in~/.aws/credentialswith the above keysCreate security groupAdd your IP to list of allowed inbound traffic(see aws docs).Create key pair(see aws docs).Download .pem file to computer(Windows only) instally PuTTY and PuTTYgenDownload from here.Create .ppk file(see aws docs).AMI idsYou need to use the appropriate one for your regionDo this by going to the marketplace and selecting the type to use and then find the AMI id by saying you'll manually launch it.Use of CentOSRequires that you agree to some TOS, I did this by launching an instanceThis library targets CentOS 6 HVM with UpdatesPre 2015 instance setup machine with onlyrootuserPost 2014 usescentosuserIncludes script to automatically install PostGIS.  :)Config File DataSetting NameDescriptionami_idThe base ami to start from.  See notes about finding AMI ids above.aws_access_key_idAccess key for account.aws_profile_nameThe profile name where you put the keysaws_secret_access_keySecret access key for account.block_device_mapWhere to attach storage.  Amazon Linux:/dev/xvdaCentOS 6:/dev/sda1cron_emailWho to email in cron jobs.key_filenameThe filename of your .pem file.key_pair_nameThe key pair name for the EC2 instance to use.instance_nameThe name to tag the instance with.instance_typeThe EC2 instance type.(See instance types).non_root_userThe non-root user ot use when fabbing on the machine.  Amazon Linux:ec2-userCentOS 6:centosregionThe AWS region to connect to.security_groupsSecurity groups to grant to the instance.  If more than one, seperate with commas.volume_sizeSize of the AWS Volume for the new instance in GB.
Package: deployv-addon-gitlab-tools
Deployv addon: Gitlab tools. Generated by cookiecutter and cookiecutter-deploy-addon.A small set of tools to automate repetitive tasks for testing gitlab repositories.It is important to say that this is not by any mean a replacement for the MQT tools, these are tools that we need in order to make gitlab-ci work properly with the MQT tools.Free software: BSD licenseInstallationpip install deployv-addon-gitlab-toolsDocumentationhttps://deployv-addon-gitlab-tools.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-03-03)First release on PyPI.
Package: depmap-downloader
DepMap DownloaderReproducibly/automatically download data from
theCancer Dependency Map.💪 Getting StartedThe DepMap has a secret API that this package wraps, so you can always get the
latest version of some select datasets
usingpystow.Get the Achilles gene dependencies:fromdepmap_downloaderimportensure_achilles_gene_dependencies# With a versionpath=ensure_achilles_gene_dependencies(version="DepMap Public 21Q4")# Get the latestpath=ensure_achilles_gene_dependencies()Same for the CRISPR gene dependencies:fromdepmap_downloaderimportensure_crispr_gene_dependencies# With a versionpath=ensure_crispr_gene_dependencies(version="DepMap Public 21Q4")# Get the latestpath=ensure_crispr_gene_dependencies()🚀 InstallationThe most recent release can be installed fromPyPIwith:$pipinstalldepmap_downloaderThe most recent code and data can be installed directly from GitHub with:$pipinstallgit+https://github.com/cthoyt/depmap_downloader.gitTo install in development mode, use the following:$gitclonegit+https://github.com/cthoyt/depmap_downloader.git
$cddepmap_downloader
$pipinstall-e.👐 ContributingContributions, whether filing an issue, making a pull request, or forking, are
appreciated. SeeCONTRIBUTING.rstfor more information on getting involved.👋 Attribution⚖️ LicenseThe code in this package is licensed under the MIT License.🍪 CookiecutterThis package was created
with@audreyfeldroy'scookiecutterpackage
using@cthoyt'scookiecutter-snekpacktemplate.🛠️ For DevelopersSee developer instrutionsThe final section of the README is for if you want to get involved by making a
code contribution.❓ TestingAfter cloning the repository and installingtoxwithpip install tox, the
unit tests in thetests/folder can be run reproducibly with:$toxAdditionally, these tests are automatically re-run with each commit in
aGitHub Action.📦 Making a ReleaseAfter installing the package in development mode and installingtoxwithpip install tox, the commands for making a new release are
contained within thefinishenvironment intox.ini. Run the following from
the shell:$tox-efinishThis script does the following:Uses BumpVersion to switch the version number in thesetup.cfgandsrc/depmap_downloader/version.pyto not have the-devsuffixPackages the code in both a tar archive and a wheelUploads to PyPI usingtwine. Be sure to have a.pypircfile configured to
avoid the need for manual input at this stepPush to GitHub. You'll need to make a release going with the commit where the
version was bumped.Bump the version to the next patch. If you made big changes and want to bump
the version by minor, you can usetox -e bumpversion minorafter.
Package: depo
DEPO Delivery Service Bindings for PythonPython wrapper forDEPO's application interface. At the moment, it provides easy access to contracted places (input / output) and placing and canceling orders.Detailed information of DEPO's API can be found attheir website. If you feel like you need covering additional API methods, please open an issue or create a pull request.SetupYou can install this package by usingpip:pip install depoIf you fancypipenvuse:pipenv install depoTo install from source, run:python setup.py installFor the API client to work you would need Python 2.7+ or Python 3.4+.To install viarequirementsfile from your project, add the following for the moment before updating dependencies:git+git://github.com/palosopko/depo-python.git#egg=depoUsageFirst off, you need to require the library and provide authentication information by providing your user name and password doDEPO's admin interfaceimport depo
dibuk.api_credentials = ('email', 'password')Getting contracted placesis accomplished by callingdepo.Place.all(). The method returns a list withdepo.Placeobjects containing all the relevant details. Please note boolean propertiesis_inputandis_output– if you are just trying to implement DEPO's service for your customers to get their orders, you will only be interested in the latter.Toplace a new orderyou need to rundepo.Order.create()with code of a place (orPlaceobject), recipient's name, phone, email and order's amount, product amount and optionally an order reference. Method returns dictionary with delivery details including reference number under thenumberkey.ContributingCheck for open issues or open a new issue for a feature request or a bug.Fork the repository and make your changes to the master branch (or branch off of it).Send a pull request.DevelopmentRun all tests on all supported Python versions:make testRun the linter with:make lintThe client library uses Black for code formatting. Code must be formatted with Black before PRs are submitted. Run the formatter with:make fmtChangelogv0.2.0: 30/09/2019Python 3 compatibility for real, code formatting is covered by Black and various small fixes to make everything better and easier including first test.v0.1.1: 04/04/2017Fixes creating order from place's identifiers sent as unicode.v0.1.0: 28/03/2017Initial version with support for getting pickup places.
Package: deposit
DepositOpen source graph database engine focused on scientific data collection.Created on 29. 4. 2013Table of ContentsAbout DepositInstallationContactAcknowledgementsLicenseAbout DepositDeposit is open source graph database engine that serves as a storage and management platform for both the collection as well as analysis of scientific data. At the data collection stage, it allows maintaining a high granularity of the data, extensive re-use of dictionary entries to facilitate classification, and a high degree of flexibility to modify end extend the database schema as additional information becomes available. For such purposes, the implemented directed graph database format is much more suitable than a relational format.A typical use case would involve an analytical description of hierarchically classified scientific samples. This format also enables the streamlined merging of collected datasets to a central database or the extraction of subsets for purposes of data analysis or exchange.The engine can use a PostgreSQL server as well as the local file system for storage which makes it suitable for field data collection with limited network connectivity. It supports import and export to standard spreadsheet formats (CSV and XLSX) and storage in a relational PostgreSQL format for easy access by external applications.Deposit also has aGUI frontendIt serves as a backend for the following applications:Laser Aided ProfilerCeraMatchInstallationTo install the latest version of Deposit from the Python package index, use the following command:pip install depositFor the GUI installer seeDeposit GUI releasesContact:Peter Demján (peter.demjan@gmail.com)Institute of Archaeology of the Czech Academy of Sciences, Prague, v.v.i.AcknowledgementsDevelopment of this software was supported by OP RDE, MEYS, under the project "Ultra-trace isotope research in social and environmental studies using accelerator mass spectrometry", Reg. No. CZ.02.1.01/0.0/0.0/16_019/0000728.This software uses the following open source packages:cryptographynatsortNetworKitNetworkXopenpyxlPillowPsycopgPyShpPySide2QtShapelyUnidecodevalidatorsLicenseThis code is licensed under theGNU GENERAL PUBLIC LICENSE- see theLICENSEfile for details
Package: deposit-gui
Deposit GUIGUI forDeposit: Graph database focused on scientific data collection.Created on 29. 4. 2013Table of ContentsInstallationContactAcknowledgementsLicenseInstallationFor a Windows installer see:https://github.com/demjanp/deposit_gui/releases/latestTo install the latest version of Deposit GUI as a Python module use:pip install deposit_guiTo start the GUI execute:bin\start_gui.pyContact:Peter Demján (peter.demjan@gmail.com)Institute of Archaeology of the Czech Academy of Sciences, Prague, v.v.i.AcknowledgementsDevelopment of this software was supported by OP RDE, MEYS, under the project "Ultra-trace isotope research in social and environmental studies using accelerator mass spectrometry", Reg. No. CZ.02.1.01/0.0/0.0/16_019/0000728.This software uses the following open source packages:cryptographyGraphviznatsortNetworKitNetworkXopenpyxlPillowPsycopgPyGraphvizPyShpPySide2QtShapelysvgelementsUnidecodevalidatorsLicenseThis code is licensed under theGNU GENERAL PUBLIC LICENSE- see theLICENSEfile for details