Saravanan666/pypi-org huggingface dataset:
Package: simple-workflow
python-simple-workflow is a wrapper forAmazon Simple Workflowservice.
It aims to provide some abstractions over the webservice concepts throughBotolibrary Swf api implementation.It aims to provide:Modelisation: Swf entities and concepts are to be manipulated throughModelsandQuerySets(any ressemblance with theDjangoapi would not be a coincidence).High-level Events, History: A higher level of abstractions over Swfeventsandhistory. Events are implemented as stateful objects aware of their own state and possible transitions. History enhance the events flow description, and can be compiled to check it’s integrity and the activities statuses transitions.Decisions: Stateful abstractions above the Swf decision making system.Actors: Swf actors base implementation such as aDecideror an activity task processorWorkerfrom which the user can easily inherit to implement it’s own decision/processing model.It provides querysets and model objects over commonly used concepts: domains, workflow types, activity types, and so on.It is under MIT license, and any ideas, features requests, patches, pull requests to improve it are of course welcome.Installationpipinstallsimple-workflowUsage and all the restPlease, refer toDocumentation
Package: simplex-assimilate
Simplex Assimilate: Data assimilation on the simplexInstallationpipinstallsimplex-assimilateFile Structuresimplex_assimilate/source codesimplex_assimilate/cdf.pyConditional distribution functions for the mixed dirichlet prior.simplex_assimilate/quantize.pyConvert floating point samples to fixed point representation.simplex_assimilate/dirichlet.pyModel samples on the simplex with a mixture of Dirichlet distributions. Fit parameters by maximum likelihood.simplex_assimilate/transport.pyOptimal transport of samples on the simplex.tests/unit testscoverage_report/coverage reportsSee AlsoIce Simplex Assimilate RepositoryRepresent an ice thickness distribution as a point on the simplex and perform transport.
Package: simplex-dictionary
Simplex dictionarysimplexis a small python module that implements asimplex_dictionarystructure
representing a dictionary for theSimplex algorithm.
The package is intended for educational purpose, e.g., to have students implement the
Simplex algorithm based on the structure.Basic usageThe following code creates a simplex dictionary with 5 variables:fromsimpleximportsimplex_dictionary# The list of variables (can be anything):x1,x2,x3,x4,x5=('x_{}'.format(i+1)foriinrange(5))variables=[x1,x2,x3,x4,x5]# The simplex dictionary with B = (x3, x4, x5):sdict=simplex_dictionary(B=[x3,x4,x5],N=[x1,x2])# Set the values of the basic variables:sdict.b={x3:18,x4:42,x5:24}# Coefficients of the non-basic variables in the dictionary (we represent# the positive coefficients):sdict.a={x3:{x1:2,x2:1},x4:{x1:2,x2:3},x5:{x1:3,x2:1}}# Current value of the objective:sdict.z=0# Coefficients of the non-basic variables in the objective function:sdict.c[x1]=3sdict.c[x2]=2# Trying to set the coefficients for a basic variables that should be 0 raise an# exception:sdict.c[x3]=4# raises "x_3 is not a non-basic variable."sdict.b[x1]=1# raises "x_1 is not a basic variable."When using thesimplexmodule within a jupyter notebook, thedisplay()method
outputs a latex version of the dictionary:sdict.display(name='S_0')
Package: simplexfmrartifact
simplexfmrartifactBentoML artifact framework for simpletransformers.Installation:pip install simplexfmrartifactUsage example (decorate service):from simplexfmrartifact.simpletransformers import SimpleTransformersModelArtifact

@artifacts([SimpleTransformersModelArtifact('tm_train3_roberta_l_weigh')])
class MyBentoService(BentoService):Usage example (package model):svc = MyBentoService()

metadata = {
    "classpackage": "simpletransformers.classification", 
    "classname": "ClassificationModel", 
    "opts": {
        "use_cuda": true, 
        "num_labels": 2, 
        "args": {
            "use_multiprocessing": false, 
            "silent": true, 
            "eval_batch_size": 10, 
            "fp16": false
        }
    }
}

svc.pack(model_name, model_path, metadata)Alternatively, during training:svc.pack({'model': my_trained_model, 'model_opts': metadata})
Package: simplexl
SIMPLEXLSimplexl is a Python package which is used to create excel files dynamically using a program. This package depends onopenpyxlwhich is native python package for creating excel.FEATURESGenerated formatted excel as ouput.Automatically pick the width of column based on data size of column.Installationpip install simplexlHow to useThe usage of simplexl is as followsfrom simplexl import CreateExcel

xl = CreateExcel()


xl.create_sheet(
    sheet_name=sheet_name,   # optional
    sheet_index=sheet_index  # optional default = 0
    col_data=col_data,
    row_data=row_data
)

xl.save(
    name="path/name of the excel  #  default = generate-simplexl.xlsx
)Examplefrom simplexl import CreateExcel

sheet1_col_data = ['col1', 'col2']
sheet1_row_data = [
    ('col1_row1', 'col2_row1'),
    ('col1_row2', 'col2_row2')
]

sheet2_col_data = ['col1', 'col2']
sheet2_row_data = [
    ('col1_row1', 'col2_row1'),
    ('col1_row2', 'col2_row2')
]

xl = CreateExcel()

# Sheet 1  
xl.create_sheet(
    col_data=sheet1_col_data,
    row_data=sheet1_row_data
)

# Sheet 2
xl.create_sheet(
    col_data=sheet2_col_data,
    row_data=sheet2_row_data
)
xl.save()It will create a xlsx file using row and col dataLicenseCopyright (c) 2022 Devaraju GarigapatiThis repository is licensed under theMITlicense.
SeeLICENSEfor details.
Package: simple-xls2json
simple-xls2jsonConvert table data to json format outputRequirementsxlrdInstallationpip3 install simple-xls2jsonUsagefrom xls2json.xls2json import *

xls = Xls2Json()
xls.setConfig(
        Config().start(1).end(-1) # configure the startline & endline, -1 for end means all lines
        .values([(0, 'click_time'), (1, 'create_time')])    # configure which columns to be used, set the keys
        .value(2, 'pay_time')
        .value(3, 'balance_time')
        .value(5, 'item_id')
        .value(6, 'pic')
        .value(7, 'title')
        .value(11, 'price')
        )
xls.toJson('test.xls')Output{
    "code":0,
    "pageCount":1,
    "pages":[
        {
            "name":"Page1",
            "lines":[
                {
                    "click_time":"2020-06-16 23:28:11",
                    "create_time":"2020-06-17 00:24:02",
                    "pay_time":"2020-06-17 00:24:12",
                    "balance_time":"2020-07-07 21:54:53",
                    "item_id":"521537285175",
                    "pic":"//img.alicdn.com/tfscom/i4/2185500387/TB2Z2bvnSVmpuFjSZFFXXcZApXa_!!2185500387.jpg",
                    "title":"Bellroy澳洲进口Coin Fold折叠硬币信用卡片收纳包皮夹卡包男包邮",
                    "price":"528.00"
                },
                {
                    "click_time":"2020-06-16 23:28:11",
                    "create_time":"2020-06-17 00:24:02",
                    "pay_time":"2020-06-17 00:24:12",
                    "balance_time":"2020-07-07 21:54:53",
                    "item_id":"521537285175",
                    "pic":"//img.alicdn.com/tfscom/i4/2185500387/TB2Z2bvnSVmpuFjSZFFXXcZApXa_!!2185500387.jpg",
                    "title":"Bellroy澳洲进口Coin Fold折叠硬币信用卡片收纳包皮夹卡包男包邮",
                    "price":"528.00"
                },
                {
                    "click_time":"2020-06-16 23:28:11",
                    "create_time":"2020-06-17 00:24:02",
                    "pay_time":"2020-06-17 00:24:12",
                    "balance_time":"2020-07-07 21:54:53",
                    "item_id":"521537285175",
                    "pic":"//img.alicdn.com/tfscom/i4/2185500387/TB2Z2bvnSVmpuFjSZFFXXcZApXa_!!2185500387.jpg",
                    "title":"Bellroy澳洲进口Coin Fold折叠硬币信用卡片收纳包皮夹卡包男包邮",
                    "price":"528.00"
                },
                {
                    "click_time":"2020-06-16 23:28:11",
                    "create_time":"2020-06-17 00:24:02",
                    "pay_time":"2020-06-17 00:24:12",
                    "balance_time":"2020-07-07 21:54:53",
                    "item_id":"521537285175",
                    "pic":"//img.alicdn.com/tfscom/i4/2185500387/TB2Z2bvnSVmpuFjSZFFXXcZApXa_!!2185500387.jpg",
                    "title":"Bellroy澳洲进口Coin Fold折叠硬币信用卡片收纳包皮夹卡包男包邮",
                    "price":"528.00"
                }
            ]
        }
    ]
}
Package: simplexmlapi
simplexmlapi provides an easy way to access XML data. It is pure Python code with no dependencies.simplexmlapi uses the xml.dom.minidom module to parse XML data, then allows the resulting document to be walked using a dotted name syntax. It also provides a SimpleXmlApi object which comprises mappings of attributes to dotted-name paths.The SimpleXmlApi object may be subclassed to provide simple APIs for known data structures.
Package: simple-xor-encryption
simple_xor_encryptionyet another useless and random packageexemplefromsimple_xor_encryptionimportxormessage="random test".encode()key="SsJt7g".encode()# key length does not have to match data lengthencrypted_message=xor(message,key)decrypted_message=xor(encrypted_message,key)print(message==decrypted_message)
Package: simplex-solver
SIMPLEX UIFor ArtitstsSimplex aims to provide an intuitive, cross-package UI that allows for building, editing, and controlling complex shapes, combos, and transitions for use in high-end blendshape facial rigs, or even PSD systems.This tool was built with the fullFacialActionCodingSystem (FACS) in mind. As such, it easily handles hundreds of shapes with arbitrary combo depth. Spline interpolation for in-between shapes, positive-negative shapes, in-between combo shapes, and combo transitions are supported. Arbitrary value combinations are also fully supported (eg. ComboX activates when SliderA is at 0.25 and SliderB is at 0.33).For TD'sSimplex aims to be fully scriptable so that it can easily be inserted into any pipeline. The UI and API are fully Python, all content creation commands are abstracted (for multi-package use), and all systems are built as human readable JSON strings.There is a suite of tools included that allow for manipulating .smpx files. Most of which can be run completely outside of a DCC. This includes vertex reordering, un-subdividing, splitting, and even shape-inversion. These .smpx files are nothing more than specially structured alembic cachesAs long as your package supports Plugins, Python, and Qt (or PySide), you can use Simplex.Simplex is NOTSimplex is not a modeling toolkitModeling is done using whatever tools you choose on your current packageSimplex is not a deformerIt only informs a native blendshape deformer what values the current shapes should haveIn the future, Idohave ideas for building an interface to an advanced deformer for dynamically previewing arbitrary splits, but the final output will always have the ability to bake down to a basic blendshape.Basic UsageFollow this youtube link to a basic walkthrough of Simplex usage. This video highlights an older version of Simplex, but the interaction remains basically the same.https://www.youtube.com/watch?v=LQwzsxU8z_QINSTALLATIONDownload the latest releaseCopy themodulesfolder from the zip file into your maya directory. On windows, that would mean copying into%USERPROFILE%\Documents\mayaso that the module file sits at%USERPROFILE%\Documents\maya\modules\simplex.modInstall numpy for mayapyusing pip. If you're using a Maya with Python 3, you should just be able to install numpy. For Python 2 on Windows, you'll have to find a .whl file compiled for your version. I'm not sure about Mac or Linux for Py2.Run these two Python commands in Maya to start the tool. (This is probably what you should put into a shelf button)fromsimplexuiimportrunSimplexUIrunSimplexUI()CompilingHopefully you don't need to do this, but if you have to, just take a look at.github/workflows/main.ymland you should be able to piece together how to get a compile working using CMake. You aren't required to download the devkit or set its path for CMake if you've got maya installed on your machine. Also note, I use features from CMake 3.16+ so I can target python 2 and 3 separately.
Package: simple-xsrf
simple-xsrfA simple package to create CSRF/XSRF tokens and protect against CSRF/XSRF attacks.Installationpip install simple-xsrfUsageTo use this package you will need a fernet key also known as a secret key. To create a key:fromcryptography.fernetimportFernetkey=Fernet.generate_key()Make sure to store this key in a secure place like a database so that you can access it later. You will need it to create your tokens and decrypt themCreating a token:fromsimple_xsrf.tokenimportcreate_xsrftoken=create_xsrf(key)Checking if a token is valid:fromsimple_xsrf.tokenimportis_validis_token_valid=is_valid(key,token_from_request,token_from_storage)You should store your token in a storage layer such as Redis or DynamoDB to be retrived later.
Package: simpley
SimpleySimpleyis a Python package designed to make coding in Python just a little bit easier.Everything inSimpleyis just a simple function, so you can easily code anything in Python.InstallationTo installSimpley, use one of the following commands:python3-mpipinstallsimpley
py-mpipinstallsimpley
pip3installsimpley
pipinstallsimpleyDocumentationView theSimpleydocumentationhere
Package: simple-youtube-api
Simple Youtube API(fulldocumentation) is a Youtube API wrapper for python, making it easier to search and upload your videos.ExamplesIn this example we log in into a YouTube channel, set the appropriate variables for a video and upload the video to the YouTube channel that we logged into:fromsimple_youtube_api.ChannelimportChannelfromsimple_youtube_api.LocalVideoimportLocalVideo# loggin into the channelchannel=Channel()channel.login("client_secret.json","credentials.storage")# setting up the video that is going to be uploadedvideo=LocalVideo(file_path="test_vid.mp4")# setting snippetvideo.set_title("My Title")video.set_description("This is a description")video.set_tags(["this","tag"])video.set_category("gaming")video.set_default_language("en-US")# setting statusvideo.set_embeddable(True)video.set_license("creativeCommon")video.set_privacy_status("private")video.set_public_stats_viewable(True)# setting thumbnailvideo.set_thumbnail_path('test_thumb.png')# uploading video and printing the resultsvideo=channel.upload_video(video)print(video.id)print(video)# liking videovideo.like()InstallationSimple YouTube API needs API keys from Google in order to be able to make queries to YouTube.Installation by hand:you can download the source files from PyPi or Github:pythonsetup.pyinstallInstallation with pip:make sure that you havepipinstalled, type this in a terminal:pipinstallsimple-youtube-apiGenerating YouTube API KeysLog intohttps://console.cloud.google.comCreate a new ProjectSearch for “YouTube Data API V3”Click CredentialsClick Create CredentialsFor user data:
5. Select OAuth Client ID
6. Select that you will call API from “Web Server”
7. Download or copy your API key from the Credentials tabFor non-user data
5. Select API Key
6. Paste the key into a fileRunning TestsRun the python commandpythonsetup.pytestReferencesYouTube API DocumentationPython YouTube API ExamplesContributeFork the repository from GithubClone your forkgitclonehttps://github.com/yourname/simple-youtube-api.gitAdd the main repository as a remotegitremoteaddupstreamhttps://github.com/jonnekaunisto/simple-youtube-api.gitCreate a pull request and follow the guidelinesMaintainersjonnekaunisto (owner)
Package: simple-youtube-video-commenter
IntroductionA small utility that just create a new comment on the comment section of a single video.
It is BY DESIGN simple, since I don't want developers to spam several video via several messages.UsageYou first need to authenticate yourself via a "client_secret.json"simple-youtube-video-commenter --videoUrl "www.youtube.com/watch?v=edtfjh" --text "This is an awesome video!"When executing, you may be asked a google authentication. Follow the link printed and authenticate from the browser.
Then, you will be able to comment automatically for some time.Getting startedIn order to start, you need to:Create a developer profile;Create a project;Setup a some credentials viaCredentialssection;Download the credentials: such a file should be named using the following pattern:^client_secret.*\.json$;Enable theOAuth consent screen;Go to library and enable theYoutube Data API v3;
Package: simplezeroconf
A simple Python interface to Zeroconf service discovery and registration.
Supports python >= 2.7 <= 3.5Installation### RequirementsThezeroconfmodule assumes that the [avahi](http://avahi.org/) command-line
toolsavahi-browseandavahi-publishare available.
On Ubuntu for example, they may me installed with:$ sudo apt-get install avahi-toolsThe module also depend on [Andrew Moffat’s subprocess wrapper][sh]. Install
it with$ pip install shIf you install the package using setup.py or pip it’ll be automatically
handled so you normally don’t need to do this.[sh]:http://amoffat.github.io/sh### InstallDownload the source distribution and type:$ python setup.py install### Running testsYou need py.test installed, just run:$ py.test –doctest-modules zeroconf/Usage### Zeroconf Services DiscoverySearching for all available Zeroconf services is done by>>> from zeroconf import ZeroConf
>>> zc = ZeroConf()
>>> services = zc.search()The search can be made more specific, for example:>>> services = zc.search(name=None, type="_workstation._tcp", domain="local")The arguments, all optional, to thesearchfunctions are:name: service name, defaults toNone(interpreted as all),type: service type, defaults toNone(interpreted as all),domain: domain name, defaults to“local”.Search results are dictionaries:>>> print services
{('tide [f0:7b:cb:42:ff:e0]', '_workstation._tcp', 'local'):
   {'txt': '', 'hostname': 'tide.local', 'port': '9', 'address': '192.168.0.13'},
 ('wreck [00:26:18:4c:3f:ee]', '_workstation._tcp', 'local'):
   {'txt': '', 'hostname': 'wreck.local', 'port': '9', 'address': '192.168.0.10'},
 ('biohazard [00:18:8b:ac:c8:45]', '_workstation._tcp', 'local'):
   {'txt': '', 'hostname': 'biohazard.local', 'port': '9', 'address': '192.168.0.12'}}The keys are(name, type, domain)tuples and the values are dictionaries withtxt,hostname,portandaddresskeys.### Zeroconf Services RegistrationRegister a new zeroconf service in the local domain with:>>> zc = ZeroConf()
>>> zc.register(name="ghost [08:00:27:bf:49:e1]", type="_workstation._tcp", port="9")and when you’re done, unregister it with:>>> zc = ZeroConf()
>>> zc.unregister(name="ghost [08:00:27:bf:49:e1]", type="_workstation._tcp", port="9")All arguments tounregisterare optional, so we could have done:>>> zc = ZeroConf()
>>> zc.unregister(name="ghost [08:00:27:bf:49:e1]")or even, to unregister all services published during the Python session:>>> zc = ZeroConf()
>>> zc.unregister()ContributorsSébastien Boisgérault <Sebastien.Boisgerault@mines-paristech.fr>:
initial API design, Linux/avahi support.Olivier Huynh <olivierv.huynh@free.fr>: Windows/dns-sd support.David Francos Cuartero <me@davidfrancos.net>: OOP rewrite, Python3 support
Package: simple-zpl2
Simple ZPL2Simple Project to help in building ZPL2 strings for printing barcodes with Zebra or compatible label printers.Free software: MIT licenseDocumentation:https://simple-zpl2.readthedocs.io.FeaturesMethods for adding ZPL2 entries in the label dataError handling for data entered into methods, to maintain valid ZPL dataUsing web service to render ZPL2 label as PNG for quick developmentSimple class to print to network based ZPL label printerCreditsThis package was created withCookiecutter.History0.2.1 (2017-05-31)Pulled out individual methods to objects for barcodesBuilding tests for some of objects0.1.0 (2017-05-26)Initial Creation as Standalone package.
Package: simple-zuora-client
Copyright (C) 2020 Sergey Yakimovsergwy@gmail.comThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.Description: Simple Zuora ClientVersion 0.1.6It works with Zuora® API v1.Currently supported featuresBasic get, post, put, deleteAuthentication sessionMulti entity supportAQuA batch queries (ZOQL)query jobs (OWL queries)get accounting periodsget sequence setsdelete a sequence setget invoice by invoice numberupdate accountupdate credit memocancel credit memoupdate invoiceRequirementsrequests_oauthliboauthlib.oauth2requestsPlatform: UNKNOWN
Description-Content-Type: text/x-rst
Package: simplicial
This package arose from explorations of using ideas from algebraic
topology in the context of wireless sensor networks, to tackle
problems like target tracking and estimation of the goodness-of-fit of
interpolations from isolated observations. Its main contribution is to
represent and manipulate simplicial complexes, topological structures
describing spaces built from cells.InstallationYou can installsimplicialdirectly from PyPi usingpip:pip install simplicialThe master distribution ofsimplicialis hosted on GitHub. To obtain a
copy, just clone the repo:git clone git@github.com:simoninireland/simplicial.git
cd simplicial
python setup.py installDocumentationTheAPI documentationis hosted on ReadTheDocs.Author and licenseCopyright (c) 2017–2022, Simon Dobson <simoninireland@gmail.com>Licensed under theGNU General Public Licence v.3.0.
Package: simplicial-test
Simplicial-test provides a deterministic, backtracking-based search algorithm for the simplicial complex realization problem.This is the software repository behind the paper:Construction of Simplicial Complexes with Prescribed Degree-Size Sequences, Tzu-Chi Yen (2021).Read it on arXiv:https://arxiv.org/abs/2106.00185👈 Please check the Project Links on the left for source code, documentation, discussion threads, etc.All simplicial-test sdists and wheels distributed on PyPI are licensed under LGPL-3.0-or-later.
Package: simplicity
Converts ReStructuredText into JSON.Sectionsare JSON list dictionary elementsSection Headersbecome list titles.Fielddefinitions become key/value representations.Directivesare ignored.ExampleInputPython------:age:22:typing:dynamic, strongJava----:age:18:typing:static, strongOutput[{"title":"Python","age":22,"typing":"dynamic, strong"}{"title":"Java","age":18,"typing":"static, strong"}]Usage$gitclonegit@github.com:pydanny/simplicity.git$cdsimplicity/$pythonsimplicity.pysample.rst[{"description":"A fun programming language.\n\nUsed to build simplicity!","title":"Python","price":0.0,"typing":"dynamic, strong","age":22,"mascot":"snake"},{"age":18,"typing":"static, strong","mascot":"???","title":"Java"},{"url":"https://github.com","mascot":"Octocat","title":"GitHub"}]Best Used WithSimplicity is designed to be used with these packages:Complexity: A refreshingly simple static site generator, for those who like to work in HTML.redis-py: Redis Python ClientKnow of any other good uses for Simplicity? Let me know and I’ll add it to the list!Exampleshttps://github.com/pydanny/simplicity-complexity-exampleHistory0.6.4 (2014-01-29)Handle case where the key is not in the dict (thanks @greatdesignisnotenough)0.6.3 (2013-11-12)Handles RST directives gracefully (ignores them)0.6.2 (2013-07-25)Fixes the problem with normal text after field definitions.0.6.1 (2013-07-23)Better multi-line string supportFixed some Python 3 issuesAdded tests!0.6.0 (2013-07-19)Support for multi-line strings0.5.1 (2013-07-16)Fighting poorly documented setup.py issues. :P0.5.0 (2013-07-16)API Change for easier-to-navigate result data0.4.2 (2013-07-15)Fix console script entry point0.4.1 (2013-07-15)History update0.4.0 (2013-07-15)added type converter0.3.0 (2013-07-15)Accepts command-line argument0.2.0 (2013-07-15)Working prototype0.1.0 (2013-07-15)Pain pointInspiration