Saravanan666/pypi-org huggingface dataset:
Package: azcam-console
AzCam Consoleazcam-consoleis a console application for theazcamacquisition and analysis package. It usually runs in an IPython window and is used to both acquire and analyze data in a python scripting environment.DocumentationSeehttps://azcam.readthedocs.io/.Installationpip install azcam-consoleOr download the latest version from from github:https://github.com/mplesser/azcam-console.git.You may need to installpython3-tkon Linux systems [sudo apt-get install python3-tk].Configuration and startupAn example code snippet to start anazcamconsoleprocess is:ipython -m azcam_itl.console --profile azcamconsole -i -- -system DESIand then in the IPython window:instrument.set_wavelength(450)wavelength=instrument.get_wavelength()print(f"Current wavelength is{wavelength}")exposure.expose(2.,'flat',"a 450 nm flat field image")
Package: azcam-expstatus
azcam-expstatusazcam-expstatusis anazcamapplication which displays exposure status in a GUI window. The GUI is built with Qt using PySide6.Installationpip install azcam-expstatusOr download from github:https://github.com/mplesser/azcam-expstatus.git.Usage:There are two command line options to specify the connection toazcamserver.-hosthostname(default "localhost")-portportnumber(default 2402)
Package: azcam-imageserver
azcam-imageserverazcam-imageserveris anazcamapplication which creates a process to receive an image from a remote system running azcam.Installationpip install azcam-imageserverOr download from github:https://github.com/mplesser/azcam-imageserver.git.Usage ExamplesCommand line options are:-portportnumber(default 6543): set socket port for listening-b: set beep ON when an image is received-v: set verbose mode ON-g: set guide mode ONimageserver
or
imageserver -p 1234 -b -v -g
or
python -m azcam_imageserver.imageserver -p 1234 -b -v
Package: azcam-lbtguiders
azcam-lbtguidersPurposeThis repository contains theazcam-lbtguidersazcamenvironment.  It contains the code and data files for the LBTO lbtguiders camera systems.InstallationDownload the code (usually into theazcamroot folder such as/azcam) and install.cd/azcam
gitclonehttps://github.com/mplesser/azcam-lbtguiderscdazcam-lbtguiders
pipinstall-e.
Package: azcam-observe
azcam-observeazcam-observeis anazcamextension for running observing scripts. It can be used
with a Qt-based GUI or with a command line interface.Theobserve.observe()command executed from a console window uses the CLI interface. Theobservecommand executed from a terminal or icon starts the Qt GUI.The Qt GUI uses thePySide6package.Installationpip install azcam-observeOr download from github:https://github.com/mplesser/azcam-observe.git.Usageobserveto start the GUI from a terminal.  A new window will open.Useobserve.observe()from an azcam console window to run the CLI version.GUI example after loading script file.After starting the GUI, Press "Select Script" to find a script to load on disk.
Then press "Load Script" to populate the table.  The excute, press Run.
You may Pause a script after the current command by pressing the Pause/Resume button.
Then press the same button to resume the script.  The "Abort Script" button will
abort the script as soon as possible.If you have troubles, close the console window and start again.GUI Real-time UpdatesYou may change a cell in the table to update values while a script is running.  Click in the cell, make the change and press "Enter" (or click elsewhere).Non-GUI UseIt is still possible to runobservewithout the GUI, although this mode is depricated.Examplesobserve.observe('/azcam/systems/90prime/ObservingScripts/bass.txt',1)observe.move_telescope_during_readout=1ParametersParameters may be changed from the command line as:observe.move_telescope_during_readout=1observe.verbose=1Script CommandsAlways use double quotes (") when needed
Comment lines start with # or !
Status integers are start of a script line are ignored or incrementedObserve scripts commands:
obs        ExposureTime ImageType Title NumberExposures Filter RA DEC Epoch
stepfocus  RelativeNumberSteps
steptel    RA_ArcSecs Dec_ArcSecs
movetel    RA Dec Epoch
movefilter FilterName
delay      NumberSecs
test       ExposureTime imagetype Title NumberExposures Filter RA DEC Epoch
print      "hi there"
prompt     "press any key to continue..."
quit       quit script

Example of a script:
obs 10.5 object "M31 field F" 1 u 00:36:00 40:30:00 2000.0 
obs 2.3 dark "a test dark" 2 u
stepfocus 50
delay 3.5
stepfocus -50
steptel 12.34 12.34
movetel 112940.40 +310030.0 2000.0
Package: azcam-server
AzCam Serverazcam-serveris the main server application for theazcamacquisition and analysis package. It usually runs in an IPython window and is mainly used to control data acquistion.DocumentationSeehttps://azcam.readthedocs.io/.Installationpip install azcam-serverOr download the latest version from from github:https://github.com/mplesser/azcam-server.git.Configuration and startupAn example code snippet to start anazcamserverprocess is:ipython -m azcam_server.server_mock --profile azcamserver  -iand then in the IPython window:instrument.set_wavelength(450)wavelength=instrument.get_wavelength()print(f"Current wavelength is{wavelength}")exposure.expose(2.,'flat',"a 450 nm flat field image")Observe tool script exampleImport observe for observing command use:from azcam_server.tools.observe.observe import Observe# this is a single line comment python styleThis block shows some direct commandsobserve = Observe()
observe.test(et=1.0,object="flat", filter="400")
observe.comment("a different new comment 123")
observe.delay(1)
observe.obs(et=2.0,object="zero", filter="400", dec="12:00:00.23", ra="-23:34:2.1")This block shows an example of commands using python flow controlalt_start = 0.0
step_size = 0.01
num_steps = 100
for count in range(num_steps):
    altitude = alt_start + count*step_size
    observe.steptel(altitude=altitude)
    print(f"On loop {count} altitude is {altitude}")
Package: azcam-testers
AzCam Testersazcam-testersis a suite for the acquition and analysis of image sensor data for sensor characterization.DocumentationSeehttps://azcam.readthedocs.io/.Installationpip install azcam-testersOr download the latest version from from github:https://github.com/mplesser/azcam-testers.git.TestersThetestertools are for image sensor characterization and are available when this package is installed.Usage Example:from azcam_testers.tools.bias import bias
bias.acquire()
bias.analyze()Tester BaseTesters base classDetector Characterization BaseDetChar base classBias ImagesBias classDark SignalDark classDefectsDefects classDetector CalibrationDetCal classExtended Pixel Edge Response Charge Transfer EfficiencyEper classFe55 X-Ray Gain, Noise, and Charge Transfer EfficiencyFe55 classGainGain classLinearityLinearity classMetrologyMetrology classPocket PumpingPocketPump classPhoto-Response Non-UniformityPRNU classPhoton Transfer CurvePTC classQuantum EfficiencyQE classRamp ImagesRamp classSuperflat ImagesSuperflat classReport CommandsThe report tool is helpful when generating reports.Usage Example:from azcam.tools.report import Report
report=Report()
report.make_rstfile("rstfile.rst")
Package: azcaptchaapi
<<<<<<< HEADAZCaptcha.com Python APIThis library implements a simple to use wrapper around the AZCaptcha.com API.InstallationFrom PyPipip install azcaptchaapiFrom sourcegit clone https://github.com/azcaptcha/azcaptchaapi.git
cd azcaptchaapi
python setup.py installExamplesInitializing the APIfromazcaptchaapiimportAZCaptchaApiapi=AZCaptchaApi('<API KEY>')Solving a captcha blockingwithopen('/my/captcha/path.png','rb')ascaptcha_file:captcha=api.solve(captcha_file)print(captcha.await_result())Waits until the captcha is either solved or an error occurred (indicated through an exception).Solve captcha "non-blocking"captcha=api.solve(captcha_file)print(captcha.try_get_result())If already available, prints the captcha text, elseNone. Please note that while this code doesn't repeatedly ask the API if the captcha was solved, the HTTP request is still sent synchronously, so this method isn'treallynon-blocking.Reporting a bad captcharesult=captcha.await_result()ifuse_captcha_code(result)=='failed':captcha.report_bad()Query account balanceprint(api.get_balance())CompatibiltyThis library was successfully tested on Python 2.7 and 3.5. Python versions < 2.7 arenotofficially supported.LicenseThis code is released under MIT license. Dependencies are under their respective licenses.This project isnotaffiliated with, maintained, authorized, endorsed or sponsored by AZCaptcha.com or any of its affiliates.azcaptchaapipython api upload image captcha to azcaptcha.com
Package: azcat
azcat is an alternative tocat(1); specialized for printing. It prints files with syntax
highlighting and formatting.Installation$pip3installazcat# use Python3Usage$az--help# manual$az/usr/local/bin/az$azREADME.md$az-tmain# source code reading with GNU global(1)$az-Ftimetable.csv# pretty printing$az-Pstory.md# read with less(1)$curlexample.com/api/foo.json|az-fjsonLicenseazcat is a public domain software.ContributorsSeiya Nuta: AuthorAlessandro Pisa: PR#3Simeon Visser: PR#7Marc Abramowitz: PR#12ContributingPlease send a Pull Request on GitHub. I will be very happy whatever the PR does :)
Package: azcausal
Causal inference is an important component of the experiment evaluation. We highly recommend to have a look at the open-source
book:Causal Inference for The Brave and TrueCurrently, azcausal provides two well-known and widely used causal inference methods: Difference-in-Difference (DID) and
Synthetic Difference-in-Difference (SDID). Moreover, error estimates via Placebo, Boostrap, or JackKnife are available.InstallationTo install the current release, please execute:pipinstallgit+https://github.com/amazon-science/azcausal.gitUsagefromazcausal.core.errorimportJackKnifefromazcausal.core.panelimportCausalPanelfromazcausal.dataimportCaliforniaProp99fromazcausal.estimators.panel.sdidimportSDIDfromazcausal.utilimportto_panels# load an example data set with the columns Year, State, PacksPerCapita, treated.df=CaliforniaProp99().df()# create the panel data from the frame and define the causal typesdata=to_panels(df,'Year','State',['PacksPerCapita','treated'])ctypes=dict(outcome='PacksPerCapita',time='Year',unit='State',intervention='treated')# initialize the panelpanel=CausalPanel(data).setup(**ctypes)# initialize an estimator object, here synthetic difference in difference (sdid)estimator=SDID()# run the estimatorresult=estimator.fit(panel)# run the error validation methodestimator.error(result,JackKnife())# plot the resultsestimator.plot(result)# print out information about the estimateprint(result.summary(title="CaliforniaProp99"))╭──────────────────────────────────────────────────────────────────────────────╮|CaliforniaProp99|├──────────────────────────────────────────────────────────────────────────────┤|Panel||TimePeriods:31(19/12)total(pre/post)||Units:39(38/1)total(contr/treat)|├──────────────────────────────────────────────────────────────────────────────┤|ATT||Effect(±SE):-15.60(±2.9161)||ConfidenceInterval(95%):[-21.32,-9.8884](-)||Observed:60.35||CounterFactual:75.95|├──────────────────────────────────────────────────────────────────────────────┤|Percentage||Effect(±SE):-20.54(±3.8393)||ConfidenceInterval(95%):[-28.07,-13.02](-)||Observed:79.46||CounterFactual:100.00|├──────────────────────────────────────────────────────────────────────────────┤|Cumulative||Effect(±SE):-187.25(±34.99)||ConfidenceInterval(95%):[-255.83,-118.66](-)||Observed:724.20||CounterFactual:911.45|╰──────────────────────────────────────────────────────────────────────────────╯EstimatorsDifference-in-Difference (DID):Simple implementation of the well-known Difference-in-Difference estimator.Synthetic Difference-in-Difference (SDID):Arkhangelsky, Dmitry Athey, Susan Hirshberg, David A. Imbens, Guido W. Wager, Stefan Synthetic Difference-in-Differences American Economic Review 111 12 4088-4118 2021 10.1257/aer.20190159https://www.aeaweb.org/articles?id=10.1257/aer.20190159. Implementation based onhttps://synth-inference.github.io/synthdid/ContactFeel free to contact me if you have any questions:Julian Blank(blankjul [at] amazon.com)Amazon.comApplied Scientist, Amazon410 Terry Ave N, Seattle 98109, WA.
Package: az.cli
Az.CliPythonazure.cli.coreinterface to executeazAzure CLIcommands in python.The method returns a named tupleAzResult = namedtuple('AzResult', ['exit_code', 'result_dict', 'log']). Theerror_codewhere 0 == success. Aresult_dictcontaining successfull return as a python dictionary. On failure (error_code> 0) a log message insidelogas a string.UsageInstall the packagepipinstallaz.cliLogin usingaz loginorsign in using a service principal.Under the hood the package uses the~/.azurefolder to persist and retrieve config.Examplefromaz.cliimportaz# AzResult = namedtuple('AzResult', ['exit_code', 'result_dict', 'log'])exit_code,result_dict,logs=az("group show -n test")# On 0 (SUCCESS) print result_dict, otherwise get info from `logs`ifexit_code==0:print(result_dict)else:print(logs)InteractiveYou can run the command interactively to traverse the dictionary.
Navigate tosrcand runpython3.
Import the libraryfrom az.cli import azand run any command by executing the methodaz("<my command>")to invoke Azure CLI.# cd src# python3fromaz.cliimportaz# on Success, the `error_code` is 0 and the result_dict contains the outputaz("group list")# list return tuple (exit_code, result_dict, log)az("group list")[0]# 0az("group list")[1]# print result_dictaz("group list")[1][0]['id']# enumerate the id of the first element in dictionary# On Error, the `error_code` will be != 1 and the log is presentaz("group show -n does-not-exsist")# list return tuple (exit_code, result_dict, log)az("group show -n does-not-exsist")[0]# 3az("group show -n does-not-exsist")[2]# print the logBuildLocal Developmentinstallpython3installREQUIREMENTS.txtusingmake initI recommend to usePython3 virtual environments.# sets up environmentmakeenv# installs requirementsmakeinitDockerTo build the image run the following in order.# Runs docker build & createmakecreateRunAfter the container is build & created you can run theaz.cliinteractivly.# Run docker runmakerun
Package: azcmd
azcmdA simplified azure command line tool for humans. Uses Managed Identity as default for login. (You must set the default
tenant if you have multiple tenants in your account.)Storage and ContainersListing Storage Accountsaz-blob ls  - lists all storage accountsaz-blob ls  <storage_account> - lists all containers in a storage account and all blobs in a containeraz-blob ls <storage_account>/ - lists all blobs in a containerDownloading and Uploading BlobsGetaz-blob get storage_account/container/blob - downloads a blob to the current directory. If the blob has subdirectories, they will be created.az-blob get --latest storage_account/container/blob - downloads the latest version of a blob to the current directory.Putaz-blob put filename storage_account/container/blob - uploads a file to a blob. If the blob has subdirectories, they will be created.
Package: azdevops-cli
AzDevOps CLII.Continuous integrationBranchBuildQuality GatemaindevelopII.IntroductionThis project is used to update all selected repositories in one single script define by aconfig.ymlfile.
The python script will automatically clone the repositories, modify it and propose a pull request on each repository inside Azure DevOps.III. Getting StartedCreate a dev environment for the project:python3-mvenv.venvActivate the dev environment for Linux:source.venv/bin/activateActivate the dev environment for Windows:.\.venv\Scripts\activateInstall python packages for the project:pipinstall-rrequirements.txtSave the packages used in the project into therequirements.txt:pipfreeze>requirements.txtExport credentials as environment variable to be able to run the API calls:export AZDEVOPS_ORGANIZATION_URL='<your_azure_devops_organisation_url>'
export AZDEVOPS_PAT_TOKEN='<your_pat>'IV - Models generationTransform theconfig.ymlinto json with this website for instance:https://jsonformatter.org/yaml-to-jsonThen copy the generated json and paste it inside this other website:https://app.quicktype.io/Choose default settings with the Python language.V - Install locally for testing onlypython3 -m pip install --editable .VI - Run the CLIazdevops repo-updater run --configuration-file <path-to>/config.yml -o <output-path>azdevops release-manager changelog -p <your-project-path> -o <output-path>VII - Unit testsRun unit tests:python3 -m unittestorcoverage run -m unittest discoverGenerate covrage locallycoverage reportGenerate a changelogazdevops release-manager changelog (-p <project-path>) (-o <output>)Using Docker:dockerrun-v$(Build.SourcesDirectory):/app\-taichehda/azdevops-cli:latest\release-managerchangelog\(-p<project-path>)\(-o<output>)\Generate a summaryazdevops release-manager summary -pn <project-name> (-r <regex>)azdevops release-manager summary -pn 'MyProject' -r '^digital(.*)_apply'Using Docker:dockerrun-v$(Build.SourcesDirectory):/app\-eAZDEVOPS_ORGANIZATION_URL=$AZDEVOPS_ORGANIZATION_URL\-eAZDEVOPS_PAT_TOKEN=$AZDEVOPS_PAT_TOKEN\-taichehda/azdevops-cli:latest\release-managersummary\-r'^digital(.*)_apply'\-pnMyProject\(-p<project-path>)\(-o<output>)\Generate manifestazdevops release-manager manifest -an <application-name>Using Docker on Azure DevOps:dockerrun-v$(Build.SourcesDirectory):/app\-eBUILD_DEFINITIONNAME=$BUILD_DEFINITIONNAME\-eBUILD_BUILDID=$BUILD_BUILDID\-eBUILD_BUILDNUMBER=$BUILD_BUILDNUMBER\-eBUILD_SOURCEBRANCHNAME=$BUILD_SOURCEBRANCHNAME\-eBUILD_REPOSITORY_NAME=$BUILD_REPOSITORY_NAME\-taichehda/azdevops-cli:latest\release-managermanifest\-anmy_app(-p<project-path>)\(-o<output>)\
Package: azdiff
AzDiff v0.1What is AzDiff?Have you been trying to manually compare two Azure resources, jumping between Azure portal tabs dozens of times?Have you encountred a confusing situation when a solution is working fine in environment A but failing in environment B ?Well, say no more, I have been there, so I created this tool that will help you compare the configuration between two Azure resources (Function apps, app services, Virtual Machines..) and will return the properties of each resources and will highlight the differences.Usage exampleInstall the packagepipinstallazdiffLogin usingaz loginorsign in using a service principal.exportSUBSCRIPTION_ID={SUBSCRIPTION_ID}azdiffappservice--resource_name1={resource_name1}--rg_name1={rg_name1}--resource_name2={resource_name2}--rg_name2={rg_name2}Result:notice the differences are marked in red with [?]Available commands (--help):Usage:azdiff[OPTIONS]COMMAND[ARGS]...Options:--debug/--no-debugEnabledebugmode--helpShowthismessageandexit.Commands:appservicefunctionappserviceplanvmBuildLocal Developmentinstallpython3(tested with Python 3.8.10)installREQUIREMENTS.txtusingmake initI recommend to usePython3 virtual environments.# install wheelpipinstallwheel# build python wheel packagepython3setup.pybdist_wheel--version{0.b123}# install the wheel created from the previous steppipinstall{package_path}.whl# test runazdiffContributeContributions are welcome:Please pick any of the features in the backloghere, or contact me to align if you have other ideas,Please make your PR against the dev branch,Please make sure that your PR includes functional tests with screenshots (as I still don't have a proper unit tests, or feel free to implement them :) )Thank you!
Package: azdo-cli
azdo-cliA command-line interface client for Azure DevOpsRequirementsPython 3.xInstallationpip install azdo-cliUsageInitialize your settings.ini file by typing in your terminal:> azdocli initWhen running the CLI application, make sure that you have this file in the working directory.To list the available commands:> azdocli --helpSample:> azdocli projects getall

{
  'count': 2,
  'values': [
    {
      'id': '1234-5678-9101',
      'name': 'sample_project_01'
    },
    {
      'id': '2468-1012-1416',
      'name': 'sample_project_02'
    }
  ]
}Available Commandsprojects getall 
  // lists all projects in the organization
projects get --projectname project_name 
  // gets the specific project

teams getall 
  // lists all teams in the organization
teams get --projectname project_name 
  // lists all teams in the project
teams get --projectname project_name --teamid team_id
  // gets the specific teamRoadmaplist_runs(project_id, pipeline_id) -> pipelineruns get
  // lists the runs of the project

get_service_endpoints(project_id) -> svc get
  // list the service endpoints of the project

get_service_endpoint_details(project_id, endpoint_id) -> svc getone
  // gets the specific endpoint

list_pipelines(project_id) -> pipelines get
  // list the pipelines of the project

get_pipeline(project_id, pipeline_id) -> pipelines getone
  // gets the specific pipeline



get_run(project_id, pipeline_id, run_id) -> pipelineruns getone
  // gets the specific run

get_accounts(owner_id=None, member_id=None)

get_build(project_id, build_id) -> builds getone

get_builds(project_id) -> builds get
Package: azdummy
AzDummyA PythonTyper-basedCLI tool to generate fake data for Azure AD. AzDummy also usesRichfor some dope console output.InstallationThe recommended method of installation is withpipx.pipx install azdummyHowever, you can install the normal way from PyPi withpython3 -m pip install azdummy.UsageOn first run, user will be prompted to create a config file. Location of this config file depends on OS.Note: There are some environment variables included that are currently not used.Windows:C:\Users\<user>\AppData\Roaming\azdummy\settings.envLinux/Mac OS:~/.azdummy/settings.envCurrently used variables:AZD_LOCALE: (str) Shortcode for supported localesAZD_TENANT_FQDN: (str) One of the domains in the tenant (Usually<domain>.onmicrosoft.comformat)AZD_NUM_USERS: (int) Number of users to generateAZD_BLOCK_LOGIN: (bool) Block generated users from logging inAZD_GROUP_NAMES: (list) List of groups to add users toNOTE: Due to restrictions on the userPrincipalName field, all names are generated in English. However, AzDummy supports other locale-specific data generation (such as addresses).Supported Locales:CZECH = "cs"DANISH = "da"GERMAN = "de"AUSTRIAN_GERMAN = "de-at"SWISS_GERMAN = "de-ch"GREEK = "el"ENGLISH = "en"AUSTRALIAN_ENGLISH = "en-au"CANADIAN_ENGLISH = "en-ca"BRITISH_ENGLISH = "en-gb"SPANISH = "es"MEXICAN_SPANISH = "es-mx"ESTONIAN = "et"FARSI = "fa"FINNISH = "fi"FRENCH = "fr"HUNGARIAN = "hu"ICELANDIC = "is"ITALIAN = "it"JAPANESE = "ja"KAZAKH = "kk"KOREAN = "ko"DUTCH = "nl"BELGIUM_DUTCH = "nl-be"NORWEGIAN = "no"POLISH = "pl"PORTUGUESE = "pt"BRAZILIAN_PORTUGUESE = "pt-br"RUSSIAN = "ru"SLOVAK = "sk"SWEDISH = "sv"TURKISH = "tr"UKRAINIAN = "uk"CHINESE = "zh"CommandsCommands are availablehere. You can generally use--help/-hfor any command or subcommand for more information. With default settings, the following command will generate 500 users forazdummy.onmicrosoft.com(non-existant tenant).azdummy gen usersWhat do I do with the output?The default output provides two files for user:output_create.csvandoutput_create.csv. These files can be used with the Bulk Create and Bulk Delete options in Azure Portal in the Azure AD Users menu. Additionally, one file is created for each defined group with the members of those groups. These files can be used with the Import Members and Remove Members options in Azure Portal in the Azure AD Group menu.
Package: azerbaijani
azerbaijaniCheck if your text is in Azerbaijani.fromazerbaijaniimportis_azerbaijaniinput_text="""Bakı şəhərində və Abşeron yarımadasında insanlar çox qədim zamanlardan məskunlaşmış və burada yaşayış məntəqələri yaratmışlar.[7] Buna səbəb Bakı şəhərinin fiziki-coğrafi şəraiti şimaldan-cənuba, qərbdən-şərqə gedən miqrasiya və ticarət yollarının kəsişməsi mərkəzində yerləşməsi, iqlim şəraiti və ən qədim zamanlardan yer üzünə çıxan "Nafta" adlanan yanacaq və enerji sərvəti olmuşdur.[7] Abşeron ərazisində tapılmış arxeoloji materiallar Bakının qədim yaşayış məskəni olduğunu sübut edir.[7] Pirallahı, Zığ gölü ətrafı, Şüvəlan, Mərdəkan, Əmircan və s. yerlərdə e. ə. III-I-ci minilliklərə aid arxeoloji materiallar tapılmışdır.[7] Bakının salındığı tarix dəqiq məlum deyildir."""is_azerbaijani(input_text)# True