Saravanan666/pypi-org huggingface dataset:
Package: pysad
Python Streaming Anomaly Detection (PySAD)PySADis an open-source python framework for anomaly detection on streaming multivariate data.DocumentationFeaturesOnline Anomaly DetectionPySADprovides methods for online/sequential anomaly detection, i.e. anomaly detection on streaming data, where model updates itself as a new instance arrives.Resource-EfficientStreaming methods efficiently handle the limitied memory and processing time requirements of the data streams so that they can be used in near real-time. The methods can only store an instance or a small window of recent instances.CompletePySADcontains stream simulators, evaluators, preprocessors, statistic trackers, postprocessors, probability calibrators and more. In addition to streaming models,PySADalso provides integrations for batch anomaly detectors of thePyODso that they can be used in the streaming setting.ComprehensivePySADserves models that are specifically designed for both univariate and multivariate data. Furthermore, one can experiment viaPySADin supervised, semi-supervised and unsupervised setting.User FriendlyUsers with any experience level can easily usePySAD. One can easily design experiments and combine the tools in the framework. Moreover, the existing methods inPySADare easy to extend.Free and Open Source Software (FOSS)PySADis distributed underBSD License 2.0and favors FOSS principles.InstallationThe PySAD framework can be installed via:pipinstall-UpysadAlternatively, you can install the library directly using the source code in Github repository by:gitclonehttps://github.com/selimfirat/pysad.gitcdpysadpipinstall.Required Dependencies:Python 3.8numpy==1.23.5scikit-learn>=1.3.0scipy==1.10.0pyod==1.1.0combo==0.1.3Optional Dependencies:rrcf==0.4.3 (Only required forpysad.models.robust_random_cut_forest.RobustRandomCutForest)PyNomaly==0.3.3 (Only required forpysad.models.loop.StreamLocalOutlierProbability)mmh3==2.5.1 (Only required forpysad.models.xstream.xStream)pandas==2.0.3 (Only required forpysad.utils.pandas_streamer.PandasStreamer)Quick LinksGithub RepositoryDocumentationPyPI PackageTravis CIAzure PipelinesCircle CIAppveyorCoverallsLicenseVersioningSemantic versioningis used for this project.LicenseThis project is licensed under theBSD License 2.0.Citing PySADIf you use PySAD for a scientific publication, please cite the following paper:@article{pysad,
  title={PySAD: A Streaming Anomaly Detection Framework in Python},
  author={Yilmaz, Selim F and Kozat, Suleyman S},
  journal={arXiv preprint arXiv:2009.02572},
  year={2020}
}
Package: pysafe
Pysafe is a terminal-based password manager with a very easy to use CLI.Features:Generate a unique encryption key to be used as a master password.Generate new passwords for new login entries.Encrypt all saved password using the generated encryption key.Show all your saved login credentials with a click of button.A ready to export CSV file for an easy backup experience.Master reset to delete saved encryption key and all saved login entries.How to install:On mac:Open terminal and type:python3 pip install pysafeOn windows:Open Powershell and typepython3 pip install pysafeHow to use:On mac:Open terminal and typePython3Import pysafeOn Windows:Open CMD and typepython3import pysafeGeneral usage:Generate a new encryption key:
You only need to do this once. Save your encryption key somewhere safe as
this will be used as your master password.Note: Encrypted credentials are linked to the generated encryption key
. Avoid generating a new key with existing login credentials as this would
result in
losing the ability to decrypt your saved login credentials.Use previous encryption key:
Here you can use previously generated encryption key. The encryption key is 44
character.Save a new login:
After saving your encryption key, you can enter as many login entries as you so
desire
with the ability to generate new passwords along the way, or just enter a
password of your
choosing. Then the program will save it for you in CSV file. The passwords
in that CSV file will be encrypted, and can only be seen using the generated
encryption key that we mentioned earlier.Show saved logins:
The program will print out the saved logins using the saved encryption key
and saved CSV file, so you can see them in plain text that you can use.Generate a new password:
This will give your the ability to generate a new password without having an
encryption key or entering any additional information such as a website tile
or website link. You only need to enter the length of the password and the
program will do the rest.Show locations of saved files:
This will show you the absolute path of the generated files by the programDelete all data:
This will be used in case you wish to have a fresh start without any
encryption key nor login credentials file file.Note: This will permanently delete your encryption key and saved login
credentials. So only do that, if you know what you are doing.
Package: pysafebrowsing
PysafebrowsingLimited python3 library forGoogle Safe Browsing API v4. For now, only the online lookup is developed. Checkhereto get an API key.To install, you can just install it frompypiwithpip install pysafebrowsing, or download the code withgit clone https://github.com/Te-k/pysafebrowsing.gitand thenpip install .LibraryfrompysafebrowsingimportSafeBrowsings=SafeBrowsing(KEY)r=s.lookup_urls(['http://malware.testing.google.test/testing/malware/'])print(r)>{'http://malware.testing.google.test/testing/malware/':{'platforms':['ANY_PLATFORM'],'threats':['MALWARE','SOCIAL_ENGINEERING'],'malicious':True,'cache':'300s'}}CLI$ safebrowsing config --key dfdsfdsfds
In /home/user/.config/safebrowsing:
[SafeBrowsing]
key = dfdsfdsfds

$ safebrowsing url http://malware.testing.google.test/testing/malware/
Malicious: Yes
Platforms: ANY_PLATFORM
Threats: SOCIAL_ENGINEERING, MALWARE

$ safebrowsing url https://github.com/
Malicious: No

$ safebrowsing file testlist.txt
http://malware.testing.google.test/testing/malware/     Malicious
http://twitter.com/     Ok
https://github.com/     Ok
http://www.google.com/  Ok
http://www.yahoo.com/   Ok
http://ianfette.org     MaliciousLicenseThis code is published under MIT license: do whatever you want with it, but don't blame me if it fails ;)
Package: pySafetyNet-Attestation
pySafetyNet-AttestationA package for verifying JWS-attestations from Google's SafetyNet.IntroductionThis package verifiesSafetyNet attestationsby following the steps described on the page. It allows you to specify what parts of the JWS-body you wish to verify, but will always atleast verify the certificate and validity of the JWS.UsageOnline verificationfromsafetynet_attestationimportAttestationjws_token="..."api_key="..."attestation=Attestation(jws_token)attestation.verify_online(api_key)verify_onlinetakes the following optional parameters:url="<standard url>"If you for some reason wish to validate against some other url.<standard url>can be found atGoogle's SafetyNet documentation.Offline verificationfromsafetynet_attestationimportAttestationjws_token="..."attestation=Attestation(jws_token)attestation.verify_offline()verify_offlinetakes the following optional parameters:apkPackageName=Nonenonce=NoneapkDigestSha256=Nonestrof hex-values.apkCertificateDigestSha256=NoneCan belistofstrorstr.check_basicIntegrity=Truecheck_ctsProfileMatch=Truehostname="attest.android.com"Used for TLS validation of the certificate. Only modify if you know what you are doing.A full explanation of the parameters above can be found atGoogle's SafetyNet documentationOnce a token has been verified, the following fields can be used:headerAdictof the token's header.bodyAdictof the token's body.certificatesAlistof base64-decoded certificates present in theheader.public_key_pemThe public key of the certificate.
Package: pysafie
pysafieSafie API client library for PythonRequirementA subscription is required to use the Safie API. Please refer to this link for details.https://developers.safie.link/Installationpip install pysafieUsageBy receiving authentication code, you can use it as follows.importpysafieclient_id='hogehoge'client_secret='hogehoge'redirect_uri='https://hoge.com/'authentication_code='hogehoge'# Need to get it from the redirected URLsafie=pysafie.Safie(client_id,client_secret,redirect_uri)safie.get_access_token(authentication_code)res=safie.get_device_list()# Returns requests' response objectprint(res.json())If you have already stored token information, you can set it when you create an instance.importpysafieclient_id='hogehoge'client_secret='hogehoge'redirect_uri='https://hoge.com/'access_token='hogehoge'refresh_token='hogehoge'expires_at=1624247730# Set the token expiration in unix timesafie=pysafie.Safie(client_id,client_secret,redirect_uri,access_token,refresh_token,expires_at)res=safie.get_device_list()# Returns requests' response objectprint(res.json())NoteFor now, this library only supports auth, devices, and media_files APIs.Authorkndt84Future Standard Co., Ltd.Licensepysafie is underMIT license.
Package: pysaga
# pysagaPackage python pour manipuler les données issues de [Neamar/sagas-mp3](https://github.com/Neamar/sagas-mp3)Installation avec pip:pip install pysagaNOTE: nécessite python 3.7.## Exemple avec Reflets d'Acideimport pysagafor episode in pysaga.rda.episodes:if episode.title == "L'enrôlement":print(episode.chapters[0].lines[0].content)print(episode.chapters[0].lines[2].content)# Non-implémenté :for episode in pysaga.get('Reflets d'Acide').episodes:print(f"L'épisode {episode.nb} contient {len(episode.chapters)} chapitres.")for chapter, characters in episode.chapters(chars=True):print(f"\tLe chapitre {chapter.nb} fait intervenir {', '.join(characters)}")## TODO- packaging fonctionnel- intégrer les données de Neamar/sagas-mp3 ?- implémenter l'interface haut-niveau- des tests sur les données connues, genre le premier exemple de ce readme.- implémenter un accès facile et haut-niveau pour les séries épisodes et chapitres (cf exemples de ce readme)- différencier les *épisodes* et les *fichiers*, car de nombreux fichiers ne sont pas des épisodes- tester sur les autres sagas (xantah et adop)
Package: pysagas
SAGASA simple async sagas implementationInstallation$ pip install pysagasUsageSimple exampleimportasynciofromsagasimportSagaBuildercounter=[10,20]amount=30defadd(amount,index):"""Increments array index by amountArgs:amount (int): increment valueindex (int): index of value to increment"""counter[index]+=amountdefdecrement(amount,index):"""Decrements array index by amountArgs:amount (int): decrement valueindex (int): index of value to decrement"""counter[index]-=amountreturncountersaga_builder=SagaBuilder.create()saga=saga_builder\.add_step(lambda:add(amount,0),lambda:decrement(amount,0))\.add_step(lambda:add(amount,1),lambda:decrement(amount,1))\.build()if__name__=="__main__":asyncio.run(saga.run(exceptions=(OSError)))print(counter)# [40, 50]Failure exampleIf one step fails, the compensating functions for the executed steps run and the counter values are compensatedimportasynciofromsagasimportSagaBuildercounter=[10,20]amount=30defadd(amount,index):"""Increments array index by amountArgs:amount (int): increment valueindex (int): index of value to increment"""counter[index]+=amountraiseException('error occurred')defdecrement(amount,index):"""Decrements array index by amountArgs:amount (int): decrement valueindex (int): index of value to decrement"""counter[index]-=amountreturncountersaga_builder=SagaBuilder.create()saga=saga_builder\.add_step(lambda:add(amount,0),lambda:decrement(amount,0))\.add_step(lambda:add(amount,1),lambda:decrement(amount,1))\.build()if__name__=="__main__":asyncio.run(saga.run(exceptions=(OSError,Exception)))print(counter)# [10, 20]CHANGESadd test stepadd unit testsch(docs):add documentation- add readme docs- add usage examples0.0.2rename packageadd changelogadd setup.py file0.0.1remove exampleSetup publishing to pypiinitial commit
Package: pysagec
pysagecis a Python library to use with SAGEC MRW webservices.It aims to be simple to use but with the ability to use any of the fields
of the underlying API:importpysagecimportdatetimeasdturl='//user:pass@example.com/?franchise=12&subscriber=34&department=56'client=pysagec.create_client(url)pickup_info=pysagec.PickupInfo(pickup_address=pysagec.Address(street_name='Plaza de España',postal_code='36001',city='Pontevedra'),recipient_name='Juan Pérez',recipient_phone_number='555555555',comments='Por las mañanas.',)service_info=pysagec.ServiceInfo(number_of_packages=1,date=dt.date.today(),service_code='0000',)response=client.send(pickup_info,service_info)print(response.shipping_number)FeaturesUse python classes instead of XML.Simplify method invocation.It has no dependencies, only standard library.InstallationInstallpysagecfrom PyPI:$pipinstallpysagecChange logUnreleased0.1.2 - 2017-04-19Remove unneeded print statement.0.1.1 - 2016-09-02Add an example.Include more models into __init__.0.1.0 - 2016-08-25First production ready release.LicenseMIT.
Package: pysagereader
Basic python reader for SAGE II and SAGE III binary data files into anxarraydata structure or a dictionary of numpy
arrays. The binary files SAGE data files are not supplied and must be downloaded by the user. They can be found at theNASA ASDCwebsite.InstallationTo install the package from pypi run:pip install pysagereaderDocumentationhttps://pysagereader.readthedocs.io/en/latest/Basic UseAn example of loading data from 2000 through 2003 between 10oN and 10oSfrompySAGE.pysagereader.sage_ii_readerimportSAGEIILoaderV700sage=SAGEIILoaderV700(data_folder='/path/to/sageii/data',filter_ozone=True)data=sage.load_data('2000-1-1','2003-12-31',-10,10)data.O3.plot(x='time',robust=True)Command Line UtilityIf you just need some yearly netcdf files you can run this script from the command line:python /install/directory/pysagereader/make_netcdf.py -i /sageii/data/folder -o /output/folder --time_res yearly
Package: pySailingVLM
About packageNowadays, the state-of-the-art CFD solvers (FEM, VOF, LBM) can provide incredibly accurate results for almost any geometry. However, the solution comes at the price of high amount of computational resources. To circumvent this issue, the low fidelity approaches like Vortex Lattice Method can be employed for particular types of computational problems. The VLM is an engineering standard in the conceptual design phase of aircraft or sailing yacht as it allows designers to quickly estimate the performance of numerous different models. Due to the specifics of conditions in which a sailing yacht operates, the VLM solvers dedicated to aircraft design can not be adopted in a straightforward fashion. Here, we present the first open-source Python package which implements the Vortex Lattice Method for the initial aerodynamic analysis of upwind sails. Through its lightweight requirements, the software can be easily installed and executed locally or accessed in a cloud environment such as Binder.OverviewJupyter & clipySailingVLm can be used as cli script or inside Jupyter Notebook. For more information see docs and interative Notebooks examples.Example outputspySailingVLM calculates forces, coefficients, moments acting on sails. Results are visualized and plotted:Users can also see colormap with their sails:Sample graphs generated by pySailingVLM:AndMore informationPlease followdocumentationfor installation and usage.
Package: pysak
🍉 pysak 是一个简单、强大、干净的python公共函数库。安装依赖库快速上手导入APIbasicfileimgpathtimeuser_agent注意事项已知问题许可证一些小技巧pip指定源安装导出当前项目依赖安装依赖库pip install -r requirements.txt -i https://pypi.douban.com/simple/快速上手导入import pysak as sakAPIbasic1、json转dict2、dict转jsonfile1、dict存入本地json文件2、json文件内容转dict3、将字符串存入本地文件4、移除某个目录下特定文件类型的文件名前缀（默认所有类型文件）img1、保存远程URL图片到本地path1、检测目录/文件是否存在2、创建目录（若路径不存在，则递归创建，若存在则不执行）time1、获取当前时刻指定长度的时间戳  10位~17位2、获取当前 DateTime（默认format="%Y-%m-%d %H:%M:%S"）user_agent1、获取随机UserAgent许可证MIT一些小技巧pip指定源安装#阿里源
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

#豆瓣
pip install -r requirements.txt -i https://pypi.douban.com/simple/

#清华大学
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/导出当前项目依赖pip freeze > requirements.txt
Package: pysaleryd
pysalerydPython library for controlling Saleryd HRV systemPython library for controlling Saleryd HRV system using the built in websocket server used by Saleryd HRV Homeassistant integrationhttps://github.com/bj00rn/ha-saleryd-ftxMaintains a reconnecting websocket to the system.Supported devicesLOKE1/Loke Basic/LS-01 using control system 4.1.5Usage with asyncio as libraryRead dataimportasyncioimportaiohttpfrompysaleryd.clientimportClientasyncwithaiohttp.ClientSession()assession:asyncwithClient(WEBSOCKET_URL,WEBSOCKET_PORT,session)ashrv_client:awaitasyncio.sleep(2)# wait a bit for some dataprint(client.data)Read data using callbackimportasyncioimportaiohttpfrompysaleryd.clientimportClientdefhandle_message(data:dict):print(data)update_interval=10# call handle_message every 30 secondsasyncwithaiohttp.ClientSession()assession:asyncwithClient(WEBSOCKET_URL,WEBSOCKET_PORT,session,update_interval)ashrv_client:hrv_client.add_handler(handle_message)awaitasyncio.sleep(update_interval+1)# wait around a bit for dataSend control commandCommand syntax can be found by dissecting websocket messages in the built in web uiimportasyncioimportaiohttpfrompysaleryd.clientimportClientasyncwithaiohttp.ClientSession()assession:asyncwithClient(WEBSOCKET_URL,WEBSOCKET_PORT,session)ashrv_client:awaithrv_client.send_command("XX",1)TroubleshootingConfirm system is connected and UI is reachable on the local network. Follow steps in the manual.Confirm websocket port by connecting to the UI using a browser and take note of websocket port using debug console in browser. 3001 is probably defaultThe system HRV system can only handle a few connected clients. Shut down any additional clients/browsers sessions and try again.DisclaimerUse at own risk.This project is in no way affiliated with the manufacturer.All product names, logos, and brands are property of their respective owners. All company, product and service names used are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.NoteThis project has been set up using PyScaffold 4.4. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: pysalesforceutils
PySalesforceThe purpose of this project is to replicate the Salesforce REST APIs in a Python library.UsageThe authentication method used in PySalesforce.Authentication.getOAuthLogin uses the Salesforce OAuth Password flow. You can choose to build and use your own authentication method, but if you want to use the OAuth flow, you'll need to create a connected app in Salesforce. YOu can do this from Setup->Create->Apps, then scroll down to the bottom and click the New button for Connected Apps. THE Callback URL is irrelavent, so you can put in anything you want. Make sure the Selected Scope OAuth Scopes = Full Access. After setting it up you'll receive a Consumer Key and Consumer Secret, which are the loginClientId and loginClientSecret parameters in the getOAuthLogin method respectively.Salesforce DocumentationAs I continue to update this library, I'll be adding reference links to the Salesforce documentation.List of Salseforce APIsTooling APIMetadata APIStreaming APIREST APIBulk APIBulk 2.0 APIChatter REST APIBulk API Trailhead ExampleNotesI had issues with OS X not being able to connect to any sandbox environments. The issue was related to my OpenSSL version not being up to date enough.You can run this test to check if your machine is up to date with SSL. Make sure it can run TLS 1.1 or 1.2import WebService
response = WebService.Tools.getHTResponse("https://www.howsmyssl.com/a/check", {})
print(response.text)
Package: pysaliency
PysaliencyPysaliency is a python package for saliency modelling. It aims at providing a unified interface
to both the traditional saliency maps used in saliency modeling as well as probabilistic saliency
models.Pysaliency can evaluate most commonly used saliency metrics, including AUC, sAUC, NSS, CC
image-based KL divergence, fixation based KL divergence and SIM for saliency map models and
log likelihoods and information gain for probabilistic models.Pysaliency provides several important datasets:MIT1003MIT300CAT2000TorontoKoehleriSUNSALICON (both the 2015 and the 2017 edition and each with both the original mouse traces and the inferred fixations)FIGRIMOSIENUSEF (the part with public images)and some influential models:AIMSUNContextAwareSaliencyBMSGBVSGBVSIttiKochJuddIttiKochRARE2012CovSalThese models are using the original code which is often matlab.
Therefore, a matlab licence is required to make use of these models, although quite some of them
work with octave, too (see below).InstallationYou can install pysaliency from pypi viapip install pysaliencyQuickstartimport pysaliency

dataset_location = 'datasets'
model_location = 'models'

mit_stimuli, mit_fixations = pysaliency.external_datasets.get_mit1003(location=dataset_location)
aim = pysaliency.AIM(location=model_location)
saliency_map = aim.saliency_map(mit_stimuli.stimuli[0])

plt.imshow(saliency_map)


auc = aim.AUC(mit_stimuli, mit_fixations)If you already have saliency maps for some dataset, you can import them into pysaliency easily:my_model = pysaliency.SaliencyMapModelFromDirectory(mit_stimuli, '/path/to/my/saliency_maps')
auc = my_model.AUC(mit_stimuli, mit_fixations)Using Octavepysaliency will fall back to octave if no matlab is installed.
Some models might work with octave, e.g. AIM and GBVSIttiKoch. In Debian/Ubuntu you need to installoctave,octave-image,octave-statistics,liboctave-dev.These models and dataset seem to work with octave:modelsAIMGBVSIttiKochdatasetsTorontoMIT1003MIT300SALICONDependenciesThe Judd Model needs some libraries to work. In ubuntu/debian you need to install these packages:libopencv-core-dev, libopencv-flann-dev, libopencv-imgproc-dev, libopencv-photo-dev, libopencv-video-dev, libopencv-features2d-dev, libopencv-objdetect-dev, libopencv-calib3d-dev, libopencv-ml-dev, opencv2/contrib/contrib.hpp
Package: pysalsa
SALSASet of scripts related to biomics projects and provided by the SALSA groupPython version:3.7, 3.8, 3.9Issues:On githubTutorialcomute-test sub commandCompute ttest of a input file that contains two groups of genes with their log2 fold change and pvalues. Input file has this header:gene, Group1_sample1_L2FC, Group1_sample2_L2FC, Group1_sample3_L2FC, Group1_sample4_L2FC,
      Group1_sample5_padj, Group1_sample6_padj, Group1_sample7_padj, Group1_sample8_padj,where Group1 and Group2 are tag to defined the two groups, and log2FoldChange and padj two patterns to set the log Fold change and adjuster pvalues columns. This names can be set to whatever string since options can be used to specify them.See an example in test/data/test_compute_ttest.csvsalsa compute-ttest --infile test.csv --outpfile out.csv --name-group1  Group1 --name-group2 Group2  \
    --name-log2-foldchange L2FC --name-log2-foldchange L2FC
Package: pysaltcorn
PySaltcornThis is python client interface forSaltcornREST API.Installation$pip3installpysaltcorn==0.3.1Usage>>>importio,pysaltcorn;frompprintimportpp>>>cl=pysaltcorn.SaltcornClient("https://url-encoded-email:password@tenant.saltcorn.com")>>>cl.login_session()>>>cl.files_upload({'filename.txt':io.StringIO('file content\n')},'/foldername/')True>>>pp(cl.files_list())[{'filename':'foldername','location':'/root/.local/share/saltcorn/netbox/foldername','uploaded_at':'2023-06-08T12:20:25.323Z','size_kb':4,'user_id':None,'mime_super':'','mime_sub':'','min_role_read':10,'s3_store':False,'isDirectory':True}]
Package: pysam
pysam — a Python package for reading, manipulating, and writing
genomic data sets.pysam is a lightweight wrapper of the HTSlib API and provides facilities
to read and write SAM/BAM/CRAM/VCF/BCF/BED/GFF/GTF/FASTA/FASTQ files
as well as access to the command-line functionality of samtools and bcftools.
The module supports compression and random access through indexing.This module provides a low-level wrapper around HTSlib’s C API using Cython
and a high-level API for convenient access to the data within standard genomic
file formats.