Saravanan666/pypi-org huggingface dataset:
Package: sescore2
SESCORE2: Learning Text Generation Evaluation via Synthesizing Realistic MistakesSESCORE2, is a SSL method to train a metric for general text generation tasks without human ratings. We develop a technique to synthesize candidate sentences with varying levels of mistakes for training. To make these self-constructed samples realistic, we introduce retrieval augmented synthesis on anchor text; It outperforms SEScore in four text generation tasks with three languages (The overall kendall correlation improves 14.3%).Paper: https://arxiv.org/abs/2212.09305Author Email: wendaxu@cs.ucsb.eduMaintainer Email: zihan_ma@ucsb.eduInstall all dependencies:```
pip install sescore2
```Instructions to score sentences using SEScore2:Currently, the PyPI version only support English (en) and German (de) Checkpoint. The model checkpoint is trained using mT5-xl and using Human rating data to fine-tune.To run SEScore2 for text generation evaluation:```
from sescore2 import SEScore2

scorer = SEScore2('en') # Download and load in metric with specified language, en (English), de (German), ja ('Japanese')

refs = ["Jova becomes Western Hemisphere's strongest hurricane so far in 2023 ... for now", "Jova becomes Western Hemisphere's strongest hurricane so far in 2023 ... for now"]

outs = ["Jova set to become Western Hemisphere's most powerful hurricane in 2023...so far", "Jova set to become Western Hemisphere's weakest hurricane in 2023"]

scores_ls = scorer.score(refs, outs, 1)
```GitHub PageIf you want to reproduce the synthetic data, and use the original XLM/RemBERT SEScore2 weight, please refer to the GitHub repository:https://github.com/xu1998hz/SEScore2Install all dependencies for GitHub version:```
pip install -r requirement/requirements.txt

# To evaluate WMT shared metric task using official script
git clone https://github.com/google-research/mt-metrics-eval.git
cd mt-metrics-eval
pip install .

# Download evaluation data for WMT20, 21 and 22
alias mtme='python3 -m mt_metrics_eval.mtme'
mtme --download  # Puts ~1G of data into $HOME/.mt-metrics-eval.
```Score sentences using SEScore2 for GitHub version:Download weights and data from Google Drive (https://drive.google.com/drive/folders/1I9oji2_rwvifuUSqO-59Fi_vIok_Wvq8?usp=sharing)
We support five languages: English, German, Spanish, Chinese and Japanese.```
from SEScore2 import SEScore2
from train.regression import *

scorer = SEScore2('en') # load in metric with specified language, en (English), de (German), ja ('Japanese')

refs = ["SEScore is a simple but effective next generation text generation evaluation metric", "SEScore it really works"]

outs = ["SEScore is a simple effective text evaluation metric for next generation", "SEScore is not working"]

scores_ls = scorer.score(refs, outs, 1)
```
Package: sesh
Sesh is a tool for managing music classes from the command line.InstallingInstall and update usingpipenv:pipenvinstallseshA Simple Exampleseshadmin--init-db--load-sample-dataseshshowaccount-m11-2019--all-vLinksWebsite:https://pypi.org/project/sesh/Documentation:https://brianfarrell.gitlab.io/seshLicense:https://www.gnu.org/licenses/agpl.htmlReleases:https://pypi.org/project/sesh/Code:https://gitlab.com/brianfarrell/seshIssue tracker:Test status:Test coverage:
Package: seshet
Modular, dynamic Python IRC botInstallingSimply clone the repository and run./setup.py install. You may need to mark it as executable first, and may need to run it as root or with sudo.You can also install usingpip3 install seshet.RunningAfter isntalling, you can test that the installed version works by runningseshet-test.pyor by opening a Python 3 interpreter and running:>>> import seshet.config
>>> bot = seshet.config.build_bot()
>>> bot.connect()
>>> bot.start()This will start a bot using the default configuration. You can terminate the bot at any time by terminating the Python interpreter.Note:seshet-test.pydoes not use a database, but creates a log file./seshet.log. Importing seshet and building a bot using the default configuration as described above does use a database and creates a./seshet.dbfile and some./*.tablefiles.
Package: seshkit
seshkitseshkit is a command-line tool for creating transcripts from audio files.Named afterSeshat, the goddess of scribesStatus (2020-10-10)I just created this repo on a lark. No functionality is implemented other than Click skeleton scaffolding. Check back later!FeaturesFree software: MIT licensemanager/wrapper around AWS boto/awscliCreditsCurrent author: Dan Nguyen@dancowThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2020-10-10)First release on PyPI.
Package: seshypy
FeaturesMake API Gateway signed requests.Helper methods for delete, get, post, and put.Permanent STS hops creds creds resolver.Session sharing.Method caching with TTL.given secretsresolved from shared credential) (using transparent STS or secrets)given role (using shared credentials)given secrets and roleMultiple authentication methods.DocumentationDocumentation can be found athttps://seshypy.readthedocs.io/.
Package: sesiweb
sesiwebsesiweb is a Python module used as a synchronous driver for the SideFX Web API. It provides a simple interface to interact with the API and obtain data about Houdini product builds.Inputs are validated with Pydantic, and methods in sesiweb provide additional lookup functionality, exceptions, and models.Table of ContentsInstallationDaily Build ListingAcquiring a Build DownloadLicenseInstallationYou can install sesiweb via pip:pipinstall--upgradesesiwebNote: sesiweb is intended for Python 3, as it supports several modern Python features.Daily Build ListingTo use sesiweb, you need to provide your SideFX API credentials:fromsesiwebimportSesiWebsesi_secret="your_secret_key"sesi_id="your_client_id"sw=SesiWeb(sesi_secret,sesi_id)Once you have created an instance of SesiWeb, you can call its methods to retrieve data. For example,get_latest_buildswill return a list of theDailyBuildobject:# Get the most recent Houdini product buildsbuild={"product":"houdini","platform":"linux","version":"19.5"}latest_builds=sw.get_latest_builds(build)print(latest_builds)This will return:[DailyBuild(product='houdini',platform='linux_x86_64_gcc9.3',version='19.5',build='569',date='2023/03/29',release='gold',status='good'),DailyBuild(...You can also filter builds with theprodfilterarg:buildfilter={"status":"good","release":"gold"}latest_builds=sw.get_latest_builds(prodinfo=build,prodfilter=buildfilter)For more information on the SideFX Web API and the returned results you can filter by, refer to theSideFX Web API documentation.Acquiring a Build DownloadUsing sesiweb and Pydantic, you can also transform aDailyBuildobject into aProductBuildobject, which is a required input for acquiring a download URL.In the script below, the single latest daily development build (irrespective of version number) is acquired usingget_latest_build.get_build_downloadis then used to return the download metadata for that build:fromsesiwebimportSesiWebfromsesiweb.model.serviceimportProductBuildsesi_secret="your_secret_key"sesi_id="your_client_id"sw=SesiWeb(sesi_secret,sesi_id)# Get the most recent Houdini product buildsbuild={"product":"houdini","platform":"linux"}# Get the latest Houdini buildbuild=sw.get_latest_build(prodinfo=build,only_production=False)# Get the download URL, filename and hash of the buildbuild_dl=sw.get_build_download(prodinfo=ProductBuild(**build.dict()))print(build_dl)This will return aBuildDownloadModelobject containing a download URL, build filename, and hash:download_url=AnyUrl('https://gjvnth38g.cloudfront.net/download/download-build/456223/cdn/?Expires=166636236...For an example of using this metadata in a purpose suitable for a production environment, seeautobuild.pyinHoudini-Docker; Where sesiweb build data is used to construct a Docker image using a custom Houdini installation process.Licensesesiweb is licensed under the MIT License. SeeLICENSEfor more information.
Package: seso
SeSoA Search and Sort Extension Module for PythonInstallpip3 install sesoTestspython3 -m unittest discover testsList of AlgorithmsSearchlinear searchbinary searchjump searchinterpolation searchexponential searchfibonacci searchternary searchSortbubble sortselection sortinsertion sortmerge sortquick sortheap sortradix sortbucket sortshell sorttim sortDocumentation
Package: sesparser
sesparsersesparseris a simple, yet elegant, Email parsing library received through AWS SES.>>>importsesparser>>>s=sesparser.online('s3_ses_event')>>>s.recipientsomeone@example.com>>>s=sesparser.online('s3_ses_event',dynamodb=True,table_name="core-mail-data-1"){'UnprocessedItems':{},'ConsumedCapacity':[{'TableName':'core-mail-data-1','CapacityUnits':20.0}],'ResponseMetadata':{'RequestId':'H7210I9JBDH33CKJH1JO16QSEFVV4KQNSO5AEMVJF66Q9ASUAAJG','HTTPStatusCode':200,'HTTPHeaders':{'server':'Server','date':'Thu, 09 Nov 2023 03:20:55 GMT','content-type':'application/x-amz-json-1.0','content-length':'98','connection':'keep-alive','x-amzn-requestid':'H7210I9JBDH33CKJH1JO16QSEFVV4KQNSO5AEMVJF66Q9ASUAAJG','x-amz-crc32':'2598397897'},'RetryAttempts':0}}>>>s.archive.s3.key'<DS0PR02MB924561B21196B9EE08B3B93BC2AFA@DS0PR02MB9245.namprd02.prod.outlook.com>'>>>s.timestamp20231109233614>>>print(s){"all_email_keys":"all_email_key_values"}sesparser allows you to work on lambda extremely easily. There’s no need to manually add query strings to your function, or to decode youremldata — but nowadays, just use theSNS-Eventmethod!sesparser is one of the most downloaded Python packages today, pulling in around30 downloads / week— according to GitHubInstalling sesparser and Supported Versionssesparser is available on PyPI:$python-mpipinstallsesparsersesparser officially supports Python 3.7+.Supported Features & Best–Practicessesparser is ready for the demands of building robust and reliable email parsing applications, for the needs of today.Handling inline attachmentsFile placeholderscloud savingData decodingAdvanced multipart handlerDifferent domains handlerHandle offline tooExtra layer detection of filenamesAdded support for AWS Lambda LayerAdvanced Security DetailsSpam recognitionDKIM,DMARC,SPF and other standard complianceSegregating on user recipient mail idBulk processingAPI Reference and User Guide available onRead the DocsCloning the repositorygitclone-cfetch.fsck.badTimezone=ignorehttps://github.com/suryavaddiraju/sesparser.git
Package: ses-send
ses-sendSimple wrapper to send emails viaAWS SESDescriptionses-sendis a wrapper for the boto3 SES client. It allows the user to describe the email in ayamlconfiguration file instead of having to map it manually.RequirementsModule requirements areboto3andyaml. You must also have an SES identity already configured.Installationpipinstallses-sendConfiguration exampleemail:destination_address:youremail@gmail.comsource_address:automation@yourdomain.comsubject:Automation notificationmessage:This is a notificationaws:region:us-east-1Usagefromses_sendimportSESSend# You can omit the config_file keyword if you have config.yaml in the current pathx=SESSend(config_file="/path/to/config")x.send_email()Will returnTrueif the send was successful.
Package: session-fernet-asgi
ASGI session middlewareProvides an encrypted and signed session that is stored as aFernettoken on the client.ContributingBefore committing, run the following and check if it succeeds:pipinstall--user-rrequirements-dev.txt&&\blacksession_fernet_asgi.py&&\pylintsession_fernet_asgi.py&&\pytest&&\coveragereport--fail-under=100
Package: sessionize
Sessionize: intutive Python SQL table manipulation toolkitWhat is it?Sessionizeis a Python package that has an intuitive API that utilizes SqlAlchemy to connect to and manipulate records in SQL tables.Main FeaturesHere are just a few of the things that Sessionize does well:Quickly and easily start a SQL session to insert, delete, and update records in SQL tables.Roll back any changes durring SQL session inside a context manager.Additional SQL migration functions for changing or adding primary keys, adding or dropping columns, renaming column and more.Where to get itThe source code is currently hosted on GitHub at:https://github.com/eddiethedean/sessionize# PyPIpipinstallsessionizeDependenciessqlalchemy - Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQLalembic - a lightweight database migration tool for usage with the SQLAlchemy Database Toolkit for PythonExampleimportsqlalchemyassa
fromsessionizeimportSessionTable# Create SqlAlchemy engine to connect to database.engine=sa.create_engine('sqlite:///foo.db')# Create SessionTable to start session of table changes.st=SessionTable('people',engine)# Make changes to SessionTable:# Add 1 to each value in the age column.st['age']+1# Update the first record with new values.st[0]={'id':1,'name':'Olive','age':18}# Delete the last record.delst[-1]# Commit SessionTable to push changes to SQL table.st.commit()
Package: session-lambda
Session LambdaA simple way to manage sessions for AWS LambdasThis package simplfy the way one can use DynamoDB as a key/value presistance layer for AWS Lambda - using a single python decorator.Installpip install session-lambdaPrerequisitesDynamoDB TableA table in DynamoDB with a primary key namedkeyof type string[optional] Enable TTL in your DynamoDB table with attribute namedttlUsageSetSESSION_LAMBDA_DYNAMODB_TABLE_NAMEenv var:exportSESSION_LAMBDA_DYNAMODB_TABLE_NAME=<table-name>Run the following python code:fromsession_lambdaimportsession,set_session_data,get_session_data@sessiondeflambda_handler(event,context):print(get_session_data())set_session_data((get_session_data()or0)+1)return{"headers":{}}# first client_a callresponse=lambda_handler({'headers':{}},{})# get session id from response (created by the server)session_id=response.get('headers').get('session-id')# use session id in subsequent callslambda_handler({'headers':{'session-id':session_id}},{})lambda_handler({'headers':{'session-id':session_id}},{})lambda_handler({'headers':{'session-id':session_id}},{})# first client_b calllambda_handler({'headers':{}},{})You should get the following prints:None111NoneThis time using theupdate=Truemode:fromsession_lambdaimportsession,set_session_data,get_session_data@session(update=True)deflambda_handler(event,context):print(get_session_data())set_session_data((get_session_data()or0)+1)return{"headers":{}}# first client_a callresponse=lambda_handler({'headers':{}},{})# get session id from response (created by the server)session_id=response.get('headers').get('session-id')# use session id in subsequent callslambda_handler({'headers':{'session-id':session_id}},{})lambda_handler({'headers':{'session-id':session_id}},{})lambda_handler({'headers':{'session-id':session_id}},{})# first client_b calllambda_handler({'headers':{}},{})Now you should see:None123NoneFeatures@session(id_key_name='session-id',update=False,ttl=0)deflambda_handler(event,context):...id_key_nameis the expected key name in theevent[headers]. It is default tosession-id. It is case-sensitive.updateflag control weatherset_sessions_dataupdates the data. It is default toFalse.ttlis seconds interval for the session to live (since the last update time). By default it is disabled. Any value larger then 0 will enable this feature. Make sure to set the TTL key name in your dynamodb tottl.Future FeaturesSupport Schema validation for session dataAdditional InforamtionCheck thissession-lambda-examplerepository for more usage examples:https://github.com/roy-pstr/session-lambda-exampleCheck this medium post for general guidance:https://medium.com/@roy-pstr/a-simple-way-to-manage-sessions-with-aws-lambda-dynamodb-in-python-c7aae1aa7258
Package: sessionlib
sessionlibSession LibraryFree software: MIT licenseDocumentation:https://sessionlib.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-12-04)0.1.1 (2017-12-05)0.1.3 (2018-02-22)0.1.4 (2018-02-23)
0.1.5 (2018-02-23)
0.1.6 (2018-02-23)0.1.7 (2018-02-28)0.1.8 (2018-03-06)
0.1.9 (2018-03-06)0.2.0 (2018-03-08)0.2.1 (2018-04-23)
Package: session-request
session request以类的形式封装请求接口，支持requests所有参数Github:https://github.com/mouday/session-requestpypi:https://pypi.org/project/session-request安装pipinstallsession-request使用# -*- coding: utf-8 -*-fromsession_requestimportRequestclassClientApi(Request):defafter_request(self,response):"""请求后 响应处理器"""returnresponse.json()defget_request(self):options={'path':'/get'}returnself.get(**options)if__name__=='__main__':base_url='http://httpbin.org'api=ClientApi(base_url=base_url)res=api.get_request()print(res['url'])# http://httpbin.org/get
Package: setaire-someapi
SomeAPI这是一个封装了一些网络上的api的库，比如哔哩哔哩、新浪、抖音等等Getting Started拉取代码直接安装:pythonsetup.pyinstall使用 pip 安装:pipinstallsetaire_someapi使用 docker 安装:dockerpullsetaire/someapi:[LatestRelease]TestNOTE: 该测试是单元测试并不对api进行测试coverage run test.py
Package: setaire-sometools
SomeTools一些小工具，视频剪辑功能、照片处理等等Getting Started拉取代码直接安装:pythonsetup.pyinstall使用 pip 安装:pipinstallsetaire_sometools使用 docker 安装:dockerpullsetaire/sometools:[LatestRelease]如何使用去水印：delogo_video --help生成证件照gen_residence_permit_photo --help
Package: set-algebra
How to have a set containing all real numbers from 1 to 10 not including 10?How to add interval from 20 to 30 to the set?How to make sure this set is a subset of set of positive numbers?How to add scalar number to it?How to get complement of the set?>>>fromset_algebraimportInterval,Set>>>s=Set('[1, 10)')>>>1insTrue>>>10insFalse>>>s.add(Interval('[20, 30]'))>>>25insTrue>>>s<=Set('(0, inf)')True>>>s.add(100)>>>s.notation'[1, 10), [20, 30],{100}'>>>(~s).notation'(-inf, 1), [10, 20), (30, 100), (100, inf)'Set-Algebra provides classes representing math concepts:InfinityEndpointIntervalUncountable Infinite SetBesides numbers, Set-Algebra supports all objects that can be compared to each other - strings, datetimes, etc.Infinity() is greater than any of these objects except float(‘inf’) and float(‘nan’).
NegativeInfinity included as well.Set-Algebra fully supports Python3. Tested on python 2.7, 3.2 - 3.6.
Package: setalgebra-files
https://gitlab.com/jfriis/setalgebraArbitrary set calculations using the shunting yard algorithmInstallTo install using pip:pipinstallsetalgebraUsagesetalgebra \( file1 + file2 \) x file3 - file4Treat … as a set-based arithmetic expression of files and operators.
Files are sets of lines (whitespace stripped).Operators from lower to higher precedence+set union-set differencexset intersection(group precedence)Union and difference has the same precedence.
Package: set-calibration
set-calibration"A tool allowing to modify the calibration (physical units) of images"Thisnapariplugin was generated withCookiecutterusing@napari'scookiecutter-napari-plugintemplate.InstallationYou can installset-calibrationviapip:pip install set-calibrationTo install latest development version :pip install git+https://github.com/MontpellierRessourcesImagerie/set-calibration.gitContributingContributions are very welcome. Tests can be run withtox, please ensure
the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theMITlicense,
"set-calibration" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.
Package: set-cell-step
SEAMM Set Cell Plug-inA SEAMM plug-in for setting the periodic (unit) cell.Free software: BSD-3-ClauseDocumentation:https://molssi-seamm.github.io/set_cell_step/index.htmlCode:https://github.com/molssi-seamm/set_cell_stepFeaturesSetting the cell parametersExplicitly.To a given volume or density.Uniformly expanding or contracting the cell.AcknowledgementsThis package was created withCookiecutterand themolssi-seamm/cookiecutter-seamm-pluginproject template.Developed by the Molecular Sciences Software Institute (MolSSI),
which receives funding from theNational Science Foundationunder
award OAC-1547580 and CHE-2136142.History2021.2.12 (12 February 2021)Updated the README file to give a better description.Updated the short description in setup.py to work with the new installer.Added keywords for better searchability.2021.2.4 (4 February 2021)Updated for compatibility with the new system classes in MolSystem
2021.2.2 release.2020.12.5 (5 December 2020)Internal: switching CI from TravisCI to GitHub Actions, and in the
process moving documentation from ReadTheDocs to GitHub Pages where
it is consolidated with the main SEAMM documentation.2020.11.13 (13 November 2020)First release on PyPI.
Package: setconfig
setconfig 🔌[!TIP]
Don't forget to star this repo if you like it! ⭐Some developers prefer to use@dataclasswhile others preferBaseModel.
This holy war is not going to end soon.
So now they can use the same loader and config file in different parts/microservices of one project.Currently supported:@dataclassPydanticBaseModelPythonSimpleNamespace(dotted dict)InstallationpipinstallsetconfigUsage sampleDataclass, full sampleherefromdataclassesimportdataclassfromsetconfigimportload_config@dataclassclassNode:host:strport:int@dataclassclassConfig:nodes:list[Node]config=load_config('config.yaml',into=Config)print(config)# >>> Config(nodes=[Node(host='1.1.1.1', port=1000)])print(config.nodes[0].host)# >>> '1.1.1.1'Pydantic, full sampleherefrompydanticimportBaseModelfromsetconfigimportload_configclassNode(BaseModel):host:strport:intclassConfig(BaseModel):nodes:list[Node]config=load_config('config.yaml',into=Config)print(config)# >>> Config(nodes=[Node(host='1.1.1.1', port=1000)])print(config.nodes[0].host)# >>> '1.1.1.1'SimpleNamespace, full sampleherefromsetconfigimportload_configconfig=load_config('config.yaml')print(config)# >>> Config(nodes=[Node(host='1.1.1.1', port=1000)])print(config.nodes[0].host)# >>> '1.1.1.1'FAQWhy only YAML?There should be one-- and preferably only one --obvious way to do it(c) Zen of PythonHow to load from string/StringIO/etc?Useload_config_streamfromsetconfigimportload_config_streamconfig=load_config_stream('done: true')I want to use structure fromXpackageCreate an issue or PR :)MorePyPI:https://pypi.org/project/setconfigRepository:https://github.com/abionics/setconfigDeveloper: Alex Ermolaev (Abionics)Email:abionics.dev@gmail.comLicense: MIT (see LICENSE.txt)
Package: setdiff
setdiffGiven two files, show the size of set difference, union, intersection, and more of their lines.Example:File a:123
a
a
ab
cdFile b:a
a
ab
456Usage:sett a bor aliassetdiff a bOutput:{A}  4
       A  5
     {B}  3
       B  4
 |A|-|B|  1
   A ∖ B  2
   B ∖ A  1
   A ∪ B  5
   A ∩ B  2
Package: setec
Setec AstronomySimple, fast, compact encryption and signing.Based on modern cryptography courtesy of PyNaCl.EXPERIMENTAL: Use at your own risk. While the
underlying cryptography has been well-studied,
many security vulnerabilities arise from implementation
bugs. The setec code is fairly simple, but has
not been fully tested, so no security guarantees
are provided by the project authors, either implicit
or otherwise.Requires Python 3.5 or better.LegalCopyright 2018 by individual and corporate contributors as
noted in the individual source files.Licensed under the Apache License, Version 2.0 (the "License"); you may
not use any portion of this software except in compliance with
the License. Contributors agree to license their work under the same
License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.