Saravanan666/pypi-org huggingface dataset:
Package: sbrunner-hooks
Pre commit hookspre-commithook used to...Check if the copyright is up to date (using the Git history).Adding to your.pre-commit-config.yamlci:skip:# Skip the copyright check on pre-commit.ci because we don't have the Git history-copyright-copyright-required# Poetry didn't works with Python 3.11-poetry-lock-poetry-checkrepos:-repo:https://github.com/sbrunner/hooksrev:<version># Use the ref you want to point athooks:# Check that the copyright is up to date-id:copyright# Check that the copyright is present and up to date-id:copyright-required# Require a timeout in GitHub workflow files-id:workflows-require-timeout# Check Poetry config-id:poetry-checkadditional_dependencies:-poetry==<version># Do Poetry lock-id:poetry-lockadditional_dependencies:-poetry==<version># Do Pipfile lock-id:pipenv-lockadditional_dependencies:-pipenv==<version># Do Helm lock (helm should be installed)-id:helm-lock-id:npm-lockCopyright configurationThe default values used in the.github/copyright.yamlfile.Default values:one_date_re:'Copyright\\(c\\)(?P<year>[0-9]{4})"))'two_date_re:'Copyright\\(c\\)(?P<from>[0-9]{4})-(?P<to>[0-9]{4})")'one_date_format:'Copyright(c){year}")'two_date_format:'Copyright(c){from}-{to}")'license_file:LICENSE
Package: sbrunner-pre-commit-hooks
Pre commit hookspre-commithook used to...Check if the copyright is up to date (using the Git history).Adding to your.pre-commit-config.yamlci:skip:# Skip the copyright check on pre-commit.ci because we don't have the Git history-copyright-copyright-required# Poetry didn't works with Python 3.11-poetry-lock-poetry-checkrepos:-repo:https://github.com/sbrunner/pre-commit-hooksrev:<version># Use the ref you want to point athooks:# Check that the copyright is up to date-id:copyright# Check that the copyright is present and up to date-id:copyright-required# Require a timeout in GitHub workflow files-id:workflows-require-timeout# Check Poetry config-id:poetry-checkadditional_dependencies:-poetry==<version># Do Poetry lock-id:poetry-lockadditional_dependencies:-poetry==<version># Do Pipfile lock-id:pipenv-lockadditional_dependencies:-pipenv==<version># Do Helm lock (helm should be installed)-id:helm-lockCopyright configurationThe default values used in the.github/copyright.yamlfile.Default values:one_date_re:'Copyright\\(c\\)(?P<year>[0-9]{4})"))'tow_date_re:'Copyright\\(c\\)(?P<from>[0-9]{4})-(?P<to>[0-9]{4})")'tow_date_format:'Copyright(c){from}-{to}")'
Package: sbsecuretunnel
sbsecuretunnelA python module to make using tunnels easy.Note: this is pre-release software. If you encounter any problems,
please reach out to CrossBrowserTestingpippip install sbsecuretunnelHow to usefrom sbsecuretunnel.sb_securetunnel import SBTunnel
tunnel = SBTunnel(username="you@email.com", authkey="yourauthkey")
tunnel.start_tunnel()
...
tunnel.kill_tunnel()FeaturesAutomatically gets the correct tunnel for your platformHandles cleanly starting and stopping the tunnel connectionHandles all features of the tunnelCreating a tunnel objectThe tunnel object is created with the following options:username("") - CBT usernameauthkey("") - CBT authkeydelete_after(False) - delete the tunnel binary after kill (note: on Windows, make sure backslashes are escaped\\)tunnel_location(".") - location to download tunnel binary toready_file("ready.check") - ready file for tunnel clientkill_file("kill.check") - kill file for tunnel clientTunnel optionsThese are all methods available on the tunnel objectbypass(bool)- enable or disable bypassset_https_proxy(string)- string should be the HTTPS proxyset_http_proxy(string)- same as above for HTTPset_tunnel_name(string)- set the name of the named tunnelset_pac_file(string)- set the client to use the PAC file at path stringset_html_path(string)- set the path to use for local HTML files to be servedset_proxy(host="string", port="string", username="string"/None, password="string/None)- set proxy settingsset_accept_all_certs(bool)- set whether to accept all certs in the tunnel client
Package: sb-serializer
My Simple Json Serializer and Naming UtilitiesThe main class is the serializer - HardSerializerIt's not particularly hard, just doesn't try to infer the class to deserialize (like my previous iterations), you need to specify the class directly.
Also, it's fairly picky about the format of the class - you need to use typingEVERYWHEREor it doesn't work.  It uses a lot of reflection to
figure stuff out, and the typing is critical.It can figure out enums, lists, hierarchies, etc.  Pretty powerful.  The json is standard, no tags or anything, and compatible with other languages and libraries
like System.Text.Json in .NETIt essentially converts the object model into dicts and thenjson.dumps()them to serialize, the reverse for deserialize.UsageYou need to specify the fields in the class definition as well as in theinit- like so:class TestClass(object):
    id: int
    name: str
    guid: uuid.UUID
    test_enum: TestEnum

    def __init__(
        self,
        id: int = 0,
        name: str = "",
        guid: uuid.UUID = uuid.uuid4(),
        test_enum: TestEnum = TestEnum.Undefined,
    ):
        self.id = id
        self.name = name
        self.guid = guid
        self.test_enum = test_enumNote the typing hints everywhereIt can handle hierarchies as long as the type hints are there:class ParentClass(object):
    id: int
    name: str
    guid: uuid.UUID
    test_enum: TestEnum
    children: list[TestClass]

    def __init__(
        self,
        id: int = 0,
        name: str = "",
        guid: uuid.UUID = uuid.uuid4(),
        test_enum: TestEnum = TestEnum.Undefined,
        children: list[TestClass] = [],
    ):
        self.id = id
        self.name = name
        self.guid = guid
        self.test_enum = test_enum
        self.children = childrenUnit tests are included to see usage, but the basics are:tc = TestClass(12, "Bob", test_enum=TestEnum.Value1)
json = serializer.serialize(tc)
new_tc = serializer.de_serialize(json, TestClass)It will try to deserialize into theTestClassNamingThe naming is a bit weirder, and uses custom dictionaries to work - not sure how else to do it.The project originated from trying to form decent property names from database fieldnames.UsageCreate theNamingclass instance from the 2 dictionaries, the standard word list and the bigwords list (specifies common word combinations that are hard to infer)CreateNameclass instances by usingnaming.string_to_name()TheNameclass instance has different methods on it likePascal,Snake, etc.Simple.Buildingpython -m buildDeployingpython -m twine upload --repository pypi dist/*
Package: sbss
Similarity Stratified SplitImplementation of the Similarity-Based Stratified Splitting algorithm described inSimilarity Based Stratified Splitting: an approach to train better classifiers.OverviewThe authors propose a Similarity-Based Stratified Splitting (SBSS) technique, which uses both the output and input space information to split a dataset. Splits are generated using similarity functions among samples to place similar samples in different splits. This approach allows for a better representation of the data in the training phase. This strategy leads to a more realistic performance estimation when used in real-world applications.InstallLocalgit clone https://github.com/timothyckl/similarity-stratified-split.git
cd ./similarity-stratified-split
pip install -e .Usageimportnumpyasnpfromscipy.spatialimportdistancefromsbssimportSimilarityStratifiedSplitdefget_distances(x):distances=distance.squareform(distance.pdist(x,metric='euclidean'))returndistances# inputs are recommended to be normalizedX=np.random.rand(1000,128)y=np.random.randint(0,10,(1000,))n_splits=3s=SimilarityStratifiedSplit(n_splits,get_distances)fortrain_index,test_indexins.split(X,y):print(f"Train indices:{train_index}\nTest indices:{test_index}")print("="*100)ReferencesFarias, F., Ludermir, T. and Bastos-Filho, C. (2020) Similarity based stratified splitting: An approach to train better classifiers, arXiv.org. Available at:https://arxiv.org/abs/2010.06099(Accessed: 27 November 2023).
Package: sbsTC
sbsTCDescriptionRetrieves the official exchange rate for Peru within a specified date range from SBS. This library is written in Python 3.11Installationpip install sbsTCBasic CodefromsbsTCimportSbsTCtc=SbsTC()data=tc.get_exchange('USD','25/09/2023','30/09/2023')print(data)The following result is obtained:{'25/09/2023':{'buy':'3.765','sell':'3.773'},'26/09/2023':{'buy':'3.779','sell':'3.787'},'27/09/2023':{'buy':'3.793','sell':'3.799'},'28/09/2023':{'buy':'3.801','sell':'3.806'},'29/09/2023':{'buy':'3.790','sell':'3.797'}}SettingsOptionDescriptionDefaultAllowed valuesdate_formatDate format%d/%m/%Yhttp://strftime.orgExamplefromsbsTCimportSbsTCtc=SbsTC(date_format='%Y-%m-%d')data=tc.get_exchange('USD','25/09/2023')print(data)The following result is obtained:{'2023-09-25':{'buy':'3.765','sell':'3.773'}}If no information is found:DataNotFound:NohayinformaciÃ³ndisponibleparaelrangoseleccionadoCurrenciesPermitted currencies:CurrencyCodeAmerican dollarUSDEuroEURJapan YenJPYCanadian dollarCADSwedish KronaSEKSwiss FrancCHFBritish PoundGBPMethodsget_exchange(currency,from_date,to_date=None)Obtains the currency exchange rate for the provided currency based on a given date range. The result will be a dictionary of exchange rates. (https://docs.python.org/3/tutorial/datastructures.html#dictionaries).ConsiderationsThe information is available from the year 2000 onwards.The obtained exchange rate is as of the previous day.
Package: sbt-python-client
=====================================================================sbt-python-client: Wrapper for consuming `solutions by text REST API <https://www.solutionsbytext.com/api-support/api-documentation/>`_.=====================================================================sbt-python-client implements solutionsbytext REST APIs for python.============* Python Python 3.5+Install============The quick way::pip install sbt-python-clientTypical usage often looks like this :1. Security Token.. code-block:: pythonfrom solutions_by_text import create_security_tokenAPI_KEY = '<API_KEY_PROVIDED_BY_SBT>'# use 'ui' for production and 'test' for stagging APIsSTAGE = 'test'security_token = create_security_token(API_KEY, STAGE)1. Carrier.. code-block:: pythonfrom solutions_by_text import carriersecurity_token = create_security_token(API_KEY, STAGE)carrier_object = carrier.CarrierLookUp(security_token=security_token,org_code='ORG_CODE',stage=STAGE,phone='<PHONE_NUMBER>')response = carrier_object.get()2. Subscriber.. code-block:: pythonfrom solutions_by_text import subscriberphones = '%s' % (["XXXXXXXXXX", "ZZZZZZZZZZ"])subscriber_object = subscriber.SubscriberStatus(security_token=security_token,org_code='ORG_CODE',stage=STAGE,phone=phones)response = subscriber_object.get()2. Message.. code-block:: pythonfrom solutions_by_text import messagephone = "XXXXXXXXXX"my_message = "This is my text message"message_object = message.Message(security_token=security_token,org_code='ORG_CODE',stage=STAGE,phone=phone,message=my_message)response = message_object.send()
Package: sbucket
RIPE-Atlas-sbucketSpatial Bucketing of RIPE Atlas Probes on Map ProjectionsThis tool selects probes based on spatial distribution on an arbitrary map projection. Some tweaking might be required for non-mercartor like projections.Installationpip install sbucketUsageusage: sbucket [-h] [--data DATA] [--projection PROJECTION]
               [--maxiter MAXITER] [--country COUNTRY [COUNTRY ...]]
               [--verbose]
               count

Spatial bucketing of RIPE Atlas probes.

positional arguments:
  count                 number of probes to be returned

optional arguments:
  -h, --help            show this help message and exit
  --data DATA, -d DATA  dump of probe metadata, if not given data is retrieved
                        from atlas.ripe.net
  --projection PROJECTION, -p PROJECTION
                        projection to use for spatial distribution, has to be
                        supported by pyproj (default: merc)
  --maxiter MAXITER, -m MAXITER
                        maximum number of iterations to be performed (default:
                        100)
  --country COUNTRY [COUNTRY ...], -c COUNTRY [COUNTRY ...]
                        Allowed countries. If not set: world-wide.
  --verbose, -vExample$ sbucket.py 100
[11689, 15655, 52, 1114, 168, 628, 86, 21451, 16100, 24, 13237, 11, 4096, 303, 176, 33, 4920, 683, 1190, 2810, 14449, 449, 239, 6107, 12505, 17601, 1002, 4814, 74, 1118, 78, 243, 212, 1046, 3466, 16632, 21126, 3585, 227, 126, 73, 12811, 77, 2917, 483, 446, 2062, 3, 253, 3168, 2250, 11061, 3053, 329, 1147, 3461, 2001, 524, 1042, 3579, 93, 75, 4089, 20255, 3646, 4985, 12848, 11691, 165, 3924, 516, 11744, 4776, 1016, 4000, 2564, 97, 14446, 1069, 40, 603, 13028, 645, 521, 20092, 332, 18357, 18641, 1154, 12372, 1133, 234, 1149, 4153, 2456, 15297, 13805, 2218, 18437, 4919, 470, 10688, 1165, 1003]
$Without sbucket selection (world-wide 500 probes):The distribution is biased, because it prefers areas with a high density of probes. Here you can see the global distribution of probes by country code:With sbucket selection (world-wide 500 probes):After application of the spacial bucket algorithm this distribution has a much longer tail (thus includes more countries) and small countries with high probe density are moved down and large countries are moved up the ladder:AlgorithmIt tries to find a grid with the right number of cells by iterating over grid sizes. It stops after a grid was found which yields the number of probes (with a 5% error margin) OR a maximum number of iterations have been performed.If the number of probes is bellow the targeted count, the cell number is increased (vertically and horizontally) by 50%, otherwise it is reduce by 10%.Within one cell a random probe is selected.  Grid cells are roughly square.Known ProblemsSelection might yield more or less probes then expected, no guarantees here, but it works well for larger numbers (>20).The grid is set between 85 degrees north and south, this might be a problem with other projections than Mercator.
Package: sbux
sbuxsbuxis an unofficial Starbucks Singapore (SG) Python SDK.InstallingInstall and update usingpip;pipinstallsbuxExamplefromsbuximportStarbucksstarbucks=Starbucksstarbucks.get_stores()starbucks.get_menu_items(branch_code="13377")See moreexamples.ContributingFor guidance on setting up a development environment and how to make a contribution, see thecontributing guidelines.
Package: sbvirtualdisplay
sbVirtualDisplay (💻)A customizedpyvirtualdisplayfor use withSeleniumBaseautomation.Usage example:fromsbvirtualdisplayimportDisplaydisplay=Display(visible=0,size=(1440,1880))display.start()# Run browser tests in a headless environmentdisplay.stop()Or as a context manager:withDisplay(visible=0,size=(1440,1880)):# Run browser tests in a headless environment...When to use:If you need to run browser tests on a headless machine (such as a Linux backend), and you can't use a browser's headless mode (such as Chrome's headless mode), then this may help. For example, Chrome does not allow extensions in headless mode, so if you need to run automated tests on a headless Linux machine and you need to use Chrome extensions, then this will let you run those tests using a virtual display.More info:Xvfbis required for this to work.
Package: sbvoicedb
WarningThis Python package is not yet published and still under development.This Python module provides functions to retrieve data and information easily from
Saarbucken Voice Database:http://www.stimmdatenbank.coli.uni-saarland.de/InstallpipinstallsbvoicedbExamplesfromsbvoicedbimportsbvoicedb# to create a database instancesbvoicedb=sbvoicedb.SbVoiceDb('<path to the root directory of the extracted database>')# - if no downloaded database data found, it'll automatically download the database (not files)# to query the recording session entries which are pathological, female, between 50-69 yrs olddf=sbvoicedb.query(T='p',G='w',A=[50,70])# to get a dataframe of WAV files and start and ending audio sample indices of# all normal-pitch /a/ segmentsdf=sbvoicedb.get_files('a_n')# to get the audio data of /a/ vowel at normal pitch from the recording session 2091fs,x=sbvoicedb.read_data(2091,'a_n')# to iterate over 'a_n' acoustic data of male participants along with aux with age and pathologiesforid,fs,x,auxdatainsbvoicedb.iter_data('a_n',auxdata_fields=["A","Pathologies"],G="m"):# run the acoustic data through your analysis function, get measurementsparams=my_analysis_function(fs,x)# log the measurements along with aux datamy_logger.log_outcome(id,*auxdata,*params)
Package: sbx
📚📦 StudyBox (SBX) - Terminal Flashcards👉👉Guide & Library Documentation👉👉Tutorial - Flashcard study session without leaving your terminalCredits 🙇‍♂️Sm2 - Algorithm by Super Memoprompt-toolkit - TUI library. 😎Why ? 🤔Wanted a flashcard solution that uses markdown.I wanted to memorise useful information.GitHub/Gitlab/etc,.. readable flashcards.Installation (Unix, Windows)Install from PyPI (pipx)pipxinstallsbxAlternatively you can install it usingpip3 install sbx(On some OSes this ispip install sbx)Install latest with pipxgitclonegit@github.com:JaDogg/sbx.gitcdsbx
pipxinstall.Install latest with setup.pygitclonegit@github.com:JaDogg/sbx.gitcdsbx
pythonsetup.pyinstallFeaturesIt's markdown. (You can use your own editor, as long as you maintain comments in it)Syntax highlighting.List files. (leech, last one marked with lowest score, include all, etc.)Use your own folder structure. (Study at any level in your structure, recursive or not is up to you)Built in editor which shows front and back of the flashcards.Push your files to github and you can read them.CopyrightThis software is Copyright (c) 2020 Bhathiya Perera.See the LICENSE file for more information.
Package: sbx-rl
Stable Baselines Jax (SB3 + JAX = SBX)Seehttps://github.com/araffin/sbxProof of concept version ofStable-Baselines3in Jax.Implemented algorithms:Soft Actor-Critic (SAC)andSAC-NTruncated Quantile Critics (TQC)Dropout Q-Functions for Doubly Efficient Reinforcement Learning (DroQ)Proximal Policy Optimization (PPO)Deep Q Network (DQN)Twin Delayed DDPG (TD3)Deep Deterministic Policy Gradient (DDPG)ExamplefromsbximportDDPG,DQN,PPO,SAC,TD3,TQC,DroQmodel=TQC("MlpPolicy","Pendulum-v1",verbose=1)model.learn(total_timesteps=10_000,progress_bar=True)
Package: sc14npy
The utilitySc14nperforms the C14N transformation of a straightforward XML document.The transformation can be of the complete document, a subset of the document, or the documentexcludinga given subset.
The subset can be specified either by its ID or tag name.>>> # Example 1. Excludes the first element with the tag name <Signature>
>>> r = C14n.file2file("c14nfile1.txt", "input.xml", "Signature", Tran.OMITBYTAG)
True
>>> # Example 2. Finds and transforms the first element with the tag name <SignedInfo>
>>> r = C14n.file2file("c14nfile2.txt", "input.xml", "SignedInfo", Tran.SUBSETBYTAG)
True
>>> # Example 3. Finds and transforms the third element with the tag name <Data>
>>> r = C14n.file2file("c14nfile3.txt", "input.xml", "Data[3]", Tran.SUBSETBYTAG)
True
>>> # Example 4. Finds and transforms the element with attribute Id="foo"
>>> r = C14n.file2file("c14nfile4.txt", "input.xml", "foo", Tran.SUBSETBYID)
True
>>> # Example 5. Finds and transforms the element with attribute ID="bar"
>>> r = C14n.file2file("c14nfile5.txt", "input.xml", "ID=bar", Tran.SUBSETBYID)
True
>>> # Example 6. Excludes element with attribute Id="thesig"
>>> r = C14n.file2file("c14nfile6.txt", "input.xml", "thesig", Tran.OMITBYID)
TrueFor full details of all available methods and options, please see thedocumentation.Sc14n can be used with a cryptographic library to sign XML documents using XML-DSIG.
We recommend our cryptographic libraryCryptoSys PKIavailable fromhttps://cryptosys.net/pki/.System requirementsWindows platforms with Python 3.
Requires the Windows programSc14nto be installed on your system, available fromhttps://cryptosys.net/sc14n/.To carry out the cryptographic signing examples  intest_sc14n-pki.pyyou must also installCryptoSys PKIandcryptosyspki.py(see links below).DownloadsSc14n:https://cryptosys.net/sc14n/CryptoSys PKI:https://cryptosys.net/pki/cryptosyspki.py:https://pypi.python.org/pypi/cryptosyspki/ContactFor more information or to make suggestions, please contact us athttps://cryptosys.net/contact/David IrelandDI Management Services Pty LtdAustralia28 December 2018
Package: sc2bank
Python module to sign StarCraft II bank files which are used to save stats in Arcade.InstallationAny platformInstall PyQt4 for the GUI.pip install sc2bankPrepackaged GUI ReleasesMac 0.2https://www.dropbox.com/s/co1r0dtdq2lb1d6/sc2bank.app.zipWindows 0.2https://www.dropbox.com/s/qo41t2dod7kpzny/sc2bank.exe.zipHow to useFrom PyPi (Pip, Easy_install)GUI:python -m sc2bank.guiCLI:python -m sc2bank path/to/bank.SC2BankFrom Prepackaged GUI ReleaseUnzip the file and double click on the EXE/APP file.Contributing and Feedbacksc2bank@fastmail.fmis always listening. Open an issue with the file and metadata
(e.g. the file’s path and your User ID, bank’s name, bank’s author). Use KISS philosophy
when contributing code.
Package: sc2castsclient
===============================sc2casts client===============================.. image:: https://badge.fury.io/py/sc2castsclient.png:target: http://badge.fury.io/py/sc2castsclient.. image:: https://travis-ci.org/thmttch/sc2castsclient.png?branch=master:target: https://travis-ci.org/thmttch/sc2castsclient.. image:: https://pypip.in/d/sc2castsclient/badge.png:target: https://crate.io/packages/sc2castsclient?version=latestClient for crawling sc2casts.com, in python* Free software: BSD license* Documentation: http://sc2castsclient.rtfd.org.This thing needs a lot of work.Features--------* TODOUsage--------Set what the Makefile provides:```bash$> make help```Run tests:```bash# quick dev testing$> make test# full testing$> make testall```Development--------There is a [`download script`](tests/data/download.sh) for updating the localtest suite, for keeping up-to-date as [sc2casts.com](https://sc2casts.com)changes over time. Note that the script is meant to be run in the same dir:```bash$> cd tests/data && ./download.sh```Misc--------Packaged with the help of https://github.com/audreyr/cookiecutter-pypackageHistory-------0.1.0 (2014-02-08)++++++++++++++++++* First release on PyPI.
Package: sc2common
common values, functions and objects for any packages that support SC2PurposeThis package definse constants, types, containers and functions commonly used throughout the Starcraft 2 deveopment
space.  Consolidating these into a single package allows developers to utilize these items while ensuring they are
centrally defined and implemented once. Its usage is as a library only with no specific functionality to invoke except
through one's own code.InstallationThis package is often automatically installed as a dependency by other packages that support Starcraft 2 in some way.
Nevertheless, this package can also be directly installed by itself.It is recommended to install this pacakge usingAnaconda.  However, installation is also supported viapypi.org.EXAMPLE:conda install -c versentiedge sc2commonEXAMPLE:pip install sc2common