Saravanan666/pypi-org huggingface dataset:
Package: simplified-scrapy
simplified-scrapysimplified scrapy, A Simple Web CrawleRequirementsPython 2.7, 3.0+Works on Linux, Windows, Mac OSX, BSDrunfrom simplified_scrapy.simplified_main import SimplifiedMain
SimplifiedMain.startThread()DemoCustom crawler class needs to extend Spider classfrom core.spider import Spider 
class DemoSpider(Spider):Here is an example of collecting datafrom simplified_scrapy.spider import Spider, SimplifiedDoc
class DemoSpider(Spider):
  name = 'demo-spider'
  start_urls = ['http://quotes.toscrape.com/']
  allowed_domains = ['quotes.toscrape.com']
  def extract(self, url, html, models, modelNames):
    doc = SimplifiedDoc(html)
    lstA = doc.listA(url=url["url"])
    return [{"Urls": lstA, "Data": None}]

from simplified_scrapy.simplified_main import SimplifiedMain
SimplifiedMain.startThread(DemoSpider())pip installpip install simplified-scrapyExamplesLegal IssuesIn particular, please be aware thatTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Translated to human words:In case your use of the software forms the basis of copyright infringement, or you use the software for any other illegal purposes, the authors cannot take any responsibility for you.We only ship the code here, and how you are going to use it is left to your own discretion.
Package: simplified-transormer-torch
SimplifiedTransformersThe author presents an implementation for Simplifying Transformer Blocks. The standard transformer blocks are complex and can lead to architecture instability. In this work, the author investigates how the standard transformer block can be simplified. Through signal propagation theory and empirical observations, the author proposes modifications that remove several components without sacrificing training speed or performance. The simplified transformers achieve the same training speed and performance as standard transformers, while being 15% faster in training throughput and using 15% fewer parameters.InstallUsageimporttorchfromsimplified_transformers.mainimportSimplifiedTransformersmodel=SimplifiedTransformers(dim=4096,depth=6,heads=8,num_tokens=20000,)x=torch.randint(0,20000,(1,4096))out=model(x)print(out.shape)LicenseMIT
Package: simplifycommerce-sdk-python
Python SDK for Simplify CommerceWhat is it?A python API to the Simplify Commerce payments platform.   If you have
not already got an account sign up athttps://www.simplify.com/commerce.InstallationTo install:python setup.py installUsing the SDKTo run a payment though Simplify Commerce use the following
script substituting your public and private API keys:import simplify
simplify.public_key = "YOUR_PUBLIC_API_KEY"
simplify.private_key = "YOUR_PRIVATE_API_KEY"
payment = simplify.Payment.create({
   	    "card" : {
            "number": "5555555555554444",
            "expMonth": 11,
            "expYear": 15,
            "cvc": "123"
        },
        "amount" : "1000",
        "description" : "prod description",
        "currency" : "USD"
    })
print paymentFor more examples seehttps://www.simplify.com/commerce/docs/sdk/python.VersionThis is version 1.8.0 of the SDK.  For an up-to-date
version check athttps://www.simplify.com/commerce/docs/sdk/python.LicensingPlease see LICENSE.txt for details.DocumentationAPI documentation is available in the doc directory in HTML.  For more
detailed information on the API with examples visit the online
documentation athttps://www.simplify.com/commerce/docs/sdk/python.SupportPlease seehttps://www.simplify.com/commerce/supportfor information.CopyrightCopyright (c) 2013 - 2022 MasterCard International Incorporated
All rights reserved.
Package: simplify-hep
simplifyA package that creates simplified likelihoods from full likelihoods. Currently, only one form of simplified likelihoods is implemented, but the idea is to implement additional versions of the simplified likelihoods, such that varying degrees of simplification can be supported.InstallationFollow good practice and start by creating a virtual environmentpython3-mvenvsimplifyand then activating itsourcesimplify/bin/activateDefault installInstall the package with pippython3-mpipinstallsimplify-hep[contrib]Development installIf you want to contribute tosimplify, install the development version of the package. Fork the repository, clone the fork, and then installpython3-mpipinstall--ignore-installed-U-e.[complete]Next, setup the git pre-commit hook for Blackpre-commitinstallYou can run all the tests withpython3-mpytestHow to runCLIRun with e.g.simplifyconvert<fullLH.json>simplifiedLH.jsonor e.g.curlhttp://foo/likelihood.json|simplifyconvertwherefullLH.jsonis the full likelihood you want to convert into a simplified likelihood. Simplify is able to read/write from/to stdin/stdout.In python scriptYou can also usesimplifyin a python script, e.g. to create some validation and cross-check plots and tables.importpyhfimportjsonimportsimplifypyhf.set_backend(pyhf.tensorlib,"minuit")spec=json.load(open("likelihood.json","r"))ws=pyhf.Workspace(spec)# ws from full LH# get model and data for each ws we just createdmodel=ws.model(modifier_settings={"normsys":{"interpcode":"code4"},"histosys":{"interpcode":"code4p"},})data=ws.data(model)# run fitfit_result=simplify.fitter.fit(ws)plt=simplify.plot.pulls(fit_result,"plots/")plt=simplify.plot.correlation_matrix(fit_result,"plots/",pruning_threshold=0.1)tables=simplify.plot.yieldsTable(ws,"plots/",fit_result,)DependenciesNaturally relies heavily onpyhf. Part of the code for plotting and validating results is inspired by Alexander Held'scabinetry.
Package: simplifyline
Simplify 2D and 3D LinesA high performance 2D and 3D line simplification algorithm. UsesRamer-Douglas-Peucker Line Simplification.Key FeaturesSimplify 2D and 3D linesWritten in C++ with python bindings. Can be used standalone in a C++ project with CMake as well.Based on high-performanceSimplify.jsInstall with Python and UseThe python library can be installed as so:pip install simplifylineExample Use:fromsimplifylineimportsimplify_line_2d,MatrixDoublemat2D=MatrixDouble([[0.0,0.0],[1.0,1.0],[2.0,2.0],[3.0,3.0]])results_mat2D=simplify_line_2d(mat2D,max_distance=0.1,high_quality=True)results=np.array(results_mat2D)np.testing.assert_array_equal(results,np.array([[0.0,0.0],[3.0,3.0]]))Seedocumentationfor more details.Build Project ManuallyYou can build the project manually in two ways: using pythonsetup.py, or in pure CMakeBuild Manually with PythonThe root directorysetup.pyfile has been modified to build with CMake. This is meant for python users that need to build manually (for some reason) but are not actively developing or changing the code.Installcondaor create a python virtual environment (Why?). I recommend conda for Windows users.pip install .- Call from root directoryBuild Manually With CMakeBuilding happens entirely with CMake. This is meant really only for the library developers who are working on C++ and Python in an edit-compile cycle.C++ Librarymkdir cmake-build && cd cmake-buildcmake ..-  Note - For windows also add-DCMAKE_GENERATOR_PLATFORM=x64cmake --build . -j$(nproc) --config ReleaseBuild options:SPL_BUILD_BENCHMARKS:BOOL=ON // SPL - Build Benchmarks
SPL_BUILD_EXAMPLES:BOOL=ON // SPL - Build Examples
SPL_BUILD_PYMODULE:BOOL=ON // SPL -Build Python Module
SPL_BUILD_TESTS:BOOL=ON // SPL - Build Tests
SPL_BUILD_WERROR:BOOL=OFF // SPL - Add Werror flag to build (turns warnings into errors)
SPL_WITH_OPENMP:BOOL=ON // SPL - Build with OpenMP SupportPython ExtensionThis is meant for advanced python users who are actively developing the extension.Installcondaor create a python virtual environment (Why?). I recommend conda for Windows users.PerformCMakebuild as described abovecd cmake-build && cmake --build . --target python-package --config Releasecd lib/python_package &&  pip install -e .. This installs the library in develop/edit mode. To update the python extension in your python virtual environment all you need to do is run step 3 again.
Package: simplify-polyline
simplify_polylineSimplify an open or closed polyline.Two functions:Visvalingham-Whyatt removes the smallest triangles formed by three consecutive points
in a polyline or polygon. The big advantage for my purposes is that the starting
point on a polygon will not affect the result. The big disadvantage is that tall,
thin spikes are removed along with short, thin triangles. So the smoothed polygon or
polyline may not fit in anything close to the convex hull of the input.use the Visvalingham-Whyatt algorithm withvs_simplifyDouglas-Peucker gives a better representation of the convex hull. The big
disadvantage with Douglas-Peucker is that the starting point on a polygon will affect
the result. I've addressed this in the slow, but ideal (for my purposes)simplifyfunction.use the Douglas-Peucker algoritm withsimplifyThis will usually be the better choice.argumentsvertsvertices along polyline. Anything that can be cast into a '*, 2'
array.(simplify)min_distminimum height above a line segment for a point to be
included.(vw_simplify)min_areaminimum area of a triangle for a point to be
included.is_closedoptionally specify whether verts describe a polyline or polygon.
If not specified, is_closed is inferred from verts[0] == verts[-1]. The form of
the input (last vert == first vert) will be replicated in the output.If verts is (a, b, c, d, a), return value will be (a, ..., a)If verts is (a, b, c, d), and is_closed is True, return value will be (a, ..., d)So, there are two ways to deal with closed polygons:close by repeating first point at the end. Return value will keep this formatclose by specifyingis_closed. Return value will not repeat last pointinstallpip install simplify_polyline
Package: simplipy-python
Simplipy-PythonHow to useCommandfromsimplipy_pythonimportCommanddefPrintArgs(Arguments):print(Arguments)CommandHandler=Command(CommandMessage="Run> ",StarterMessage=None)# StarterMessage is Optional.CommandHandler.AddCommand(command_name="Print Arguments",command_function=PrintArgs)CommandHandler.SetupCommands()# Setup Command Module.It should look like this:Categoryfromsimplipy_pythonimportCommand,CategorydefPrintArgs(Arguments):print(Arguments)defPrintArgsCategory(Arguments):print(f"Category{Arguments}")CommandHandler=Command(CommandMessage="Run> ",StarterMessage="Category Test!!!")CommandHandler.AddCommand(command_name="Print Arguments",command_function=PrintArgs)Category1=Category(category_name="Other Functions")# Create CategoryCategory1.AddCommand(command_name="Print Arguments 1",command_function=PrintArgsCategory)# Add FunctionCommandHandler.SetupCommands(Categories=[Category1])# Inject the Categories into the SetupBEFORE TRYING THIS, PLEASE TYPE IN THE CATEGORY NAMECase SensitiveCommands Run> Other-FunctionsShould look like this:Help Command$ python filename.py -h

usage: prog.py [-h] [--changelog]

options:
  -h, --help     show this help message and exit
  -cl, --changelog      The python package's changelogExceptionsNotValidCommandIs raised when you input an invalid Command.CommandNameAlreadyExistsIs raised when you make a Command have the same name as another.FunctionAlreadyExistsIs raised when you try to pass the same function into a different Command.
Package: simpliqm
QuineMcCluskeyTable of ContentsIntroductionRequirementsUsageResourcesLicenseQuine–McCluskey Algorithm Python LibraryWelcome to the Quine–McCluskey Python library – a powerful tool for minimizing Boolean functions with ease!
Developed by Willard V. Quine and extended by Edward J. McCluskey, this algorithm is your go-to method for
simplifying Boolean expressions efficiently.InstallationNow you can install the Quine–McCluskey Python library usingpip. Just run the following command:pipinstallsimpliqmGetting StartedOnce installed, you can leverage the library's public API directly from Python. Two essential functions are at
your disposal:minimize: Minimize Boolean functions with the provided minterms and optional don't care terms.format_minimized_expression: Format the minimized expression for clearer representation.Command Line InterfaceAdditionally, the library provides a convenient command-line interface. After installation, you can use the
'qm' entry point directly from the terminal:qmRequirementsEnsure you have Python version 3.6 or higher installed to use this library.UsageFrom Python:fromsimpliqmimportminimize,format_minimized_expressionn_bits=4minterms=[0,1,2,4,8,10,12,15]xterms=[5,6]minimized_result=minimize(n_bits,minterms,xterms)formatted_result=format_minimized_expression(minimized_result)print(f"Minimized Expression:{formatted_result}")From the Terminal:qmFollow the prompts to input your Boolean function details.ResourcesQuine McCluskey Algorithm WikipediaBoolean AlgebraLicenseThis project is licensed under theGNU General Public License v3.0.
Package: simplisafe-python
🚨 simplisafe-python: A Python3, async interface to the SimpliSafe™ APIsimplisafe-python(hereafter referred to assimplipy) is a Python3,asyncio-driven interface to the unofficialSimpliSafe™API. With it,
users can get data on their system (including available sensors), set the system state,
and more.DocumentationYou can find complete documentationhere.ContributingThanks to all ofour contributorsso far!Check for open features/bugsorinitiate a discussion on one.Fork the repository.(optional, but highly recommended) Create a virtual environment:python3 -m venv .venv(optional, but highly recommended) Enter the virtual environment:source ./.venv/bin/activateInstall the dev environment:script/setupCode your new feature or bug fix on a new branch.Write tests that cover your new functionality.Run tests and ensure 100% code coverage:poetry run pytest --cov simplipy testsUpdateREADME.mdwith any new documentation.Submit a pull request!
Package: simplistic
simplisticPackageMetaA base class for creating command line interface (cli) wrappers.What is it?simplisticis a Python package that provides fast and flexible access to generating command line statements using natural language and method chaining.. It aims to be the fundamental building block creating any command line wrapper.Table of ContentsMain FeaturesWhere to get itDependenciesLicenseDocumentationMain FeaturesHere are just a few of the things that pandas does well:Allows to mapping natural language to tersely define command line arguementsProvides method chaining to assemble complete statementsAutomatic execution of commandsWhere to get itThe source code is currently hosted on GitHub at:https://github.com/jesse-sealand/simplisticThe latest released version are available at thePython
Package Index (PyPI)only at this time.# PyPIpipinstallsimplisticDependenciesNot dependant on packages outside of python core library.LicenseMITDocumentationThe official documentation is hosted onRead the Docs.
Package: simpl-kafka-wrapper
Repo SetupSetup aws cli with DE-prod account credentialsexport CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain simpl --domain-owner 950779425701 --region ap-south-1 --query authorizationToken --output text`                             
poetry config repositories.simpl_utils https://aws:$CODEARTIFACT_AUTH_TOKEN@simpl-950779425701.d.codeartifact.ap-south-1.amazonaws.com/pypi/pypi-store/
poetry config repositories.simpl_kafka_event_publisher https://aws:$CODEARTIFACT_AUTH_TOKEN@simpl-950779425701.d.codeartifact.ap-south-1.amazonaws.com/pypi/pypi-store/Kafka ConfigBelow are the available options available for configuring kafka producer behaviorAttributeKafka Config MappingDefault Valuebootstrap_serversbootstrap.serversRequiredclient_idclient.id""linger_mslinger.ms5msbatch_sizebatch.size16384delivery_timeout_msdelivery.timeout.ms120000batch_num_messagesbatch.num.messages1000compression_typecompression.typenoneacksacksallconnections_max_idle_msconnections.max.idle.ms540000queue_buffering_max_messagesqueue.buffering.max.messages100000queue_buffering_max_kbytesqueue.buffering.max.kbytes100UsageDefine a KafkaConfig Objectconfig=KafkaConfig(bootstrap_servers="localhost:29092",linger_ms=1,batch_size=1,queue_buffering_max_messages=1,batch_num_messages=1)Create a KafkaEventPublisher Objectproducer=KafkaEventProducer(config)Create an event object schema by inheriting fromBaseEventModelclassCustomEventModel(BaseEventModel):phone_number:struser_id:str...event=CustomEventModel(phone_number="1234567890",user_id="123")Publish messages to kafka using above producer, providing topic name and eventproducer.publish("some_topic",event)
Package: simplon.plone.currency
This package adds currency handling support to a Plone site. Site managers
can enable any of the standard currencies in a site and manage the currency
rates.InstallingThis package is made to be used as a normal python package within Zope 2.10
and needs Plone 3.0 or later.First you need to install this package in the python path for your
Zope instance. This can be done by installing it in either your system
path packages or in the lib/python directory in your Zope instance.After installing the package it needs to be registered in your Zope instance.
This can be done by putting a simplon.plone.currency-configure.zcml file in the
etc/pakage-includes directory with this content:<include package="simplon.plone.currency" />or, alternatively, you can add that line to the configure.zcml in a
package or Product that is already registered.Installing with buildoutIf you are usingbuildoutto manage your instance installing
simplon.plone.currency is even simpler. You can install it by adding
it to the eggs line for your instance:[instance]
eggs = simplon.plone.currency
zcml = simplon.plone.currencyThe last line tells buildout to generate a zcml snippet that tells Zope
to configure simplon.plone.currency.Managing currenciesIn order to manage currencies you first need to install the package
in your Plone site. You can do this using the standard Add/Remove Products
page in the Plone site setup. You need to install the ‘Currency support’
product.After installing the package in your site a new Currencies option
will be available in the site setup. This is where you can manage your
currencies.Currencies can be added using the ‘Add currency’ button. You only
need to select the currency and the conversion rate: the currency
description and symbol will be configured automatically.You have to select a single currency as the ‘main currency’. This is the
currency against which all conversion rates are defined. You can not
edit or remove the main currency: its rate is fixed to 1.0 as reference
value for all rates.
Package: simplon.plone.ldap
Overviewsimplon.plone.ldap provides a user interface in a Plone site to manage
LDAP and Active Directory servers.It builds on the functionality provided byLDAPMultiPlugins,LDAPUserFolderandPloneLDAP.Active DirectoryActive Directory provides an LDAP interface to its data. Using this interface
Plone can use both users and groups from an Active Directory system. Writing
to Active Directory is not supported.With Active Directory you can use two different properties as login name:userPrincipalNameandsAMAccountName.sAMAccountNameis the plain account
name without any domain information and is only unique within a single domain.
If your environment only uses a single AD domain this option is the best
choice. For environments with multiple names theuserPrincipalNameattribute
can be used since this includes both account name and domain information.Since Plone does not support binary user ids it is not possible to use theobjectGUIDattribute as user ids. Instead you can use eithersAMAccountNameoruserPrincipalName. The same criteria for choosing a login name also
apply to selecting the user id attribute.Standard LDAPLDAP directory servers are fully supported. LDAP users and groups are usable
as standard Plone users and groups can be me managed normally. Creating and
deleting users and groups is supported.InstallingThis package is made to be used as a normal python package within Zope 2.10
and needs Plone 3.0 or later.You need to installPloneLDAPand its requirements in your Zope instance
before you can use simplon.plone.ldap. This can easily be done by downloading
its product bundle and extracting that in your Products directory.Install without buildoutFirst you need to install this package in the python path for your
Zope instance. This can be done by installing it in either your system
path packages or in the lib/python directory in your Zope instance.After installing the package it needs to be registered in your Zope instance.
This can be done by putting a simplon.plone.currency-configure.zcml file in the
etc/pakage-includes directory with this content:<include package="simplon.plone.currency" />or, alternatively, you can add that line to the configure.zcml in a
package or Product that is already registered.Installing with buildoutIf you are usingbuildoutto manage your instance installing
simplon.plone.currency is even simpler. You can install it by adding
it to the eggs line for your instance:[instance]
eggs = simplon.plone.ldap
zcml = simplon.plone.ldapThe last line tells buildout to generate a zcml snippet that tells Zope
to configure simplon.plone.ldap.Copyright and credits:Copyrightsimplon.plone.ldap is Copyright 2007 by SimplonCreditsWichert Akkerman <wicher@simplon.biz>FundingCentrePoint