Saravanan666/pypi-org huggingface dataset:
Package: azkaban-orchestrator
Azkaban Orchestrator====================An Orchestrator for Azkaban pipelinesQuick Start----------.. code-block:: consolepip install azkaban-orchestratorDefine Orchestration logic--------------------------Create a file and define the dependencies between pipelines using the following notation.* Pipeline name is a project name in Azkaban. Project and flow name of a pipeline should be the same.* use '->' for **hard dependency** between two pipelines. A -> B means B runs if A runs successfully.* use '.>' for **soft dependency** between two pipelines. A .> B means B runs after A despite A runs successfully or not.* if pipeline has some **parameters** put them in parentheses by the pipeline name like A(status=1|date). use vertical bar '|' to separate the parameters.* to define **clusters** use colon ':' e.g. S: A,B,C means cluster S includes pipelines A,B and C. to move from one cluster all the pipelines within the cluster should run successfully.Sample 1--------.. code-block:: console----------|  a  b  | s1----------|v----------|  c  d  | s2----------|veSample1 diagram file.. code-block:: consoles1 : a, bs2 : c, ds1 -> s2s2 -> eSample 2--------.. code-block:: consolea -> b -> d(date)|     ___/||    |    |v    v    vc -> e <- f(status=1)|vf(status=2)Sample2 diagram file.. code-block:: consolea -> bb -> d(date)d(date) -> f(status=1)d(date) -> ef(status=1) -> ea -> cc -> ec -> f(status=2)Usage-----To run the orchestrator.. code:: pythonimport loggingfrom azkaban_orchestrator import orchestratorclient = orchestrator.Client(diagram_file_name='/path/to/diargam_file',host='azkaban_host',username='azkaban_username',password='azkaban_passwpord',logger=logging.getLogger(__name__))# define the parameters need to pass to the orchestratorparams = {'date':'20171202'}# define the initial pipeline# if you need to start orchestration from a specific pipelineinitial = Noneclient.run(initial, params)To draw the diagram.. code:: pythonfrom azkaban_orchestrator import diagramd = diagram.Diagram('test diagram', 'path/to/diagram_file')d.show()
Package: azkm
azure-knowledgemining-cliazkm is a cli tool to deploy azure knowledge mining solutions with cognitive skills and applicable datasets.commandsazkm[cmd][sub-cmd][parameters]cmdsub-cmdparametersdescriptioninitkm_id: environment nameregion: environment regiondestroykm_id: environment namestatereadkm_id: environment namestatelistinstallationTo use on azure cloud shell:curlhttps://raw.githubusercontent.com/frogrammer/azure-knowledgemining-cli/main/cloudshell-install.sh|bashpre-requisiteskubectlterraformnodejs > 0.1.15 or a nodejs virtual environmentcdktf [OPTIONAL to generate azurerm provider CDK]az cli
Package: azlet
azlet : Azure lets encrypt libraryazlet creates SSL certificates using letsencrypt and stores them in a key vault as certificate.The keyvault then can be used by azure APIM, Functions or Webservices to consume the certificates.You can create new certificates, or rotate existing certificates.to use azlet, you need an azure key vault an an azure DNS.azlet uses azure identity to access the key vault as well as the azure dns server. You can use your identity from azure cli, managed identity or enviromnent variables.azlet creates an account with letsencrypt, making sure all requests come from the same account. The account is stored in the key vault as secret.azlet uses thesewerlibrary to create certificates.Usagethe identity that uses azlet must have secret get/set permissions as well as certificate get/list/update/create/import permissions on the key vault.create a new certificate:python-mazletcreate--keyvault-namemy-vault--dns-zonedns.zone.com--dns-subscription11111111-1111-1111-1111-11111111111" --dns-resource-group dns --prefix testcreate new certificates for all certificates that are valid less that 14 days:python-mazletrotate--keyvault-namemy-vault--dns-zonedns.zone.com--dns-subscription11111111-1111-1111-1111-11111111111" --dns-resource-group dnsseepython -m azlet -hfro a full list of commands.
Package: azlog
Azure DevOps pipelines python loggerAzure pipelineshave a feature calledLogging commands, which makes it possible to communicate with the Azure pipeline agent.These logging commands are often used to set a pipeline variable, but can also be used to writeformatted logsin the task standard outputs, or writeerror/warning messageson the pipeline results web page.For example, writing the following logs to the standard output :print("##[group]Beginning of a group")print("##[warning]Warning message")print("##[error]Error message")print("##[section]Start of a section")print("##[debug]Debug text")print("##[command]Command-line being run")print("##[endgroup]")Will render in the task logs like this :This conveniencepythonmodule is designed to make formatted logging and error/warning messages in Azure pipelines easier to use.It uses the pythonloggingsystem by creating a subclass oflogging.LoggerAdapter.Installpip install azlogUsageFirst create an AzLoggerfromazlogimportAzLogger# Create the loggerlogger=AzLogger(__name__)logger.setLevel(logging.INFO)TheAzLoggeradapter will create a python Logger with the name provided as argument.Internally,AzLoggerwill create aStreamHandlerusing anAzFormatteras its formatterYou can also provide your own logger if you need additionnal handlers :importloggingfromazlogimportAzLoggerraw_logger=logging.getLogger(__name__)raw_logger.addHandler(logging.FileHandler('file.log'))logger=AzLogger(raw_logger)logger.setLevel(logging.INFO)You can then use theAzLoggerto print formatted log messages to your task outputlogger.group("Beginning of a group")logger.warning("Warning message")logger.error("Error message")logger.section("Start of a section")logger.debug("Debug text")logger.command("Command-line being run")logger.endgroup("")Will render in the task output like this :Or to raise status messageslogger.issueerror("Issue an error to the pipeline")logger.issuewarning("Issue a warning to the pipeline")Will render in the pipeline status page like this :
Package: azmailer
AzMailerIntroductionAzMailer is a Python class designed to facilitate sending emails using Azure Communication Services.Inspired by the Azure Communication Services documentationhere, AzMailer simplifies the process of sending emails by providing an easy-to-use interface for constructing and sending email messages.InstallationTo install azmailer, simply use pip:pipinstallazmailerUsage ExampleTo use the AzMailer class, follow these steps:Initialize the AzMailer object with the Azure Communication Service connection string and sender's email address:mailer=AzMailer(AZURE_CONNECTION_STRING,SENDER_EMAIL_ADDRESS)Construct an email message using theconstruct_message()method:email_message=mailer.construct_message(subject="Your Email Subject",content="Your Email Content",to_addresses=["recipient1@example.com","recipient2@example.com"],attachments=["/path/to/file1","/path/to/file2"])Send the email message using thesend_email()method:mailer.send_email(email_message)DocumentationThe Sphinx-generated documentation for azmailer can be foundhere.ContributionFeel free to contribute by submitting issueshere.
Package: azmonitor
It is a helper tool for Azure Monitor. It is not official.
Recently it is used the term Azure Monitor logs instead of Log Analytics. Log data is still stored in a Log Analytics workspace and is still collected and analyzed by the same Log Analytics service.https://docs.microsoft.com/en-us/azure/azure-monitor/InstallpipinstallazmonitorExampleimportazmonitorlog_type='AzMonitor'customer_id='xxxxx-xxxx-xxxx-xxxx-xxxxx'shared_key='xxxxxxxxxxxxxxxxxxxxxxxxxx'applog=azmonitor.LogAnalytics(log_type,customer_id,shared_key)# Single Datadata={'status':'starting','value':50}applog.log(data)# Multi Datalist_data=[]foriinrange(3):list_data.append({'status':'starting','value':i})applog.logs(list_data)
Package: azol
Azure Offensive LibraryA python-based pentesting library for Azure and Entra IDInstallationInstall the library using Python3 pip:pip install azolBasic UsageLog in as a user and get all subscriptions:from azol.credentials import User
from azol.clients import ArmClient

cred = User(username="user@domain.com")
armClient = ArmClient(tenant="tenant.com", cred=cred)

subscriptions=armClient.get_subscriptions()

for sid in subscriptions:
  print(sid)Log in as a Service Principal and get all groups, with ownersfrom pprint import pprint
from azol.credentials import ServicePrincipal
from azol.clients import GraphClient

cred = ServicePrincipal(client_id="00000000-0000-0000-0000-000000000000", client_secret="your secret" )

GraphClient = GraphClient(tenant="tenant.com", cred=cred)

groups=GraphClient.get_all_groups_and_owners()

for group in groups:
  pprint(group)
Package: azoo
Downloads specified number ofrandomly chosenapks satisfying specified criteria from androzoo repository.Saves specified metadata tometadata.csv. dexdate, apksize and vtdetection require specifying lower and upper bounds in format lower:upper, both inclusive.One of the bounds can be omitted (i.e. you can write :upper or lower:)pkgname, markets, metadata, sha256, sha1, md5 can be either single values or comma separated lists.
Key and input file can be specified as options or via local or global config file.
Allows downloading in the multiple threads.PREREQUISITESPython 3.6INSTALLATIONpip install azoocreate.azfile in your home directory (~ on Linux
and macOS, C:\Users%USERNAME% on Windows) or in the directory where you want to invokeazfrom with the following contents:key=%API_KEY%  
input_file=%PATH_TO_INPUT_FILE%Alternatively, use cli options-kand-iRequest the api key from androzoo, download and uncompress the input file from herehttps://androzoo.uni.lu/listsCONFIGURATIONYou can configure api key and input file either using cli options or.azconfiguration file. The file can be placed locally (in directory where you want to invokeazfrom) or globally (in your home directory).
The precedence for reading config values is as follows: cli -> local-> global.SAMPLE USAGEaz -n 10 -d 2015-12-11: -s :3000000  -m play.google.com,appchinaThis means: download 10 apks with the dexdate starting from the
2015-12-11 (inclusive), size up to 3000000 bytes (inclusive) and present on either play.google.com or appchinaOptions:-n, --number INTEGER     Number of apks to download.
  -d, --dexdate TEXT       The date on a dex file, format %Y-%m-%d, e.g.  2015-10-03.
  -s, --apksize TEXT       Apk size, in bytes.
  -vt, --vtdetection TEXT  Virus total rating, integer.
  -pn, --pkgname TEXT      Package names.
  -m, --markets TEXT       Markets, e.g. play.google.com. Possible values (can differ, since repository is updating): 1mobile,angeeks,anzhi,apk_bang,appchina,fdroid,freewarelovers,genome,hiapk,markets,mi.com,play.google.com,proandroid,slideme,torrents.
  --sha256 TEXT            SHA256 hashes.
  --sha1 TEXT              SHA1 hashes of apks to download.
  --md5 TEXT               MD5 hashes of apks to download.
  -md, --metadata TEXT     Metadata. This is a subset of latest.csv column names to keep in metadata.csv. By default sha256,pkg_name,apk_size,dex_date,markets.  
  -o, --out TEXT           Output folder name. By default current directory.
  -sd, --seed INTEGER      Seed for a random algorithm.
  -k, --key TEXT           Androzoo api key.
  -i, --input-file TEXT    Path to input csv.
  -t, --threads INTEGER    Number of threads for concurrent download. 4 by default.
  --version                Show the version and exit.
  --help                   Show this message and exit.
Package: azpipeline
azpipelineDocumentation:https://azpipeline.readthedocs.io/en/latest/Source Code:https://github.com/nidhaloff/azpipelinePyPI:https://pypi.org/project/azpipeline/The easiest way to interact with azure pipelines using python!The azure-devops library is very confusing to use and wrap your head around. Furthermore, it is not documentedat all!!. Anyway, that is the reason I implemented this small wrapper to easily interact with azure pipeline.InstallationpipinstallazpipelineUsagefromazpipelineimportAzurePipeline# Create the pipeline classpipeline=AzurePipeline(organization_url=<your_organization_url>,project=<your_project>,build_id=<your_pipeline_build_id>,token=<your_access_token>)# Access a summary of the pipeline runsummary=pipeline.summary# Get the timeline of the current pipeline runtimeline=pipeline.get_timeline()# Get tasks/steps that failed on the pipelinefailed_tasks=pipeline.get_failed_tasks(timeline)# Get failed tasks logslogs=pipeline.get_failed_tasks_logs(timeline)# Get failed jobsjobs=pipeline.failed_jobs()# Get a list of previous buildsbuilds=pipeline.get_previous_builds()# Compare current with previous buildpipeline.compare_with_prev_build()DevelopmentClone this repositoryRequirements:PoetryPython 3.7+Create a virtual environment and install the dependenciespoetryinstallActivate the virtual environmentpoetryshellTestingpytestDocumentationThe documentation is automatically generated from the content of thedocs directoryand from the docstrings
of the public signatures of the source code.ReleasingTrigger theDraft release workflow(pressRun workflow). This will update the changelog & version and create a GitHub release which is inDraftstate.Find the draft release from theGitHub releasesand publish it. When
a release is published, it'll triggerreleaseworkflow which creates PyPI
release and deploys updated documentation.Pre-commitPre-commit hooks run all the auto-formatters (e.g.black,isort), linters (e.g.mypy,flake8), and other quality
checks to make sure the changeset is in good shape before a commit/push happens.You can install the hooks with (runs for each commit):pre-commitinstallOr if you want them to run only for each push:pre-commitinstall-tpre-pushOr if you want e.g. want to run all checks manually for all files:pre-commitrun--all-files
Package: azpkg37
azpkgAZ Testing PackageInstallation$pipinstallazpkgUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseazpkgwas created by AraonZ. It is licensed under the terms of the MIT license.Creditsazpkgwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: azpypkg36
AZPyPkgAZ Learning PackageSet upInstall envrionment manager: Anaconda(Or even smaller package of Miniconda)Install packages:poetryandcookiecutterRegister for TestPyPI and PyPIRegister for GitHubInstall Python extensions in VSCodeMainCreate a new virtual env by Anaconda and make it enable in VSCode to working directory locallyCreate a new package structure by below command and input a few info.git initthe new foldercookiecutter https://github.com/py-pkgs/py-pkgs-cookiecutter.gitCreate a new project in GitHub, link new package to remote repos. Commit and push:Add new code as function into file 'azpypkg36':Install current new package:poetry installTest new installed package:Create test file 'zen.txt':python -c "import this" > zen.txtTest with Python Command:Test with tests .py file:Create tests in 'tests' directory and run test:pytest tests/Install 'pytest' into project:poetry add --dev pytestCreate unit test code:KEY: both file name and function name, must include 'test_XXX' or 'XXX_test'Run unit test:Check code coverage:Install 'pytest' into project:poetry add --dev pytest-covRun test coverage:pytest tests/ --cov=azpypkg36Documentation:(TBSummary)Add version:git tag+git push --tagsafter regulargit commitandgit pushRelease on github:Build package: the main reason for build is to generate a a wheel(.whl file) can be distributedpoetry buildInstall locally:cd dist+pip install azpypkg36-0.1.0-py3-none-any.whlPublish package:Publish to 'TestPyPI' & install by pip (pip uninstall first before testing):Publish:poetry config repositories.test-pypi https://test.pypi.org/legacy/poetry publish -r test-pypi![](Pic/21.png)

![](Pic/22.png)

![](Pic/23.png)Install:pip install -i https://test.pypi.org/simple/ azpypkg36![](Pic/24.png)Publish to 'PyPI' & install by pip (pip uninstall first before testing):Publish:poetry publishInstall:pip install azpypkg36More details steps:
Package: azs
AmazonScraperInstallationpipinstallazsORclone this repository andpipinstall-rrequirements.txt

pythonsetup.pyinstallUsageInitialization with requestsfromazsimportAmazonScraperscraper=AmazonScraper()Initialization with undetected-chromedriverfromazsimportAmazonScraperfromselenium.webdriver.chrome.optionsimportOptionsimportundetected_chromedriver.v2asucoptions=Options()options.add_argument('--headless')options.add_argument('--disable-gpu')driver=uc.Chrome(options=options)scraper=AmazonScraper(driver=driver)Initialization with Seleniumfromselenium.webdriver.chrome.optionsimportOptionsfromseleniumimportwebdriveroptions=Options()options.add_argument('--headless')options.add_argument('--disable-gpu')driver=webdriver.Chrome(executable_path='D:\\chromedriver.exe',options=options)scraper=AmazonScraper(driver=driver)Get a productproduct=scraper.get_product("https://www.amazon.fr/gp/product/B08VH8C3WZ")print(str(product))"""Title : Western Digital WD Red Plus 3.5" 4000 Go SÃ©rie ATA IIIPrice : 119.13 â‚¬Evaluation : 4.6Evaluation count : 1Saving percentage : 10"""
Package: azsecrets
Azure KeyVault Secrets as Environment VariableGet Azure KeyVault variables ans use them as environment variables.InstallpipinstallazsecretsUsageYou can set environment variables for:exportAZURE_VAULT_BASE_URL=***exportAZURE_CLIENT_ID=***exportAZURE_SECRET_KEY=***exportAZURE_TENANT_ID=***or send it via the CLI assecrets--vault-base-url***--client-id***--secret***--tenant***env--shellbashOnce you have set up the environment variables, just call the CLI:secretsenv--shellbashYou can also use it at as an package my importing it:fromazsecretsimportAzureSecretsprint(AzureSecrets().get_secret("SECRET-NAME"))print(AzureSecrets().get_secrets(["SECRET-NAME-1","SECRET-NAME-1"]))ContributionsAll contributions are welcome.License
Package: aztec-code-generator
Aztec Code generatorThis is a pure-Python library to generateAztec Code2D barcodes.Changelogv0.1-v0.2: initial Python packagingv0.3: allow optional border, more efficient matrix representationv0.4: mergehttps://github.com/delimitry/aztec_code_generator/pull/5and fix testsv0.5:code simplificationmore efficient internal data structures (Enum)encoding ofFLG(n)correct handling of Python 3strvs.bytes(Aztec Code natively encodesbytes, not characters, and a reader's default interpretation of those bytes should beISO-8859-1 aka Latin-1)v0.6:more code simplificationmake Pillow dependency optionaladdprint_fancyfor UTF-8 output (inspired byqrencode -t ansiutf8)bugfix forDIGIT→PUNCTtransition (and add missed test case)allow customization of error correction percentage levelv0.7:support standard-compliant encoding of strings in character sets other thanISO-8859-1viaECI indicationsv0.8-v0.9:replace Travis-CI with Github Actions for CIv0.10bugfix for lowercase → uppercase transition (fixes encoding of strings likeabcABC)InstallationReleasesfrom PyPimay be installed withpip3 install aztec_code_generator.Bleeding-edge version frommasterbranch of this repository can be installed withpip3 install https://github.com/dlenski/aztec_code_generator/archive/master.zip.DependenciesPillow(Python image generation library) is required if you want to generate image objects and files.UsageCreating and encodingfromaztec_code_generatorimportAztecCodedata='Aztec Code 2D :)'aztec_code=AztecCode(data)TheAztecCode()constructor takes additional, optional arguments:sizeandcompact: to set a specific symbol size (e.g.19, Truefor a compact 19×19 symbol); seekeys(aztec_code_generator.configs)for possible valuesec_percentfor error correction percentage (default is the recommended 23), plussizeaSaving an image fileaztec_code.save('aztec_code.png', module_size=4, border=1)will save an image fileaztec_code.pngof the symbol, with 4×4 blocks of white/black pixels in
the output, and with a 1-block border.Creating an image objectaztec_code.image()will yield a monochrome-modePILImageobjectrepresenting the image
in-memory. It also accepts optionalmodule_sizeandborder.Text-based outputaztec_code.print_fancy()will print the resulting Aztec Code to standard output usingUnicode half-height block elementsencoded
with UTF-8 and ANSI color escapes. It accepts optionalborder.aztec_code.print_out()will print out the resulting Aztec Code to standard
output as plain ASCII text, using#andcharacters:##  # ## ####
 #   ## #####  ###
 #  ##  # #   # ###
## #  #    ## ##
    ## # #    # #
## ############ # #
 ### #       ###  #
##   # ##### # ## #
 #   # #   # ##
 # # # # # # ###
    ## #   # ## ##
#### # ##### ## #
  # ##       ## ##
 ##  ########### #
  ##    # ##   ## #
     ## # ### #  ##
      ############
##   #     # ##   #
##  #    ## ###   #Authors:Originally written byDmitry Alimov (delimtry).Updates, bug fixes, Python 3-ification, and carefulbytes-vs.-strhandling
byDaniel Lenski (dlenski).License:Released underThe MIT License.
Package: aztecdecoder
Oferujemy Państwu bibliotekę programistyczną i usługę Web API pozwalającą zdekodować dane z kodu AZTEC 2D zapisanego w dowodach rejestracyjnych pojazdów samochodowych.Nasza biblioteka dekoduje dane z dowodu rejestracyjnego, zapisane w postaci kodu obrazkowego tzw. kod aztec. Dekodowane są wszystkie wymienione pola w dowodzie rejestracyjnym pojazdu.
Package: aztfgen
Generate terraform config from deployed azure resources.Made a bunch of stuff in azure but wish you’d used terraform? Now’s your
chance to fix the mistakes of past-you.Work in progressThis is currently just a proof of concept type thing.RequirementsPython 3.5+The Azure 2.0 CLI (The python basedazone).In order to dodge API calling and avoid having to deal with azure
authentication, this project abdicates all responsibility for that
functionality by shelling out to the azure CLI.Installpip3installaztfgenUsageThe arguments are intended to match whatever you’ll also need to pass toterraform importto take care of getting the current state into
terraform.aztfgen <terraform-address> <resource-id>LicenseMIT
Package: aztools
aztoolsaztoolsis a collection of python tools that I have been using over the years in the analysis of X-ray data.The aztools packageTheaztoolsfolder contains the main python package, which contains three parts:lcurve.pydefines a light curve object (LCurve), which a holder of the observed time series, and associated functions that manipulate it.sim.pydefines theSimLCclass for simulating light curves.misc.pycontains many additional tools for doing different things. See the file for more detailsdata.pycontains many methods to process x-ray data from different missions and extract spectra and light curvesMost of the functionality inaztools.data, and someaztools.miscdepend on havingheasoftpyinstalled (the high energy software package from NASA Goddardhttps://heasarc.gsfc.nasa.gov/docs/software/heasoft/).ScriptsThesrc/scriptsfolder contains usefulpythonandbashscripts. If installingaztools >= 0.2, these scripts will be automatically installed when doingpip install.ThesimulationsfolderThis contains codes for checking the functionality of theaztoolspackage. It focuses on the statistics testing rather than the code tests.testsfolder:Simple unit tests for theaztoolspackageInstallationWithpip install aztoolsThe following python packages are needed to runaztools:numpyscipyastropyandheasoftpyif usingaztools.dataDocumentationSeefull documentation at readthedoc.