Saravanan666/pypi-org huggingface dataset:
Package: octopie
Python API client for GitHub APIv3## Installation### To Runpip install octopie### To DevelopNothing specific now## Usageimport octopieclient = octopie.GitHubAPI()try:result = client.search.users.get(q=’language:python’)except APIError as e:print eIn case of having variables for an API call. For example:GET /repos/:owner/:repo/collaboratorsThe octopie for above example will be:owner = ‘steven’
repo = ‘octopie’
result = api_client.repos.__getattr__(owner).__getattr__(repo).collaborators.get()## NotesOctpie is defaulted to 30 seconds connection timeout
Package: octoprint-dashboard
This application serves as web server for controlling multiple printers runningOctoPrint,
this application uses Flask framework.GitHubInstalationBe sure to havevirtualenvinstalledvirtualenvoctoprint_dashboard.octoprint_dashboard/bin/activateNow you should be in virtual enviroment, you should see(octoprint-dashboard)at start of command linepipinstalloctoprint_dashboardSet environment, flask runs application byFLASK_APPenvironment variableexportFLASK_APP=octoprint_dashboardexportFLASK_DB=absolute_path_to_db_files(filewillbecreated)If you choose ČVUT OAuth2, get OAuth client and secret key fromhere.
Create new project and app of typeWeb application, with redirect uri of your host name or IP.Run serverpython-mflaskrun--host=0.0.0.0[--port=]
Package: octoproxy
Proxy for Sidelaunching on GitHub EventsUsageproxy.py:import octoproxy

@octoproxy.events.register_event('pull_request', repository='*')
def do_something_on_pull_request(event_type, event_data):
    ...

 if __name__ == "__main__":
    octoproxy.app.run()$ python proxy.pyAuthorsoctoproxywas written byM.de Verteuil.
Package: octopulse-logger
Octopulse Python Logger PackageThis is a Python library to setup clean structured logs, for local development, and production with Google Cloud Logging.This logger uses these external packages:google-cloud-loggingstructlogcoloramapython-json-loggerInstallationUse the package managerpipto install the package.pipinstalloctopulse-loggerSetupTo be able to sent logs to GCP, you need to provide authentication credentials to your application code by setting the environment variableGOOGLE_APPLICATION_CREDENTIALS.Replace[PATH]with the file path of the JSON file that contains your service account key.export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"UsageYou have the possibility to add global arguments that will add contextual information to all logs.fromoctopulse_loggerimportlogger_setup# setup the loggerlogger_setup.setup('logger_name',setup_google_logging=True,setup_stdout_logging=True,logger_level='DEBUG',my_global_var="foobar")Setupsetup_google_loggingand/orsetup_stdout_loggingto send logs to Google Cloud Logging and/or std output.Then you can start to log withdefault loggerorstructlog:importloggingimportstructlogstructlog_logger=structlog.getLogger('logger_name')structlog_logger.warning('Warning !',value_a=1)# orbasic_logger=logging.getLogger('logger_name')basic_logger.error('An error occurred :(')ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: octopus-cli
OCT is a devops toolsetInstallation$ pip install -r requirements.txt

$ pip install setup.pyDevelopmentThis project includes a number of helpers in theMakefileto streamline common development tasks.Environment SetupThe following demonstrates setting up and working with a development environment:### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run octopus cli application

$ octopus --help


### run pytest / coverage

$ make testReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-uploadDeploymentsDockerIncluded is a basicDockerfilefor building and distributingoctopus,
and can be built with the includedmakehelper:$ make docker

$ docker run -it octopus --help
Package: octopusdpy
octopusdpyWIP Python package for interacting with Octopus Deploy's API. Currently this provides for read only access.UsageYou'll need two items:octopusdpy_url: The URL used to interact with your instance of octopusdpy.api_key: An API key used to authenticate with octopusdpy.importoctopusdpyoctopusdpy_api=octopusdpy.API(octopusdpy_url="XXX",api_key="YYY")When the octopusdpy API returns multiple values an iterator is used:A new item is returned each iteration. The iterator is exhausted once all items have been returned from the API.environments=api.get_environments():forenvironmentinenvironments:print(environment.Name)You can do simple gathering of information like:Get all the machines assigned to an environment and the roles of those machines.importoctopusdpyapi=octopusdpy.API("XXX","YYY")environment_pages=api.get_environments()forenvironmentsinenvironment_pages:forenvironmentinenvironments:machine_pages=environment.machinesformachinesinmachine_pages:formachineinmachines:print(environment.Name,machine.Name,machine.Roles)Clone a Library Variable Setsource_library_variable_set=api.get_library_variable_set('LibraryVariableSets-123')destination_library_variable_set=api.get_library_variable_set('LibraryVariableSets-456')source_variable_set=source_library_variable_set.variable_setdestination_variable_set=destination_library_variable_set.variable_setdestination_variable_set.Variables=source_variable_set.Variablesdestination_variable_set.save()Find all your long running currently executing tasksfromdatetimeimportdatetime,timezonenow=datetime.now(timezone.utc)tasks=api.get_tasks({'states':'executing'})fortaskintasks:time_delta=now-task.start_timeiftime_delta.total_seconds()>86400:hours,remainder=divmod(time_delta.total_seconds(),3600)minutes,seconds=divmod(remainder,60)print(task.Id,task.Description,f"{hours}hours,{minutes}minutes")Find all the variables in a Library Variable Set that are scoped to a roleimportoctopusdpyimportrenightly_re=re.compile(r'.*nightly.*',re.IGNORECASE)library_variable_set=api.get_library_variable_set('LibraryVariableSets-123')variable_set=library_variable_set.variable_setforvariableinvariable_set.Variables:roles=variable['Scope'].get('Role',[])forroleinroles:ifnightly_re.match(role):print(variable)
Package: octopus-energy
Octopus Energy Python API Client LibraryA Client library for accessing the Octopus Energy APIsWarning: The API is currently undergoing active development and should be considered unstable,
even volatile until it reaches version 1.0.0Installationoctopus-energycan be installed from PyPI using pip:pipinstalloctopus-energyCodeThe code is available in theoctopus-energy repository on GitHubFeaturesGet energy consumption from SMETS1 and SMETS2 electricity and gas meters.QuickstartYou can obtain your API token and meter information from theOctopus Energy Developer
Dashboard.REST Client WrapperThe REST client wrapper is a slim shim over the REST API that returns dictionaries as responses.Note that you should reference theOctopus Energy API documentationfor detailed notes on the API responsesand specifics around the request parameters.fromoctopus_energyimportOctopusEnergyRestClientapi_token="sk_live_your-token"mprn="your-mprn"serial_number="your-meter-serial-number"asyncwithOctopusEnergyRestClient(api_token)asclient:consumption=awaitclient.get_gas_consumption_v1(mprn,serial_number)
Package: octopus-energy-api
GitHub:github.com/euanacampbell/octopus_energy_apiPyPi:pypi.org/project/octopus-energy-apiInstallationpipinstalloctopus-energy-apiImportfromoctopus_energy_apiimportoe_apiUsageTwo ways of creating an API instance.Load access details in manually - Can be found using this fantastic tutorial by Guy Lipmanguylipman.medium.com.fromoctopus_energy_apiimportoe_apiaccount_number=""api_key=""mpan=""serial_number=""energy_api=oe_api(account_number,api_key,mpan=mpan,serial_number=serial_number)Get mpan and serial numbers from account number + api key. (currently only works for single property accounts)fromoctopus_energy_apiimportoe_apiapi_key="value"account_number="value"energy_api=oe_api(account_number,api_key)Account Detailsenergy_api.account_details()ConsumptionGetting all consumption data.today=datetime.date.today()# setting end date to todaystart=today.replace(day=1)# setting start date to the beginning of the monthenergy_api.consumption(start,today)Getting calculated consumption data - total, mean, and median.today=datetime.date.today()# setting end date to todaystart=today.replace(day=1)# setting start date to the beginning of the monthenergy_api.consumption_total(start,today)energy_api.consumption_mean(start,today)energy_api.consumption_median(start,today)Price of consumption.today=datetime.today()start=today-timedelta(days=300)electric_rate=2.73energy_api.consumption_cost(start,today,electric_rate)Productsenergy_api.products()Meter Informationenergy_api.meter_point()
Package: octopush
A Python library forOctopush API.Octopush offers a solution that was built in-house as a hosted service (SaaS, Software as a Service and an API)
to allow marketing departments of major groups, advertising agencies and IT companies to enjoy an infrastructure
that supports sending SMS messages to more than 200 countries.InstallationInstall via PyPIpipinstalloctopushOr addoctopushto your application’srequirements
fileand then runpipinstall-rrequirements.txtOr from source codegitclonehttps://github.com/bearburger/octopush-api-python.gitcdoctopush-api-pythonpythonsetup.pyinstallUsageConfig file (config.js)importoctopushimportdatetimeconfig={'user_login':'*******@*******','api_key':'****************','sms_recipients':['+33600000000'],'sms_text':'test text '+datetime.datetime.now().strftime("%Y-%m-%d%H:%M"),'sms_type':octopush.SMS_WORLD,'sms_sender':'onesender'}Balance checkfromoctopushimportSMSfromconfigimportconfigsms=SMS(config['user_login'],config['api_key'])result=sms.get_balance()forbalanceinresult.findall('balance'):print(balance.attrib['type'],balance.text)SMS sendingfromoctopushimportSMSfromconfigimportconfigimportuuidsms=SMS(config['user_login'],config['api_key'])sms.set_sms_text(config['sms_text'])sms.set_sms_recipients(config['sms_recipients'])sms.set_sms_type(config['sms_type'])sms.set_sms_sender(config['sms_sender'])sms.set_sms_request_id(str(uuid.uuid1()))result=sms.send()print(result)More examples can be found inSimple ExamplesandAdvanced Examples.RequirementsAPI key, register atoctopush.comto get onePython 2.6+, 3.5+python-requestsDocumentationThis library is completely documented usingPyDocand will show
autocompletions in all editors that supports it. Alternatively you can
build HTML version of documentation viapydoctool.API documentation available onOctopush API documentation portal.
Package: octopus-ml
Octopus-MLSet of handy ML and data tools - starting from data exploration, visualization, pre-processing, hyper parameter tuning, modeling and all the way to final ML model evaluationCheck out the octopus-ml demo notebook on ColabInstallationThe module can be easily installed with pip:> pip install octopus-mlThis module depends onScikit-learn,NumPy,Pandas,TQDM,lightGBMas defualt classifier. Optionally you can get also some nice visualisations if you haveSeaborninstalled.UsageThe module contains ML and Data related methods:fromoctopus_mlimportplot_imp,adjusted_classes,cv,cv_plot,roc_curve_plot,...Selected visualizations:
Package: octopus-parser
Octopus ParsersA collection of utility parsers.Pre-requisites:clicklark-parserQuickstartTo install octopus_parser package, run:pip install -e .List of Parsers:Infant Milk ParserParsing company/brand/subbrand/flavor/weight from a string.E.g.RAJASUSU/Bebelove 1 400 GrContributingTo contribute to the code base, please check lark-parser github and tutorials such as thejson-parseris a good place to start.Also some of the simple tutorials included with octopus_parser package, such as thecalculatorparser.
Package: octopuspy
octopuspyoctopuspyis a Python package that allows for the manipulation and processing of files generated by theOctopusDFT scientific program. This package was created with the intent of using with theeffmasspackage.Installationoctopuspycan be installed from PyPI:pip install octopuspyOr download the source code and install:git clone https://github.com/afatt/octopuspy.git
cd octopuspy
python3 setup.py installHow To UseRequiredOctopusfiles:bandstructure,info,results.out(typically out.log),eigenvalues, andtotal-dos-efermi.datAPIbandstructurefile includes: number of kpoints, number of bands, energies:band_data = Bandstructure(filepath='./GaAs_HSE06', name='GaAs_HSE06_04092021')infofile includes: direct lattice vector, reciprocal lattice vector, and number of ions:info_data = Info(filepath='./GaAs_HSE06')results.outfile includes: kpoint weights.results.outis obtained by redirecting the stdout to a new file named results.out when runningOctopus.Octopus > results.out. More explanation found on the Octopus wikihereresults_out = Results(filepath='./GaAs_HSE06', band_data.num_kpoints)ScriptsTheoctopuspypackage includes the scriptocto2vasp.pyfor converting thebandstructure,info,results.out,eigenvaluesfiles intoVASPPROCAR and OUTCAR files.⚠️The PROCAR and OUTCAR files generated are not true VASP files, they contain only the minimum data required to use in the effmass package.Copy yourOctopusfiles:bandstructure,info,results.out, andeigenvaluesinto a new folder anywhere inside the octopuspy package and run:cd scripts
python3 octo2vasp.py --name name_of_semiconductorTheocto2vasp.pyscript will write the PROCAR, OUTCAR, and a bandstructure_plot.png to thegen_vaspfolder inside the octopuspy package.Recommended Octopus SettingsGarbage in equals garbage out and testing this package produced a lot of garbage. Included with this package are Octopus settings that helped to achieve results matching the literatureanotated_example_inp. Theinpfile is also included with each set of/test_datafor reference. More information about input settings can be found on the Octopus wikihereTestingUnittests are included with this package and can be run using:python3 -m unittest discover
Package: octopus-python-client
octopus-python-clientPython script and GUI to manage Octopus deploy servers through the Octopus Restful APIsWhy octopus-python-client?ExampleGet startedPrerequisitesConfigurationInstallationRun octopus-python-clientContributionsWhy octopus-python-client?This project programmatically manage Octopus server through Restful APIs by command line and GUI.Managing Octopus server through Octopus UI does not fit all situations.In the market, we have only PowerShell and C# client tools to manage Octopus server through APIs. We want a client tool which is across the different platform/OS to manage Octopus server through APIs.A Octopus server/space migration tool is missing on the market. See the complaintshttps://github.com/OctopusDeploy/Issues/issues/5451https://help.octopus.com/t/how-do-i-transfer-or-clone-a-project-to-a-different-space-in-octopus-cloud/23333https://help.octopus.com/t/octopus-migration-import-api-does-not-honor-space-id/24287/4An Octopus client tool with GUI is not availableExamplestart Octopus python client GUIoctopus_python_client_guimacOS issuecommand line example: get all configurations and settings from all spaces athttps://samples.octopus.app/api/octopus_python_client -a=get_spacesGet startedThis section describes how to install and configure octopus-python-client.PrerequistesTo work with octopus-python-client, you need the following:Windows, macOS, Linuxrequests >= 2.20.0PyYAML>=5.1python >= 3.6ConfigurationAfter you've cloned octopus-python-client, configure it by following these steps before installationopen src/octopus_python_client/configurations/configuration.jsonchange the endpoint, folder name; user_name and password or api_key is needed, not bothInstallationTo install octopus-python-client, runpip install octopus-python-client --upgradeYou need python3.6 and higherTo uninstall octopus-python-client, runpip uninstall octopus-python-clientRun octopus-python-clientPlease check thewikifor more detailsPYPI Octopus-python-clientVideo instructions on YouTubeContributionsCode contributions and improvements by the community are welcomed!
See the LICENSE file for current open-source licensing and use information.Before we can accept pull requests from contributors, we require a signedContributor License Agreement (CLA).
Package: octopus-sensing
Octopus SensingOctopus Sensing is a tool to help you run scientific experiments that involve recording data synchronously from
multiple sources in human-computer interaction studies. You write steps of an experiment scenario, for example showing a stimulus and then a questionnaire. The tool takes care of the rest.It can collect data from multiple devices such as OpenBCI EEG headset, Shimmer sensor (GSR and PPG),
Video and Audio and so forth simultaneously. Data collection can be started and stopped synchronously across all devices.
Collected data will be tagged with the timestamp of the start and stop of the experiment, the ID of
the experiment, etc.The aim is to make the scripting interface so simple that people with minimum or no software
development skills can define experiment scenarios with no effort.
Also, this tool can be used as the base structure for creating real-time data processing systems like systems with capabilities of recognizing emotions, stress, cognitive load, or analyzing human behaviors.To see the full documentation visit theOctopus Sensing website.When using the package in your research, please cite:Saffaryazdi, N., Gharibnavaz, A., & Billinghurst, M. (2022). Octopus Sensing: A Python library for human behavior studies. Journal of Open Source Software, 7(71), 4045.Main featuresControls data recording from multiple sources using a simple unified interfaceTags an event on collected data, such as the start of an experiment, and events during the experiment, etc.Can show stimuli (images and videos) and questionnairesMonitoring interface that visualizes collected data in real-timeOffline visualization of data from multiple sources simultanouslyCopyrightCopyright © 2020-2022 Nastaran Saffaryazdi, Aidin GharibnavazThis 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 (at your option) any later version.SeeLicense filefor full terms.
Package: octopus-sensing-monitoring
Octopus Sensing MonitoringA web-based real-time monitoring forOctopus Sensing. You can
monitor your data from any machine in the same network.Octopus Sensing monitoringis
a separated project and can be installed for Octopus Sensing if we need monitoring features.To see the full documentation go toOtopus Sensingwebsite.CopyrightCopyright © 2020-2023Aidin GharibnavazThis 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 (at your option) any later version.SeeLicense filefor full terms.
Package: octopus-sensing-processing
Octopus Sensing ProcessingOctopus Sensing Processing is a real-time data processing forOctopus Sensing.
It can be used for processing data in real-time. You can define your favorite processor and process your data in real-time and publish the processing result. For example if you define an emotion recognition processor, Octopus Sensing Processing can prepare the input of your processor in real-time and publish your created prediction by streaming them as json data or other applications could send a request for receiving them when they needed the processing result.Octopus Sensing Processingis
a separated project and can be installed if we need to visualize data.
It can be used for displaying recorded data with
the same format as we recorded through Octopus Sensing.To see the full documentation go toOtopus Sensingwebsite.CopyrightCopyright © 2022 [Nastaran Saffaryazdi]This 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 (at your option) any later version.SeeLicense filefor full terms.
Package: octopus-sensing-visualizer
Octopus Sensing VisualizerOctopus Sensing Visualizer is a web-based real-time visualizer forOctopus Sensing.
It can be used for offline data visualization. You can visualize the recorded multimodal data as the raw data. Also, it can extract
some essential features or components of data and display them in a single window. Using this tool, you can observe the effect of an event on recorded data simultaneously.Octopus Sensing Visualizeris
a separated project and can be installed if we need to visualize data.
It can be used for displaying recorded data with
the same format as we recorded through Octopus Sensing.To see the full documentation go toOtopus Sensingwebsite.CopyrightCopyright © 2021-2024 [Nastaran Saffaryazdi]This 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 (at your option) any later version.SeeLicense filefor full terms.
Package: octopusserver
OctopusserverHow to installPypipipinstalloctopusserverPoetrypoetryaddoctopusserverGetting StartedfromoctopusserverimportOctopusfromoctopusserverimportRequestfromoctopusserverimportResponsePORT=3000app=Octopus(PORT)defhello_world(req:Request,res:Response):res.send("Hello, World!")app.router.get("/",[hello_world])app.listen(lambda:print(f"Server listen on http://localhost:{PORT}/"))How to register your application's routesfromoctopusserverimportOctopusPORT=3000app=Octopus(PORT)router=app.routerrouter.get("path/to/get/route/",[trigger_get_route])router.post("path/to/post/route/",[trigger_post_route])For the futureRecive filesHandling post and get dataHow did I do this?HereReferencesExpressJsHTTP request methodsCommon MIME typesHTTP headersHTTP Server: Everything you need to know to Build a simple HTTP server from scratchWriting an HTTP server from scratchQueueHash table
Package: octopussh
=========octopussh=========- 170 lines of Python 3 + Qt 5 App for modern Admins, single-file, No Dependencies, easy use.- Inspired by Dead KSSH from KDE3 times ( http://kssh.sourceforge.net/#screenshots ).- Generates Executable Bash scripts for Automated SSH so you dont need the App on other PCs.- Tested OK on MS Windows 7 O.S. (you can not run SSH and Bash there but you can generate Scripts)... image:: https://raw.githubusercontent.com/juancarlospaco/octopussh/master/temp.jpgTry it !:=========::wget -O - https://raw.githubusercontent.com/juancarlospaco/octopussh/master/octopussh | python3Install permanently on the system:==================================::sudo apt-get install sshpass python3-pyqt5  # OR  sudo yum install python3-qt5 sshpass  OR  sudo pacman -S python-pyqt5 sshpasssudo pip3 install octopusshoctopusshRequisites:===========- `Python 3.x <https://www.python.org "Python Homepage">`_- `PyQt 5.x <http://www.riverbankcomputing.co.uk/software/pyqt/download5>`_ : PyQt5 Homepage- SSHPass (Linux package)Donate, Charityware :=====================- `Charityware <https://en.wikipedia.org/wiki/Donationware>`_ is a licensing model that supplies fully operational unrestricted software to the user and requests an optional donation be paid to a third-party beneficiary non-profit. The amount of donation may be left to the discretion of the user. Its GPL-compatible and Enterprise ready.- If you want to Donate please `click here <http://www.icrc.org/eng/donations/index.jsp>`_ or `click here <http://www.atheistalliance.org/support-aai/donate>`_ or `click here <http://www.msf.org/donate>`_ or `click here <http://richarddawkins.net/>`_ or `click here <http://www.supportunicef.org/>`_ or `click here <http://www.amnesty.org/en/donate>`_