Saravanan666/pypi-org huggingface dataset:
Package: pysockssl
pySockSSLSimilar toBurpsuitemitmproxyCharles ProxyFiddlerand many more ...But more simple and focus on TCP/TLS stream capture ONLY - NO data analyzing 🤐SupportTCP onlySOCKSv4 + user authSOCKSv5 + user/pwd auth[Dummy] cert generatorSSL/TLS man-in-the-middle 😎API to intercept captured dataInstallpip3installpysocksslorgitclonehttps://github.com/trichimtrich/pysocksslcdpysockssl
python3setup.pyinstallUsage & APICheck out the doc athttps://pysockssl.readthedocs.ioTODOInteractive interfaceCLI addon to save dummy cert from rootCABlacklist / whitelist / passthru TLS DomainLicenseGNU GPLv3
Package: pysoda
PysodaPysoda is extend of Pygame Zero.FeatureEasy as Pygame ZeroFull Screen Mode => fullscreen() , window()Mouse Cursor On/Off => mouse_on(),mouse_off()Raad MapScroll & Tiled support2D PhysicImage Processing (OpenCV)AI (Tensorflow)Installationpip install pysodaChange from Pygame Zeroimport pgzrun => from pysoda import *pgzrun.go() => run()Some examplesfrom pysoda import *
WIDTH = 300
HEIGHT = 300
def draw():
    fullscreen()
    screen.fill((128, 0, 0))
run()
Package: py-sodium
PySodium V0.0.1UsageInstall the PySodium Librarypip install git+https://github.com/satyajitghana/PySodium.git#egg=sodiumCreate a config.ymlname:CIFAR10_MyNetsave_dir:saved/seed:1target_device:0arch:type:CIFAR10Modelargs:{}augmentation:type:CIFAR10Transformsargs:{}data_loader:type:CIFAR10DataLoaderargs:batch_size:64data_dir:data/nworkers:4shuffle:Truecriterion:cross_entropy_losslr_scheduler:type:OneCycleLRargs:max_lr:0.1optimizer:type:SGDargs:lr:0.008momentum:0.95training:epochs:50Run the Model !# import my baby-libraryfromsodium.utilsimportload_configimportsodium.runnerasrunner# create a runnerconfig=load_config('config.yml',tsai_mode=False)# train the networkrunner.train(config)# plot metricsrunner.plot()NOTEif you are using the library on a terminal, you can use the main.py and callpython main.py --config=config.ymlMade with ❤ by shadowleaf.satyajit
Package: pysoem
PySOEM is a Cython wrapper for the Simple Open EtherCAT Master Library (https://github.com/OpenEtherCATsociety/SOEM).IntroductionPySOEM enables basic system testing of EtherCAT slave devices with Python.Featuresinput process data read and output process data writeSDO read and writeEEPROM read and writeFoE read and writeTodoEoEBeware that real-time applications need some special considerations.RequirementsLinuxPython 3Python scripts that use PySOEM must be executed under administrator privilegesWindowsPython 3 / 64 BitNpcap[*]orWinPcap[*]Make sure you check “Install Npcap in WinPcap API-compatible Mode” during the installmacOS (new with PySOEM 1.1.5)Python 3Installationpython -m pip install pysoemorpip install pysoemConsider using avirtualenv.UsageAlthough there are some pieces missing, the documentation is hosted on “Read the Docs” at:pysoem.readthedocs.io.Please also have a look atthe examples on GitHub.ContributionAny contributions are welcome and highly appreciated.
Let’s discuss any (major) API change, or large piles of new code first.
Usingthis pysoem chat room on gitteris one communication channel option.Changesv1.1.5Adds support for redundancy mode,master.open()provides now an optional second parameter for the redundancy port.v1.1.4Fixes Cython compiling issues.v1.1.3Adds function_disable_complete_access()that stops config_map() from using “complete access” for SDO requests.v1.1.0Changed the data type for thenameattribute of SDO info CdefCoeObject and CdefCoeObjectEntry, they are of type bytes now instead of a regular Python 3 string.Also changed thedescattribute of thefind_adapters()list elements tobytes.Introduces theopen()context manager function.Adds thesetup_functhat will maybe later replace theconfig_func.v1.0.8Version bump only to re-upload to PyPI with windows-wheel for Python 3.11v1.0.7Fix issues with timeouts atamend_mbxandset_watchdog.v1.0.6Introducesamend_mbxandset_watchdog, though this is rather experimentalNew examplefirmware_update.py.v1.0.5Introduces themanual_state_changepropertyv1.0.4Proper loggingIntroducesmbx_receivev1.0.3Fix the FoE password issuev1.0.2Licence change to MIT licenceIntroduces configurable timeouts for SDO read and SDO writeImproved API docsv1.0.1API change: remove the size parameter forfoe_writeIntroduces overlap map supportv1.0.0No Cython required to install the package from the source distributionv0.1.1Introduces FoEv0.1.0Update of the underlying SOEMv0.0.18Fixes bug when Ibytes = 0 and Ibits > 0v0.0.17Exposes ec_DCtime (dc_time) for DC synchronizationv0.0.16Improvement on SDO Abortsv0.0.15SDO info readv0.0.14Readme update onlyv0.0.13Initial publication
Package: pysoem-nt15
PySOEM is a Cython wrapper for the Simple Open EtherCAT Master Library (https://github.com/OpenEtherCATsociety/SOEM).IntroductionPySOEM enables basic system testing of EtherCAT slave devices with Python.Featuresinput process data read and output process data writeSDO read and writeEEPROM read and writeFoE read and writeTodoEoEBeware that real-time applications need some special considerations.RequirementsLinuxPython 3GCC (installed on your machine)Python scripts that use PySOEM must be executed under administrator privilegesWindowsPython 3 / 64 BitNpcap[*]orWinPcap[*]Make sure you check “Install Npcap in WinPcap API-compatible Mode” during the installInstallationpython -m pip install pysoemorpip install pysoemConsider using avirtualenv.UsageAlthough there are some pieces missing, the documentation is hosted on “Read the Docs” at:pysoem.readthedocs.io.Please also have a look atthe examples on GitHub.ContributionAny contributions are welcome and highly appreciated.
Let’s discuss any (major) API change, or large piles of new code first.
Usingthis pysoem chat room on gitteris one communication channel option.Changesv1.0.8Version bump only to re-upload to PyPI with windows-wheel for Python 3.11v1.0.7Fix issues with timeouts atamend_mbxandset_watchdog.v1.0.6Introducesamend_mbxandset_watchdog, though this is rather experimentalNew examplefirmware_update.py.v1.0.5Introduces themanual_state_changepropertyv1.0.4Proper loggingIntroducesmbx_receivev1.0.3Fix the FoE password issuev1.0.2Licence change to MIT licenceIntroduces configurable timeouts for SDO read and SDO writeImproved API docsv1.0.1API change: remove the size parameter forfoe_writeIntroduces overlap map supportv1.0.0No Cython required to install the package from the source distributionv0.1.1Introduces FoEv0.1.0Update of the underlying SOEMv0.0.18Fixes bug when Ibytes = 0 and Ibits > 0v0.0.17Exposes ec_DCtime (dc_time) for DC synchronizationv0.0.16Improvement on SDO Abortsv0.0.15SDO info readv0.0.14Readme update onlyv0.0.13Initial publication
Package: pysofa
pysofais aPythonmodule for
accessingInternational Astronomical Union’sSOFA libraryfrom python. SOFA (Standards
of Fundamental Astronomy) is a set of algorithms and procedures that
implement standard models used in fundamental astronomy.pysofais not a port of SOFA routines but a wrapper around the SOFA_C
library. Thus, no calculations are made into the pysofa software, they are
all delegated to the underlying SOFA_C library.pysofais neither distributed, supported nor endorsed by the International
Astronomical Union. In addition topysofa’s license, any use of this module
should comply withSOFA’s license and terms of use. Especially, but not exclusively, any
published work or commercial products which includes results achieved by usingpysofashall acknowledge that the SOFA software was used in obtaining those
results.
Package: pysofa2
pysofa2is a module for using International Astronomical
Union's (http://www.iau.org/) SOFA library (http://www.iausofa.org/) in
python. It is inspired by originalpysofaimplementation of Frederic Grollier. It extends the original pysofa module by
distributing and building the SOFA C library with the package, eliminiting the
need for the end-user to build the libraries separaetly from the package
installtion.Likepysofa,pysofa2is not a port of SOFA routines but a wrapper around the
SOFA C library. Thus, no calculations are made into the pysofa software, they are
all delegated to the underlying SOFA_C library.pysofa2not endorsed by the International Astronomical Union.
In addition topysofa2's MIT license, any use of this module should comply
with SOFA's license andterms of use.
Especially, but not exclusively, any published work or commercial products
which includes results achieved by usingpysofashall acknowledge that the
SOFA software was used in obtaining those results.
Package: pysofe
AboutPySOFE is a Python software package for solving partial differential
equations in 1D, 2D, and 3D using the finite element method.InstallationPySOFE is hosted at the Python Packaging Index so you can simply
install it by running:$ pip install pysofein a terminal. For further information please have a look at the
documentation.DocumentationThe documentation can be found atreadthedocs.org.LicensePySOFE is published under the BSD license.
Package: pysofft
PySOFFTThis package allows to compute Fourier transforms on the rotation group SO(3).It is a partial python port of soft-2.0 released by Peter Kostelec and Daniel Rockmore.For details see their paper:FFTs on the Rotation GroupJ Fourier Anal Appl (2008) 14: 145–179DOI 10.1007/s00041-008-9013-5The present numba code is a more or less straight copy/adaptation of the original C implementation.PySOFT is made available with conset of the original authors and under the same GPL3 license.Installationpip install pysofftDependencies are: numpy and numbaUsageCreating a Transform class for a fixed bandwidth (maximal considered spherical harmonic order +1)from pysofft.soft import Soft

bandwidth = 32
soft_obj = Soft(bandwidth)SO(3) grid points (gives as (2 bandwidth,2 bandwidth,2 bandwidth,3) array of euler angles $\alpha,\beta,\gamma$):soft_obj.gridFFT Coefficient grid points labeled by $n,m,l$ corresponding to the Wigner-D matrix $D^l_{n,m}$soft_obj.coeff_gridCreating random coefficients and computing the FFT on SO(3)import numpy as np
Flnm=np.random.rand(*soft_obj.coeff_grid.shape[:-1]).astype('complex')

f = soft_obj.inverse_cmplx(Flnm) # inverse Transform   (Dlnm Coefficients -> SO(3))
Flnm2 = soft_obj.forward_cmplx(f) # forward Transform  (SO(3) -> Dlnm Coefficients)Known IssuesThere are some bugs when spawning child processes after instanciation of the class Soft.
So, as of now consider Soft to be not fork save.
If you want to use Soft in a multiprocess environment initiallize Soft in each child process individually.
Package: pysofia
PySofiaPySofia is a python wrapper around the methods present in the C++ sofia-ml library. These include Stochastic Gradient Descent implementations of some ranking algorithms, notably RankSVM.Dependenciescython >= 0.17 (previous versions will not work)numpysklearn >= 0.15sixenum34 (for Python versions before 3.4)A C++ compiler (gcc will do)You will not need to install sofia-ml since it is incuded in this distributionInstallation$ pip install -U git+https://github.com/rth/pysofia.gitMethodspysofia.train_svmTrains a model using stochastic gradient descent. See docstring for
more details.pysofia.compat.RankSVM implements an estimator following the conventions
used in scikit-learn.DevelopmentCheck out the latest version at github:https://github.com/rth/pysofia/LicenseApache License 2.0AuthorsPySofia is the work of Fabian Pedregosa, currently maintained by Roman Yurchak. The sofia-ml library is written by D. Sculley.
Package: pysoftNLP
###pysoftnlp--- 河南863软件孵化器有限公司大数据事业部商机雷达事业部自然语言处理工具包--- pysoftNLP是一个提供常用NLP功能的工具包， 宗旨是直接提供方便快捷的解析、词典类的面向中文的工具接口，并提供一步到位的查阅入口。功能主要包括：中文分词（tokenizer）文本清洗（clean）文本分类（classification）命名实体识别（公司，ner)文本数据增强（enhancement）句义相似度计算（similarities）关键字提取（extraction）持续更新中...###安装 Installationwin环境:pipinstallpysoftNLP==0.0.4-ihttps://pypi.python.org/simple资源包下载和使用pysoftNLP_resources 下载之后请放置的D盘中 ,下载地址：链接：https://pan.baidu.com/s/1nAC3c_52ILtZ6WWDCBlpnQ提取码：e5qz
复制这段内容后打开百度网盘手机App，操作更方便哦D:\pysoftNLP_resources###使用 Features1.分类模型使用frompysoftNLP.classificationimportbert_dnn#分类模型--训练train_data='x_tr_863.csv'test_data='x_te_863.csv'train_df,test_df=bert_dnn.read_data(train_data,test_data)#encode:词向量模型（目前只支持bert） ，sentence_lenth: 50(句子的长度)， num_classes（9分类）args={'encode':'bert','sentence_length':50,'num_classes':9,'batch_size':128,'epochs':100}bert_dnn.train(train_df,test_df,args)frompysoftNLP.classificationimportpre#分类模型--预测model_name='863_classify_hy.h5'label_map={0:'it',1:'电力热力',2:'化工',3:'环保',4:'建筑',5:'交通 ',6:'教育文化',7:'矿业',8:'绿化',9:'能源',10:'农林',11:'市政',12:'水利',13:'通信',14:'医疗',15:'制造业'}texts=['广西打好“电力牌”组合拳助力工业企业从复产到满产中国新闻网','分别是吕晓雪、唐禄俊、梁秋语、王翠翠、杨兴亮、吕桃桃、张耀夫、郭建波、中国医护服务网','富拉尔基区市场监管局开展《优化营商环境条例》宣传活动齐齐哈尔市人民政府','2020上海（国际）胶粘带与薄膜技术展览会制造交易网']pre.predict(model_name,texts,label_map)2、数据增强frompysoftNLP.enhancementimportaugmentinput='D:\pysoftNLP_resources\enhancement\Test\Trian_hy.csv'output='D:\pysoftNLP_resources\enhancement\Test\Trian_out.csv'num_aug=20#一条数据可以扩展到多少条alpha=0.05#一条数据量变化的百分比augment.gen_eda(input,output,alpha,num_aug)3、命名实体识别（公司）frompysoftNLP.nerimporttrainargs={'sentence_length':100,'batch_size':512,'epochs':20}# 参数output_path='ner_company'#模型的输出train.train(args,output_path)#单句预测frompysoftNLP.nerimportpretext='这是一个单句'#model_name='ner'pre.single_sentence(text,model_name)#多句预测out_path='D:\pysoftNLP_resources\entity_recognition'list=['中广核新能源湖南分公司','该公司','中广核新能源公司']pre.multi_sentence(list,output_path,model_name)4、相似度计算#文本相似度计算frompysoftNLP.similaritiesimportsimilartest_vec='自然语言处理与人工智能'sentences=['逍遥派掌门人无崖子为寻找一个色艺双全、聪明伶俐的徒弟，设下“珍珑”棋局，为少林寺虚字辈弟子虚竹误撞解开。','慕容复为应召拒绝王语嫣的爱情；众人救起伤心自杀的王语嫣，后段誉终于获得她的芳心。','鸠摩智贪练少林武功，走火入魔，幸被段誉吸去全身功力，保住性命，大彻大悟，成为一代高僧。','张无忌历尽艰辛，备受误解，化解恩仇，最终也查明了丐帮史火龙之死乃是成昆、陈友谅师徒所为','武氏与柯镇恶带着垂死的陆氏夫妇和几个小孩相聚，不料李莫愁尾随追来，打伤武三通','人工智能亦称智械、机器智能，指由人制造出来的机器所表现出来的智能。','人工智能的研究是高度技术性和专业的，各分支领域都是深入且各不相通的，因而涉及范围极广。','自然语言认知和理解是让计算机把输入的语言变成有意思的符号和关系，然后根据目的再处理。']args={'encode':'bert','sentence_length':50,'num_classes':9,'batch_size':128,'epochs':100}similar.similar(sentences,test_vec,args,3)5、关键词抽取frompysoftNLP.extractionimportkeywordtext='6月19日,《2012年度“中国爱心城市”公益活动新闻发布会》在京举行。'+\'中华社会救助基金会理事长许嘉璐到会讲话。基金会高级顾问朱发忠,全国老龄'+\'办副主任朱勇,民政部社会救助司助理巡视员周萍,中华社会救助基金会副理事长耿志远,'+\'重庆市民政局巡视员谭明政。'print(text)pos=Trueseg_list=keyword.seg_to_list(text,pos)filter_list=keyword.word_filter(seg_list,pos)print('TF-IDF模型结果：')keyword.tfidf_extract(filter_list)print('TextRank模型结果：')keyword.textrank_extract(text)print('LSI模型结果：')keyword.topic_extract(filter_list,'LSI',pos)print('LDA模型结果：')keyword.topic_extract(filter_list,'LDA',pos)
Package: pysoilmap
Tools for performing Digital Soil Mapping (DSM) with python.This project aims to provide a high-level user interface and examples for
common tasks related to DSM, accessible through a command line interface or
python APIs. The actual legwork is done by established libraries for numerical
computations, machine-learning, image-processing, geostatistics, projections,
geometries, file-formats, etc. Customized solutions are implemented where
needed or more convenient.FeaturesThis project has just been initiated, there are no(t many) features yet.Features so far:(none)RoadmapIn the future, we plan on working the following features:common interface for several machine learning models for linear
regression, kriging, regression-kriging, random forests, …computation of several topographic covariates from DEM (curvatures, slope,
aspect, radiation angle, …)plotting of raster and vector datareprojection, resamplingsampling points from vector datasetscustom non-stationary GP kernels for DSMalgorithms for experimental design (DOE)3D terrain survey…?LinksDocumentationReleasesSource CodeLicenseTestsInstallationOnce the first release is available, install via:pipinstallpysoilmapUsageTBD
Package: pysokoban
PySokobanA highly customizable sokoban implementation using Python’s tkinter.View the package in the PyPIrepositoryfor documentation and an easy Win32 installation.RequirementsPython 2+TkinterUsageInstalling it using pip:Runpip install--userpysokobanRunpysokobanto
play!Installing it from the Git repository:Clone the repository.Runpython setup.py sdistfrom the project directory to create a
source distribution.Runpip install--userpysokoban*.tar.gzfrom the newdist/directory to install the package.Runpysokobanorpython-c"import pysokoban.sokoban as skb;skb.main()"to
play!Orjust runpython sokoban.pyfrom the project directory
without installing the package.To update the version:Clone or pull the repository for the latest version.Recreate the source distribution using the steps above.Runpip upgradepysokoban*.tar.gzfrom thedist/directory to
upgrade the package.To uninstall, runpip uninstall pysokoban.You can modify the graphics used by replacing the images in the images folder.
Package: pysolaredge
# Python-solaredgePython-solaredge (pysolaredgefor short) is a library for decrypting and
decoding messages from a SolarEdge photo-voltaic installation (solar panels,
optimizers and inverters, mainly). Such an installation normally reports its
statistics to a server operated by SolarEdge.  This libray allows you to decode
the data yourself, and use it how you see fit.
Package: py-solaredge
pysolaredgePython API wrapper for SolarEdge monitoring.This library allows you to easily communicate with the SolarEdge API to get data about solar installations.For more information about the documentation seehttps://www.solaredge.com/sites/default/files/se_monitoring_api.pdfInstallationpip3 install py-solaredgeGetting startedImporting the SolarEdge client:from solaredge.api.client import ClientInitializing the SolarEdge API client, and setting your API key:se_client = Client()
se_client.set_api_key('XXX')API'sAll of the API classes are available through the client object.Client()is the base instance that allows access to the underlying classes and to call API endpoints to get data.
Classes available at this point aresitesandequipment.SitesGetting all sites:sites = se_client.sites.get_sites()Getting the number of sites:number_of_sites = se_client.sites.get_total_sites()EquipmentGetting the equipment / component list for a location:equipment = se_client.equipment.get_site_equipment('location_id')
Package: pysolarenergy
Python SolarEnergy®Asynchronous Python client forSolarEnergy®inverters.AboutThis package allows you to monitorSolarEnergy®inverters programmatically:Equipment serial, model and general infoTemperature and inverter healthReal time power, current and voltageGrid power informationDaily/Total energy summariesNetwork summaryInstallpipinstallpysolarenergyQuick StartimportasynciofrompysolarenergyimportSolarEnergyInverterasyncdefmain():"""Show example of connecting to your inverter."""asyncwithSolarEnergyInverter(host='192.168.1.22')asinverter:info=awaitinverter.get_info()print(info)if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())DocumentationMethodsget_info()get_real_time_data()get_network()Confirmed Supported InvertersThese inverters have been tested and confirmed to be working.SE-TL2KIf your inverter is not listed above, this library may still work. Please create an issue so we can add your inverter to the list 😊.DisclaimerThe code was developed as a way of integrating personally ownedSolarEnergy®inverters, and it cannot be used for other purposes. It is not affiliated with any company and it doesn't have have commercial intent.The code is provided AS IS and the developers will not be held responsible for failures in the inverter, or any other malfunction.SolarEnergy®is a registered mark. Other brands are owned by their respective owners.
Package: pysolarfrontier
PySolarFrontierPySolarFrontier interacts as a library to communicate with Solar Frontier inverters.I created this library to use it in the Solar Frontier Inverter integration made for Home Assistant.Confirmed to work with the SF-WR-3000 inverter.Credits tofredericvl and his pysaj library, alot of the code is based on his library.Example usageCustomize based on your needs.#!/usr/bin/env python3importpysolarfrontieraspysfimportasyncioINVERTER_IP='x.x.x.x'asyncdefexample():# Initiate sensorssensor_def=pysf.Sensors()# Define IP of the invertersf=pysf.SF(INVERTER_IP)# Get sensor valuesawaitsf.read(sensor_def)# Print sensor valuesforsensorinsensor_def:print()print('key:             ',sensor.key)print('name:            ',sensor.name)print('unit:            ',sensor.unit)print('value:           ',sensor.value)print('per_day_basis:   ',sensor.per_day_basis)print('per_total_basis: ',sensor.per_total_basis)print('date:            ',sensor.date)print('enabled:         ',sensor.enabled)asyncio.run(example())
Package: pysolarmanv5
pysolarmanv5This is a Python module to interact with Solarman (IGEN-Tech) v5 based solar
inverter data loggers. Modbus RTU frames can be encapsulated in the proprietary
Solarman v5 protocol and requests sent to the data logger on port tcp/8899.This module aims to simplify the Solarman v5 protocol, exposing both sync and
async interfaces similar to that of theuModbuslibrary.Details of the Solarman v5 protocol have been based on the excellent work ofInverter-Data-Logger by XtheOneand others.Documentationpysolarmanv5 documentation is available onRead the Docs.The Solarman V5 protocol is documentedhere.Supported DevicesA user contributed list of supported devices is availablehere.If you are unsure if your device is supported, please use thesolarman_scanutility to find compatible data logging sticks on your local network.Please note that theSolis S3-WIFI-STdata logging stick isNOT supported.SeeGH issue #8for further information.Some Ethernet data logging sticks have native support Modbus TCP and thereforedo not require pysolarmanv5.
SeeGH issue #5for further information.Dependenciespysolarmanv5 requires Python 3.8 or greater.pysolarmanv5 depends onuModbus.InstallationTo install the latest stable version of pysolarmanv5 from PyPi, run:pip install pysolarmanv5To install the latest development version from git, run:pip install git+https://github.com/jmccrohan/pysolarmanv5.gitProjects using pysolarmanv5StephanJoubert/home_assistant_solarmanNosIreland/solismon3NosIreland/solismodjmccrohan/ha_pyscript_pysolarmanv5YodaDaCoda/hass-solarman-modbusschwatter/solarman_mqttRonnyKempe/solismontoledobastos/solarman_battery_autochargeAndyTaylorTweet/solis2mqttpixellos/codereinvented.automation.pycjgwhite/hass-solarimcfarla2003/solarconfiggithubDante/deye-controllerdanfoster/solisContributionsContributions welcome. Please raise any Issues / Pull Requests viaGithub.Licensepysolarmanv5 is licensed under theMIT License. Copyright (c) 2023 Jonathan McCrohan