Saravanan666/pypi-org huggingface dataset:
Package: hautomation_x10
hautomation_x10===============Python wrapper module which sends home automation commands to mochadIntroduction------------This Python module is a set of functions to make easier to send X10 home automationcommands to mochad.At the momment the module is capable of sending the following commands- Power line switch command which accepts "on" and "off" values- Power line dim command which accepts values in the range 1..31- Power line bright command which accepts values in the range 1..31By initializing the settings.MOCHAD_PORT and the settings.MOCHAD_HOST configuration directivesmochad daemon can be in any reachable host.Quick start-----------1. Install hautomation_x10: pip install -e git+https://github.com/jpardobl/hautomation_x10.git#egg=hautomation_x102. Make the USB cm15a device is plugged in a server3. Make sure mochad is running on that server4. open hautomation_x10/settings.py and set MOCHAD_HOST and MOCHAD_PORT to proper values5. Start issuing commands.>>> import hautomation_x10.cmds as cmds>>> cmds.pl_switch("A5", "off")>>> cmds.pl_switch("A6", "on")>>> cmds.pl_dim("A3", 31)>>> cmds.pl_bri("A3", 4)Testing------->>> python hautomation_x10/tests.pyEntry Points------------The deploying of the module generates th following  entry points:- populate_x10_db: When using this module from the django-hautomation apps, it isnecesary to populate the database with the protocol X10 information. This is the aimof this entry  point- pl_switch: entry point to help find power line switch command to developers- pl_dim: entry point to help find power line dim command to developers- pl_bri: entry point to help find power line bright command to developers
Package: havedocker
🐍havedocker🐋🌴Additional version based on ` 0.1.3.6 ` version📌repair problemsRefactoring willDockerNetworkmethodThe newmethodIn the 'Agility_Docker' initialization, redefine the variable.The following syntax is supported:docker.DockerMachineVersion🗃️newly increasedAdditional version based on0.1.3.6versionDocker - statsbe extended interfaceUsing document will be0.1.3.8open version, reference object for0.1.3.8version📅History node versionnewly increased help from 0.1.3.2Method name change from 0.1.3.3Break up the logic New DockerError. Py from 0.1.3.6Docker state formatted output from ...🚧Feature push for unknown versionLocal methods are being refactoredIndividual methods of optimization have been proposed📚usageare writing
Package: haveibeenpwnd
Troy Hunt released a new version of theHave I Been pwnd Database. This time with more anonymity
in mind.Features:check if an email was part of a breachcheck if a password is known from a breach against HaveIBeenPwnd.comdoes not sent passwords to HaveIBeenPwnd.comdoes not sent complete password hashes to HaveIBeenPwnd.comzero dependencies except requests (will be removed later)python2 & python3 supporttestsUsage:You can use HaveIBeenPwnd als command line script or use it as module in other python code.As command line scriptInstall HaveIBeenPwnd gobally or in a virtual environment:$pipinstallhaveibeenpwndThis add shortcuts to haveibeenpwnd, so that you call haveibeenpwnd from everywhere. To check a
password, simply do this:$haveibeenpwnd--passwordhunter2Thepasswordwasfound16092timesinthehaveibeenpwned.comdatabase.Remember, haveibeenpwnd does not send the given password into the internet, it sends the first 5
chars of the SHA1 Hash.To check if a mail has been part of a breach, do this:$haveibeenpwnd-mtest@example.comTheemail<test@example.com>wasfoundinfollowingbreaches:The<000webhost>breach(2015-03-01)exposedEmailaddresses,IPaddresses,NamesandPasswordsThe<8tracks>breach(2017-06-27)exposedEmailaddressesandPasswords...As moduleCheck emails:>>>fromhaveibeenpwndimportcheck_email>>>check_email("test@example.com"))>>>check_email("test@example.com"){'breaches':[{'Title':'000webhost',...}]}and check passwords:>>>fromhaveibeenpwndimportcheck_password>>>check_password('hunter2')16092>>>check_password('lksdflksdpsökfdsödg')0InstallationYou can install haveibeenpwnd with pip:$pipinstallhaveibeenpwndTesting:You can run tests with:$tox
Package: haveibeenpwned
Have I Been Pwned?Check if you have an account that has been compromised in a data breach.
This package uses the awesome websitehttps://haveibeenpwned.com/.InstallationAvailable via PyPi.pip install haveibeenpwnedUsageAvailable as command with format:haveibeenpwned here.is@the.email [options]Options:-f[--full] get the full response not just status-h[--help]-v[--version]As an import:fromhaveibeenpwnedimportpwnedfromhaveibeenpwnedimportpwned_fullpwnedreturns Booleanpwned_fullreturns dict with Boolean status and additional data as a listLicenseMIT.
Package: haveibeenpwned-asyncio
haveibeenpwned-asynciov0.0.4-1Library to query and check haveibeenpwned with the aiohttp library.NB: I have added async to sync methods if you are not writing async code. Every query function has an
corresponding synchronous call -> example query_account_sync()Installpipinstallhaveibeenpwned-asyncio# orpoetryaddhaveibeenpwned-asyncioUsageSee example.py for more usesEx:importosfromhaveibeenpwned_asyncioimporthaveIbeenPwnedPasswords,haveIbeenPwnedAccount,haveIbeenPwnedPastesimportasyncioif__name__=="__main__":# Validation Class, inherits from Indentity Classloop=asyncio.get_event_loop()passwords=["P@ssw0rd"]accounts=["admin@gmail.com","test@test.com","test@gmail.com"]test_passwords=haveIbeenPwnedPasswords(passwords=passwords,semaphore_max=10)print(loop.run_until_complete(test_passwords.query_passwords()))print(test_passwords.query_passwords_sync())test_acc=haveIbeenPwnedAccount(accounts=accounts,semaphore_max=10,api_key=os.getenv("HAVEIBEENPWNED_API_KEY",None),)print(loop.run_until_complete(test_acc.query_accounts()))print(test_acc.query_accounts_sync())test_pastes=haveIbeenPwnedPastes(accounts=accounts,semaphore_max=5,api_key=os.getenv("HAVEIBEENPWNED_API_KEY",None),)print(loop.run_until_complete(test_pastes.query_accounts()))print(test_pastes.query_accounts_sync())API KeySome of the endpoints (breachedAccount) require authentication in the v3 of the API.
This is to prevent script kiddies and abuse of the api, see blog post:https://www.troyhunt.com/authentication-and-the-have-i-been-pwned-api/To get an API key follow:https://haveibeenpwned.com/API/KeyUsage:# Could use env variableshaveIbeenPwnedAccount(accounts=accounts,semaphore_max=10,api_key=os.getenv("HAVEIBEENPWNED_API_KEY",None))# orhaveIbeenPwnedAccount(accounts=accounts,semaphore_max=10,api_key='xxxxxxxxx')CLIIncludes a CLI interface using pythong click library(.venv)goose@pop-os:~/Development/haveibeenpwned_asyncio$haveibeenpwned_async--help
Usage:haveibeenpwned_async[OPTIONS]COMMAND[ARGS]...

Options:--helpShowthismessageandexit.

Commands:accountspasswordspastesSpeedCheck the file run_test_speed.py. This will give you an idea of the speedup asyncio does with multiple IO bound network callsTODO:Add API key to github actions for pytest to pass on breachedAccountDonationsPlease feel free to buy me a cup of coffee as I pay a monthly $3 to test the library against haveibeenpwned's
monthly billed API keybuymeacoffee.com/crypticg00se
Package: haveibeenpywned
haveibeenpywnedA simple Python wrapper for theHave I Been PwnedAPI.InstallationUse the package managerpipto install haveibeenpywned.pipinstallhaveibeenpywnedUsagefromhaveibeenpywnedimportPywnedpywned=Pywned("your-hibp-api-key")resp=pywned.get_all_breaches_names_for_account("email@address.com")print(resp)['8tracks','AbuseWithUs','AntiPublic','BlankMediaGames','Dubsmash','MySpace']LinksDocumentationhaveibeenpwned API ReferenceContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.AuthorsSam-scv-mEric-buzzlightSee also the list ofcontributorswho participated in this project.LicenseCreative Commons Attribution 4.0 International LicenseIn other words, you're welcome to use the public API to build other services, but you must identify Have I Been Pwned as the source of the data . Clear and visible attribution with a link to haveibeenpwned.com should be present anywhere data from the service is used including when searching breaches or pastes and when representing breach descriptions. It doesn't have to be overt, but the interface in which Have I Been Pwned data is represented should clearly attribute the source per the Creative Commons Attribution 4.0 International License.—https://haveibeenpwned.com/API/v3#LicenseAcknowledgementsTroy HuntHave I Been Pwned
Package: haven-client
havenThis Python package is (mostly) automatically generated by theOpenAPI Generatorproject:Requirements.Python 2.7 and 3.4+Installation & Usagepip install haven-clientGetting Startedimporthavenfromhaven.authed_api_clientimportAuthedApiClientfromdatetimeimportdatetimefromdateutil.tzimporttzutcdefmain():config=haven.Configuration(host="https://haven.dev/api")api=haven.DefaultApi(AuthedApiClient(id="YOUR_ID_HERE",secret="YOUR_SECRET_HERE",configuration=config))# upload a transactionapi.upsert_one_transaction(haven.CleanSingleTransactionRequest(transaction=haven.RawTransaction(id="txn-1",account="account-a",user="user-0",raw_memo="Uber ***232**123",merchant=None,store=None,network="VISA",user_transacted_at=datetime.now().replace(tzinfo=tzutc()),amount="-12.34",categories=[],kind=haven.TransactionKind.CREDIT_CARD,state=haven.TransactionState.COMPLETED)))transactions=api.get_transactions("user-0",limit=10)print(transactions)if__name__=="__main__":main()SeeDocumentation for API EndpointsClassMethodHTTP requestDescriptionDefaultApicreate_access_tokenPOST/v1/tokensDefaultApicreate_webhookPOST/v1/webhooksDefaultApidelete_accountDELETE/v1/accounts/{AccountId}DefaultApidelete_for_userDELETE/v1/users/{EndUserId}DefaultApidelete_transactionDELETE/v1/transactions/{TransactionId}DefaultApidelete_webhookDELETE/v1/webhooks/{WebhookId}DefaultApiget_accounts_for_userGET/v1/accounts/user/{EndUserId}DefaultApiget_merchantGET/v1/merchants/{MerchantId}DefaultApiget_transactionsGET/v1/transactions/{EndUserId}DefaultApiget_webhooksGET/v1/webhooksDefaultApiupsert_accountPUT/v1/accountsDefaultApiupsert_batch_transactionsPOST/v1/transactions/batchDefaultApiupsert_one_transactionPOST/v1/transactions/onlineDefaultApiupsert_user_annotationPOST/v1/annotations/{TransactionId}Documentation For ModelsAccountRequestWrapperAccountSubTypeAccountTypeAddAnnotationRequestAddAnnotationResponseAddressApiAccountBadRequestServiceErrorBalanceBootstrapStrategyCleanCategoryCleanSingleTransactionRequestCleanSingleTransactionResponseCleanTransactionConflictServiceErrorCreateWebhookRequestCreateWebhookResponseEmptyResponseGetAccountsResponseGetMerchantResponseGetTransactionsResponseGetWebhooksResponseLatLongMerchantNotFoundServiceErrorOpenHoursRawMerchantRawMerchantStoreRawTransactionServiceErrorTenantServiceAccountAgentLoginRequestTenantServiceAccountAgentLoginResponseTransactionKindTransactionStateUnauthorizedServiceErrorUncaughtExceptionServiceErrorUploadBatchTransactionsRequestWebhookWebhookSubscription
Package: haven-spc
HavenBluesky tools for beamlines managed by the spectroscopy group."Don't fly in anything with a Capissen 38 engine, they fall right out
of the sky."InstallationPython Packing IndexEasiest way to install haven is using pip.$ python -m pip install 'haven-spc'Development (Conda)havencan also usemambafor dependency management, andsetuptoolsfor installation and development. First create the conda
environment with mamba:$ mamba env create -f environment.yml -n haventhen install the package, in developer mode:$ conda activate haven
$ pip install -e .Running TestsTo run tests, run$ pytestfireflyUser-facing applications for controlling the beamlines managed by the
spectroscopy group. Be sure to include the [gui] extras if you plan
to use the GUI.$ python -m pip install 'haven-spc[gui]'
$ fireflyVersioningHaven/Firefly uses calendar versioning, with short year and short
month for the MAJOR and MINOR versions, then a incremental MICRO
version. For example, version23.7.2is the 2nd (2) release in
July (7) 2023 (23).
Package: haver
haverInstallationpip install haverHow toConnection and AuthenticationfromhaverimportHaverhaver=Haver(private_token='<your-haver-API-token>')The classHaveralso accepts keyword arguments to be passed to requests,
which handles the connection to the API under the hood. In this way,
by passing e.g.verifyandproxyparameters, users can access Haver databases from behind firewalls.
For example:haver=Haver(private_token='<your-haver-API-token>',verify=False,# Or local path to certificatesproxies={'http':'http://proxy-username:proxy-password@proxy-server.com:8080','https':'http://proxy-username:proxy-password@proxy-server.com:8080'})Instead of passing the token explicitely each time,
the user can also set an environmental variableHAVER_TOKENcontaining the API token.
In this case connection will be as simple ashaver = Haver().Obtaining tokensTo obtain your token, follow these steps:Log into haverview.com, then create a graph with any series.Click the vertical dots next to the Directory and Series tabs, above the search box.Select Export & Sharing in that menu. This will replace the left tab with the Export dialog.Copy the contents of the URL field. It is a link which contains your token, specified as a query parameterE.g. fromhttps://api.haverview.com/some/path/here?token=3f15493a-9e05-4b61-93ff-8ba56cb3a726your token would be3f15493a-9e05-4b61-93ff-8ba56cb3a726.Exploring available resourcesAll available databases can easily be listed ashaver.get_databases()which will return a dictionary with keys the database names and values the corresponding database description:{'UNPOP': 'U.N. Population Statistics',
 'EPFRECA': 'Fund Country Allocations',
 'EUFIN': 'Financial Data',
 ...
 }Further information on each dataset can be obtained via the methodhaver.database_info,
and series within each database can be listed e.g. ashaver.get_series(database='UNPOP',full_info=True)In addition, a search function is also available to allow the user to search series by their descriptions,
for example as:haver.search(query='employment')Querying dataIn order to retrieve data, the user has the option of querying
one series at a time via the dedicated methodhaver.read(database='EUDATA',series='N997CE')which returns data in dictionary format, or querying multiple series
ashaver.read_df(haver_codes=['N997CE@EUDATA','N025CE@EUDATA'])where individualhaver_codesare created by joining series and database names as{series}@{database}.Finally, a database of available recessions can be obtained ashaver.recessions()AuthorLuca Mingarelli, 2024
Package: havi
Havistands for Odinscatering model and bayesian inferenceNote from authorIf you use our library on a research or paper please give us a citationPyPiGithubInstallationpip install haviUsageimporthaviash# scatering anglesincident_angles=[theta,phi,psi]# incidence angles - floatsscatered_angles=[theta,phi,psi]# scatering angles - floatswavelength=0.5havi=h.Havi(incident_angles,scatered_angles,wavelength)# surface boudaries for random variablesrms_height=(0.1,0.8)# lower and higher boundariescorrelation_longitude=(0.1,0.8)# lower and higher boundariesdielectric_constant=(0.1,0.8)# lower and higher boundarieshavi.set_boundaries(rms_height,correlation_longitude,dielectric_constant)sigma=h.Tensor([0.5])observed_data=h.Tensor([-12,-7,-8])trace=havi.inference(sigma,observed)# you can plot the trace however you want ORhavi.plot()APIThis package exports:A pytorch Tensor typehavi.TensorOur inference model abstraction, holds data of incident wave, scatered wave and their wave length:havi.Havi(incident_angles: List[float], scatered_angles: List[float], wavelength: float)Set boundaries for probabilistic variablesHavi.set_boundaries(rms_height: Tuple[float], correlation_longitude: Tuple[float], dielectric_constant: Tuple[float]) -> NoneRuns MCMC(Monte Carlo Markov Chain) bayesian inference with NUTS kernel over scatering modelHavi.inference(sigma: Tensor, observed: Tensor) -> trace: dictPlots all of the traced values from MCMC bayesian inferenceHavi.plot() -> None
Package: havocbot
HavocBot========.. image:: https://img.shields.io/pypi/v/havocbot.svg:target: https://pypi.python.org/pypi/havocbotHavocBot is an extensible chat bot that works across any number of chat programsFeatures--------- Connect to multiple chat systems simultaneously- Plugin system designed to work across all integrated chat clients- New chat integrations can be dropped into file system for new functionality- Plugin focus will be on helpful DevOps integrations and work distractions- More coming soon...Supported Chat Integrations---------------Out of the box, the following chat integrations are supported::- Slack- XMPP- HipChat- Skype (see note below)Contributors are encouraged to create their own chat integrations not listed above and to provide them back to the community!Installation------------Install the latest version from pip:.. code:: bashpip install havocbotCopy the example `main.py`_ and `settings.ini`_ files into a new directory on your machine. Modify the settings.ini to include the neccessary API tokens and server settings for the chat clients that the bot should connect to.Make sure the chat client is also listed in the 'clients_enabled' field in settings.iniOpen terminal and navigate to the directory where main.py and settings.ini is locatedRun the following in terminal:.. code:: bashpython main.pyHavocBot should connect to the chat clients if valid credentials were providedWriting a Plugin----------------Coming soon...Skype Support-------------Microsoft has said that support for the Skype API will be dropped at some point in the future so support will be minimal. Skype integration requires some special setup as stated below.- Skype support is only available in python 2.6 and 2.7 (Skype4Py does not support python 3)- The Skype desktop application must be running and logged in prior to starting HavocBot and must be ran alongside HavocBot to work.- If using OSX, 32-bit support through Skype4Py must be forced via:.. code:: basharch -i386 pip install Skype4Py- HavocBot must also be forced to run in 32-bit mode on OSX via:.. code:: basharch -i386 python main.pyPython 2.6 Legacy Compatibility-------------------------------- XMPP, HipCHat are compatible out of the box- Skype support requires an extra pip module to be installed. See `Skype Support` above- Slack requires an extra pip module to be installed to support python 2.6. SlackClient v0.18.0 depends on 'requests' which requires 'ndg-httpsclient' to enable TLS SNI (See https://github.com/kennethreitz/requests/issues/749#issuecomment-19187417).. code:: bashpip install ndg-httpsclientCredits-------Mark Perdue (https://github.com/markperdue, https://www.righteousbanana.com).. _`main.py`: https://github.com/markperdue/havocbot/tree/master/src/havocbot/examples/main.py.. _`settings.ini`: https://github.com/markperdue/havocbot/tree/master/src/havocbot/examples/settings.ini
Package: havsfunc
HAvsFuncDependent scriptsadjustmvsfuncnnedi3_resampleDependent pluginsAddGrainCASCTMFDCTFilterDeblockDFTTestEEDI2EEDI3FFT3DFilterFluxSmoothfmtconvHqdn3dKNLMeansCLMiscFiltersMVToolsNNEDI3CLRGVSSangNomSVPTemporalSoften2TTempSmoothZNEDI3
Package: hawaiio
hawaiiohawaiiois an experimental library of building blocks for concurrent Python programs. It relies on the async/await syntax, and nothing more. Shamelessly combines ideas fromtrioandcurio.InstallationpipinstallhawaiioUsageimporthawaiioasyncdefgreet(name:str):awaithawaiio.sleep(1)returnf"Hello,{name}"message=hawaiio.run(greet("world"))print(message)# 'Hello, world'ChangelogSeeCHANGELOG.md.ContributingSeeContributing guidelines.LicenseMIT
Package: hawaii_sdk
Hawaiisdk_development- A Streamlined SDK for our Devices over Websocket CommunicationWelcome tosdk_development!Here, we're building a versatile SDK for our devices. It's designed to be efficient, readable, and a touch of fun.FeaturesCommunication: Our foundational layer to manage all kinds of interactions.WebSocketClient: A WebSocket-based communication module.Message Parsing: Tools for message structuring and error handling.Devices: Interfaces and implementations for various devices like CCD Cameras and Monochromators.Getting StartedPrerequesitsThese code pieces rely on an installed version of the SDK.Log intohawaii.comwith your user account or create a new accountEnter your hawaii hardware serial number(s) to see if you have access to the SDKDownload and install the SDKYou can a successful installation by running the following commands in a shell:MySDK--versionThis must return a version string, e.g. "1.7.3"Run one of thehello worldexamples in theexamplessection of this repo.As a SDK userCode examples for different programming languages likePython,LabVIEWandC#can be found in theexamplesInstruction videos on how to use the SDK can be found on thehawaii youtube channelThe full documentation of the APi can be found onRead the docsAs Contributor to the SDKThis package is built with poetry, so make sure to head over toPoetryto get started.Installation:cd/PathWhereYouWantThisRepogitclonehttps://github.com/ThatsTheEnd/sdk_development.git.cdsdk_development
pipinstallpoetry
poetryinstallRunning Tests:poetryrunpytestDocumentation:
Navigate to thedocsdirectory for in-depth information.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestStructuresdk_development: Core source code.tests: Unit tests to ensure everything runs smoothly.scripts: Utility scripts.docs: Comprehensive documentation.ContributingBug Reports & Feature Requests: Use GitHub issues to report any bugs or suggest features.Pull Requests: Always welcome! Ensure tests pass before submitting.LicenseMIT. See theLICENSEfile for details.
Package: hawkcatcher
Hawk Python CatcherPython errors Catcher module forHawk.so.UsageRegister an account and get a new project token.Install moduleInstallhawkcatcherfrom PyPI.$pipinstallhawkcatcherImport Catcher module to your project.fromhawkcatcherimportHawkThen enable Hawk Catcher with your token and domain.hawk=Hawk("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm9qZWN0SWQiOiI1ZTZmNWM3NzAzOWI0MDAwMjNmZDViODAiLCJpYXQiOjE1ODQzNTY0NzF9.t-5Gelx3MgHVBrxTsoMyPQAdQ6ufVbPsts9zZLW3gM8")Now all global errors would be sent to Hawk.Try-exceptIf you want to catch errors in try-except blocks then usehawk.catch()in except:try:...except:hawk.send()Manual sendingYou can also pass event to thehawk.send()call, for example:try:...except:hawk.send(ValueError("error description"))Event contextIt is possible to pass additional event context for debugging purposes:try:...except:hawk.send(ValueError("error description"),{"params":"value"})Affected userYou can also pass user, who affected with specific error:try:...except:hawk.send(ValueError("error description"),{"params":"value"},{"id":123})Init paramsTo init Hawk Catcher just pass a project token.hawk=Hawk('1234567-abcd-8901-efgh-123456789012')Additional paramsIf you need to use custom Hawk server then pass a dictionary with params.hawk=Hawk({'token':'1234567-abcd-8901-efgh-123456789012','collector_endpoint':'https://<id>.k1.hawk.so',})RequirementsPython >= 3.5requestsLinksRepository:https://github.com/codex-team/hawk.pythonReport a bug:https://github.com/codex-team/hawk.python/issuesPyPI Package:https://pypi.python.org/pypi/hawkcatcherCodeX Team:https://ifmo.su
Package: hawkei
HawkeiHawkeiPython libraryInteract easily with our API using our Python library.SetupStart by creating an accountFollow theQuick Start Guideto get set upUse ourJavascript Libraryto install and configure Hawkei for your platform.Documentation & UsageDocumentation is available athawkei.atlassian.net/wiki/spaces/HAW/pages/5570561/Python