Saravanan666/pypi-org huggingface dataset:
Package: opps-polls
opps.polls=========Application Poll for OppsOpps----Version: 0.1.xFeatures---------* Custom urls* Custom templates* Single or Multiple choice pool* Results page* Hide/Show results page* Block multiple votes by cookie* End date and Start date* Allow images for each choice* Set min and max allowed choices for votingRequirements-----------Django>1.5OppsInstalation----------``python setup.py install``or``pip install opps-polls``Configuration-------------**App**Include opps.polls on your django settings```pythonINSTALLED_APPS += ('opps.polls')```**URL**Include in your project urls.py before the opps entry```pythonurlpatterns = patterns('',......url(r'^poll/', include('opps.polls.urls', namespace='polls', app_name='polls')),...url(r'^', include('opps.urls')),......)```Create the tables```pythonpython manage.py syncdb```You should see:```...Creating table polls_pollCreating table polls_pollpostCreating table polls_choice...```Now **opps.polls** is available on your Django admin and you can access the url *http://..../poll/*Application URLs----------------*    List all polls/poll/*    List all polls by channel/poll/channel/< channel-slug >*    Poll voting page/poll/< poll-slug >*    Poll results page/poll/< poll-slug >/results (you can use any word here i.e: /poll/< poll-slug >/resultados)Application Templates---------------For any template the context has the following objects:* poll (The poll)* voted (The choices when the user has voted)* error (A string message when there is some error)**Default template files*** polls/pool_list.html (List all polls)* polls/pool_detail.html (Show details and voting form)* polls/pool_voted.html (Showed after the user has voted)* polls/pool_result.html (Results percentage)* polls/pool_closed.html (Showed when poll is not opened for voting or results)**Custom template files**polls will try to find the most specific template to render.You can choose some ways to force a custom templateIn order of precedence:1. Set **template_path** in each poll object2. Create a **polls/< channel-slug >/< poll-slug >_<sufix>.html**3. Create a **polls/< channel-slug >_< sufix >.html**4. Create a **polls/< poll-slug >_< sufix >.html**5. Create a **polls/poll_< sufix >.html**Available sufix are: list, detail, voted, result, closedContacts========The place to create issues is `polls github issues <https://github.com/opps/opps.poll/issues>`_. The more information you send about an issue, the greater the chance it will get fixed fast.If you are not sure about something, have a doubt or feedback, or just want to ask for a feature, feel free to join `our mailing list <http://groups.google.com/group/opps-developers>`_, or, if you're on FreeNode (IRC), you can join the chat #opps .License=======Copyright 2013 `YACOWS <http://yacows.com.br/>`_. and other contributorsLicensed under the `MIT License <http://www.oppsproject.org/en/latest/#license>`_
Package: op.py
oppy (op.py)oppy is the wrapper for use on the osu! v2 api.
Version 1.0.0InstallationTo install please use pip to install oppypipinstalloppyUsage - User Dataimportoppyimportasyncioclient=oppy.Client()user=client.user_dataasyncdefmain():data=awaituser.user(user="peppy",token="a long string")#makes the api request using oppy.Client.user_data.user()print(data.pp,data.id,data.username,data.global_rank,)# returns the users raw pp, id, name and global rankasyncio.run(main())Usage - Beatmap Data | Lookupimportoppyimportasyncioclient=oppy.Client()beatmap=client.beatmap_dataasyncdefmain():data=awaitbeatmap.lookup(beatmap="big black",token="a long string")#makes the api request using oppy.Client.beatmap_data.lookup()print(data.id,data.artist,data.mapper,)# returns the beatmap idasyncio.run(main())Usage - Tokenimportoppyimportasyncioclient=oppy.Client()tk=client.gen_tokenasyncdefmain():tkn=awaittk.gen(client_secret="string",client_id=0)# makes request using oppy.Client.gen_token.gen()print(tkn)asyncio.run(main())SupportFeel free to email me atwayde@alphaxdev.xyzor contact me on discord support serverhttps://discord.gg/DAPgevH9EX
Package: opqua
Opqua is an epidemiological modeling framework for population genetics and evolution. Opqua stochastically simulates  pathogens with specific, evolving genotypes spread through  populations of hosts that can have specific immune profiles.Opqua is a useful tool to test out scenarios, explore hypotheses, and make predictions about the relationship between pathogen evolution and epidemiology.Visit github.com/pablocarderam/opqua for more information.
Package: opredflag
A package written in python with useful scripts forOperation Red Flag.Key FeaturesIntuitive Command-Line Interface (CLI)Easy-to-use Pythonic designCategorical design with dedicated sub-modules for different usagesInstallingPython 3.10 or higher is requiredTo install the library, run the following command:# Linux/macOSpython3-mpipinstall-Uopredflag# Windowspy-3-mpipinstall-UopredflagTo install the development version, do the following:$gitclonehttps://github.com/BobDotCom/py-opredflag$cdpycord$python3-mpipinstall-U.or if you do not want to clone the repository:# Linux/macOSpython3-mpipinstallgit+https://github.com/BobDotCom/py-opredflag# Windowspy-3-mpipinstallgit+https://github.com/BobDotCom/py-opredflagUseful LinksDocumentationOur Official Discord ServerOfficial OPRF Server
Package: op-research
OP-ResearchA unified collection of algrithms for solving operational research problems in an effiecient wayPurpose of the PackageThe purpose of the package is to provide a collection of tools to solve operation research problems and help researchers.FeaturesThe current implementation uses two phase method and is able to identify case for Infeasible solution, Unbounded solution, Degeneracy and Alternate Solution. In case of Infeasible solution and Unbounded solution it raises an ValueError and in case of Degeneracy and Alternate Solution it gives a warning and returns a optimum solution.The constraints right hand side should be positive and all variables should hold non-negativity conditions.Rules for constraint representation:Each variable should have coefficient if it is in constraint i.e x_1 is not allowd instead use 1x_1. Note that it is not necessary to represent each variable in a constraint, but if a variable is there then it should have a coefficient.
Only single spaces should be used.
For a variable x_i i should be an integer in [1, num_vars], where num_vars is number of variables
Objective function should be a tuple with first element as objective ie to maximize or minimize and second element should value that is to be optimized.Simplex solution solver
The package can be found on pypi hence you can install it using pipInstallationpip install op_researchUsage>>> from op_research import Simplex
>>> objective = ('maximize', '7x_1 + 4x_2')
>>> constraints = ['5x_1 + 2x_2 = 7', '1x_1 + 8x_2 >= 9', '3x_1 + 4x_2 <= 8']
>>> Lp_system = Simplex(num_vars=2, constraints=constraints, objective_function=objective)
>>> print(Lp_system.solution)
{'x_1': Fraction(6, 7), 'x_2': Fraction(19, 14)}ContributionContributions are welcome Notice a bug let us know. ThanksAuthorMain Maintainer: Rehan Ahmed
Package: oprint
Apprintfor CPython 3.6dictobjects that preserves insertion order.AboutCPython 3.6 uses a new “compact” representation fordictobjects. As a
nice side effect this happens to preserve the insertion order of keys.The order-preserving aspect of this new implementation is considered an
implementation detail and should not be relied uponpprint.pprint()retains it’s behaviour from earlier Python releases.
It formats adictobject by sorting the keys alphabetically.>>>importpprint>>>pprint.pprint({'foo':1,'bar':2,'baz':3}){'bar':2,'baz':3,'foo':1}oprint.pprint()throws out the old.>>>importoprint>>>oprint.pprint({'foo':1,'bar':2,'baz':3}){'foo':1,'bar':2,'baz':3}The library is otherwise a drop-in replacement forpprint.InstallpipinstalloprintDevelopmentThis project is developed onGitHub, please fileissuesfor any feature
or bug requests.ContributorsAlex Willmer
Package: opsAgent
opsAgent运维管理后台-监控客户端Getting started# install dependency packageyum-yinstallepel-releasepython36python36-develpython36-piplibcurl-develgcc-c++gcclibgcc# export PYCURL_SSL_LIBRARYecho'export PYCURL_SSL_LIBRARY=nss'>>/root/.bash_profilesource/root/.bash_profile# install opsAgentpip3installopsAgentUse dockerdockerrun-d--nameopsAgent-v`pwd`/config.json:/data/config.jsonfanghongbo/ops-agent:v0.0.3
Package: opsanalyze
opsanalyzeA python package for performing eigen, static and transient analysis on openseespy models.InstallationUse the package managerpipto install opsanalyze.pip install opsanalyzeUsageImport opsanalyze in your Python code like this:importopsanalyze.analyzeasopaSupportEmailTelegram ChannelTelegramInstagramDocumentsUse getDoc or getUserManual function to download documentation.opa.getDocoropa.GetUserManualor use link belove.DocumentsDeveloperOkhtai Alizadeh Arasi
Master of Science in Structural EngineeringLicenseOSI Approved : MIT License
Package: opsb-pyloopkit
PyLoopKitA set of Python tools for building closed-loop insulin delivery apps (Python port of LoopKit)Link to Tidepool Loop repository version used for algorithmLink of Tidepool LoopKit repository version used for algorithmTo use this projectPlease reviewthe documentationfor usage instructions, input data requirements, and other important details.To recreate the Virtual EnvironmentThis environment was developed with Anaconda. You'll need to installMinicondaorAnacondafor your platform.In a terminal, navigate to the directory where the environment.yml
is located (likely in PyLoopKit/pyloopkit folder).Runconda env create; this will download all of the package dependencies
and install them in a virtual environment named py-loop. PLEASE NOTE: this
may take up to 30 minutes to complete.To use the Virtual EnvironmentIn Bash runsource activate py-loop, or in the Anaconda Prompt
runconda activate py-loopto start the environment.Rundeactivateto stop the environment.To create the PyLoopKit packageIf you want to install a version of the PyLoopKit package based on the PyLoopKit on your local machine, runpython3 setup.py installwithin your PyLoopKit repo to call the setup script and install the package. You'll likely want to do this within thepy-loopenvironment.Running the unittestsTo run PyLoopKit's unit tests, runpython3 -m unittest discoverwithin your PyLoopKit repo
Package: opscidia-elasticsearch
opscidia_elastisearchTools to manage elasticsearch indexesInstallationFrom pippipinstallopscidia-elasticsearchPython usagefromopscidia_elasticsearchimportManagermg=Manager(hosts='url-to-es')# Connect to ESmg.create_index(index_name='')# to create indexmg.save_to_index(generator=None)# to save generator
Package: opsctl
Ops CTL toolGenerated by scriptgenerate_readme.shInstallpipinstallopsctlUpgradepipinstallopsctl--upgradeTestpythonsetup.pyinstallcdtestpytest*Featureopsctl
  tmpl2art	Render templates to articles
  env2json	Get environ variables to Json file
  env2yaml	Get environ variables to YAML file
  bamboo	Bamboo CLI
  version	Show opsctl versionRender templates to articlesopsctl tmpl2art
  --config	Key-Value config file path, file type is YAML
  --tmpl	Template dir path or template file path
  --output	Articles output pathGet environ variables to Json fileopsctl env2json
  --output	Output Json file path
  --input	Optional. Ensure your input file format that is must be same with output of command "env".
         	Get current os environ variables if let this option empty.Get environ variables to YAML fileopsctl env2yaml
  --output	Output YAML file path
  --input	Optional. Ensure your input file format that is must be same with output of command "env".
         	Get current os environ variables if let this option empty.Bamboo CLIopsctl bamboo
  --host	Bamboo server host base url
  --token	Bamboo server access token
  --deploy	Trigger Bamboo deployment project running. Format is deploymentProjectName:environmentName
  --param	Optional. Update target variables paramKey:paramValue
Package: opsdata-coal-node
Obsplus Dataset: coal_nodeA dataset collected over an operating longwall coalmine using a dense network of geophones.
Only 5 events are provided for testing purposes.InstallationIf you want to use this dataset it requires theobsplus package.
It can be installed from pypi using the following commands:pipinstallopsdata_coal_nodeThen the dataset can be loaded using the obsplus.DataSet object like so:importobsplusds=obsplus.DataSet('coal_node')
Package: opsdata-magna-test
Obsplus Dataset: slc_2020_smallObsPlus dataset of the 2020 Salt Lake City earthquake including only a
few stations and small amounts of continuous data. This dataset may not
be research quality and is only intended for testing.More infoThis dataset was collected and processed by theUniversity of Utah
Seismograph Stations. It was the first large
earthquake to hit the Salt Lake Valley in many years. See theWikipedia
pagefor
more details on the events impact.References
Package: opsdata-sulphur-peak
Obsplus Dataset: sulphur_peakA 2017 southern Idaho (USA) earthquake sequence.More infoThis dataset was collected by the University of Utah Seismograph Stations (UUSS) as well a
temporary network installed by UUSS and the United States Geological Survey. More info
can be found at thesequence's webpage.This dataset only includes events available from USGS with minimum magnitudes >= 4.0
and stations within 0.5 degrees of the approximate cluster.ReferencesKoper, K. D., Pankow, K. L., Pechmann, J. C., Hale, J. M., Burlacu, R., Yeck, W. L., ... &
Shearer, P. M. (2018). Afterslip enhanced aftershock activity during the 2017 earthquake
sequence near Sulphur Peak, Idaho. Geophysical Research Letters, 45(11), 5352-5361.Shokrgozar, A., & Mashal, M. (2019, April). The Mw 5.3 Sulphur Peak Earthquake in Soda
Springs, Idaho: Perspectives from Earthquake Engineering. In Structures Congress (pp. 306-320).
Package: opsdroid
An open source chat-ops bot frameworkQuick Start•Documentation•Playground•Blog•CommunityAn open source chatbot framework written in Python. It is designed to be extendable, scalable and simple.This framework is designed to take events from chat services and other sources and execute Python functions (skills) based on their contents. Those functions can be anything you like, from simple conversational responses to running complex tasks. The true power of this project is to act as a glue library to bring the multitude of natural language APIs, chat services and third-party APIs together.Seeour full documentationto get started.ContributorsThis project exists thanks to all the people who contribute. [Contribute].BackersThank you to all our backers! 🙏 [Become a backer]SponsorsSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Package: opsdroid-get-image-size
⚠️ This is a fork of scardine/image_size simply to create a distributable package on PyPI. Will be rendered unnecessary ifimage_size/issues/13is addressed.get_image_sizeSrc:https://github.com/scardine/image_sizePyPI:Get image width and height given a file path using minimal dependencies
(no need for PIL, libjpeg, libpng, etc).Why don’t you just use PIL?PIL is huge and has lots of dependencies, perhaps an overkill if you
want just the image dimensions.  If you already have PIL installed, then
sure, use it instead.This was written in answer for the question “Get Image size WITHOUT
loading image into memory”
(using Python) in stackoverflow. The OP said:@PauloScardine hey thanks Paulo, this is great!  It’s always so nice
to have code that can be easily deployed without bringing in
dependencies, and this fits the bill!  As you say, avoiding PIL is
worth it for its own sake.UsageRight now only for PNG, JPEG, GIF, BMP and TIF. Very untested, fork and
send PRs.Pythonget_image_size.get_image_sizeusage:importget_image_sizetry:width,height=get_image_size.get_image_size('/path/to/image.ext')exceptget_image_size.UnknownImageFormat:width,height=-1,-1Pythonget_image_size.get_image_metadatausage:importget_image_sizetry:img=get_image_size.get_image_metadata('/path/to/image.ext')width,height=img.width,img.heightprint(img._asdict())exceptget_image_size.UnknownImageFormat:width,height=-1,-1Commandlineget-image-sizeusage:$python-mget_image_size--help$get-image-size--helpUsage:get-image-size[-v|--verbose][--json|--json-indent]<path0>[<pathN>]Printmetadataforthegivenimagepaths(withoutimagelibrarybindings).Options:-h,--helpshowthishelpmessageandexit--json--json-indent-v,--verbose-q,--quiet-t,--test$get-image-size./lookmanodeps.png25120822228PNG./lookmanodeps.png$get-image-size--json-indent./lookmanodeps.png{"path":"./lookmanodeps.png","type":"PNG","file_size":22228,"width":251,"height":208}UpdatesOver the time people sent updates for “.ico”, “.bmp” and other
improvements. It is interesting to have all those algorithms in the same
place so people can reimplement them using other languages, so thanks
for all the pull requests (you can see the list of contributions in the
history).I added support for BMP file types, respecting different types of
DIB headers. Should work on all current bitmap types, tested for old
OS/2 and BITMAPCOREHEADER files, too. You might try it and consider
it for merging if you find it useful.No longer under 100 LOC
though, sorry ;)LicenseMIT LicenseThanksThanks everyone who inspired this, contributed with code or sent bug
reports. You know who you are, THANK YOU!HISTORY
Package: opsdroid-skype
opsdroid Skype extensionThis extension provides Skype support foropsdroid. To use, just add ‘skype’ to
the connectors section of your opsdroid config. Here’s an example opsdroid configuration for the connector:web:
    host: 0.0.0.0
    port: 9000

connectors:
  - name: skype
    app_id:
    app_pass:
    endpoint: /connectors/skypeThe connector will then be running athttp://0.0.0.0:9000/connectors/skype. This is your skype bot endpoint.To test the connector, you can use theBot Framework Emulator. This package includes a ready-made configuration file intests/bot.bot.To deploy a Skype bot, a Azure service account is needed. At the time of writing this (end of 2018), Azure offers a free tier that is sufficient to test the bot. To test and deploy the bot, create and configure a ‘Bot Channels Registration’ resource.When configuring the bot in Azure, make sure to:enter the correct full ‘Messaging endpoint’ URL in settingstest the bot (see ‘Test in Web Chat’)enter the bot Microsoft Application Id & Password into your opsdroid config; you may need to click the ‘Manage’ link in the bot registration settings to access the passwordadd a Skype ‘channel’ to the registration resource (there is NO NEED to configure it in any way or publish it!)After completing the above steps, visit your bot endpoint using a web browser; you will be redirected to a Microsoft-hosted
page for adding the bot as a Skype contact.Free software: Apache Software License 2.0Package created withCookiecutterusing theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-12-03)First release on PyPI.
Package: opsdroid-zodb
opsdroid ZODB extensionThis extension provides ZODB support for opsdroid. To use, just add ‘zodb’ to
the databases section of your opsdroid config, and optionally give a path
to the database file, if you wish not to use the default which is ‘opsdroid.fs’
stored in current directory.Free software: Apache Software License 2.0CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-11-28)First release on PyPI.
Package: opsgenie-logger
opsgenie-loggerA Python logging handler for Atlassian OpsGenie.Basic Usageimportloggingfromopsgenie_loggerimportOpsGenieHandlerlogger=logging.getLogger()handler=OpsGenieHandler(api_key="integration_api_key",team_name="my_team",level=logging.ERROR)logger.addHandler(handler)logger.error("This will go to OpsGenie!")try:raiseValueError("This is a problem")exceptValueError:logger.exception("This stack trace is going to OpsGenie")Contribution GuidelinesAny changes should be covered with a unit test and documented inCHANGELOG.mdRelease ProcessStart a release with Git FlowUpdate the version number using Semantic Versioning inpyproject.tomland__init__.pyEnsure all dependencies are pointing to released versionsUpdate the release notes inCHANGELOG.mdMove changes from "Unreleased" to a section with appropriate version #Add a link at the bottom of the page to view this version in GitHub.Commit and push any changesCreate a pull request from the release branch to masterEnsure all checks pass (e.g. CircleCI)Open and merge the pull requestCreate a tag on the merge commit with the release numberContributorsDylan Anthonydanthony@triaxtec.com
Package: opsgenie-python-api
opsgenie-python-apiLow-level Python bindings for Opsgenie API.This is a Opsgenie API client library to simplify the interaction with Opsgenie.Opsgenie API documentation can be found athttps://docs.opsgenie.com/docs/InstallationInstall current reelase by pippip install opsgenie-python-apiGetting StartedYou need an API token for communicating with tempo REST APIs.from opsgenie import client

schedulesApi = SchedulesApi(auth_token='<your_api_auth_token>)

schedules = self.schedulesapi.get_schedules()
print(schedules)ContributingContribution is welcome. SeeCONTRIBUTING.mdfor more details.
Package: opsgenie-sdk-criteo
Aim and ScopeOpsGenie Python SDK aims to access OpsGenie Web API through HTTP calls from a client application in Python language.OpsGenie Python SDK covers:Alert APIFuture releases are subject to be delivered for packing more APIs soon.For more information about OpsGenie Python SDK, please refer toOpsGenie Python
APIdocument.Pre-requisitesThe API is specifically built for Python 2.7 but can also be used with other Python versions.Before you begin, you need to sign upOpsGenieif you don’t have a valid
account yet. Create an API Integration and get your API key.InstallationTo download all packages in the repo with their dependencies, simply executepip installopsgenie-sdkGetting StartedOne can start using OpsGenie Python SDK by initializing client and making a request.
Example shown below demonstrates how to initialize our Swagger client and make a create alert request.from opsgenie.swagger_client import AlertApi
from opsgenie.swagger_client import configuration
from opsgenie.swagger_client.models import CreateAlertRequest
from opsgenie.swagger_client.rest import ApiException

configuration.api_key['Authorization'] = 'YOUR_API_KEY'
configuration.api_key_prefix['Authorization'] = 'GenieKey'

try:
    response = AlertApi().create_alert(body=CreateAlertRequest(message='Hello from OpsGenie Python SDK'))

    print('request id: {}'.format(response.request_id))
    print('took: {}'.format(response.took))
    print('result: {}'.format(response.result))
except ApiException as err:
    print("Exception when calling AlertApi->create_alert: %s\n" % err)There are useful sample code snippets undersamplesdirectory for packages. At the moment, we are continuing to support
our old OpsGenie client for creating alerts to new REST API:from opsgenie import OpsGenie
from opsgenie.swagger_client import CreateAlertRequest
from opsgenie.config import Configuration
from opsgenie.swagger_client.rest import ApiException

config = Configuration(apikey="YOUR_API_KEY")

client = OpsGenie(config)

try:
    response = client.alert_v2.create_alert(CreateAlertRequest(message="Hello from OpsGenie Python SDK"))
    print 'message: {}'.format(response.message)
    print 'alert id: {}'.format(response.alert_id)
    print 'status: {}'.format(response.status)
    print 'code: {}'.format(response.code)
except ApiException as err:
    print("Exception when calling alert_v2->create_alert: %s\n" % err)The Web APIPlease follow the links below for more information and details about the
Web API.Alert APIAlert API (Deprecated)Bug Reporting and Feature RequestsIf you like to report a bug, or a feature request; please open an issue.