Saravanan666/pypi-org huggingface dataset:
Package: sandclock
Basic UsageA decorator for measuring asynchronous/synchronous function execution time (in seconds) is offered by this Python module.1st parameter: total number of iterations of the function. defaults to 1.2nd parameter: (int, optional): precision of execution time in seconds. defaults to 5.3rd parameter: (bool, optional): whether each function execution time is printed. defaults to true.Example 1: synonymous functionfromsandclockimportsandclock@sandclock(3)#execute f1() 3 times.deff1(x):print("f1: ",x)f1("hello world")Results:Sandclock: synchronous <function f1 at 0x7f89eaca7e50> with args ('hello world',) {}
Sandclock: iteration: 0 started, <function f1 at 0x7f89eaca7e50> with args ('hello world',) {}
f1:  hello world
Sandclock: iteration: 0 finished, <function f1 at 0x7f89eaca7e50> in 0.000823 second(s)
Sandclock: iteration: 1 started, <function f1 at 0x7f89eaca7e50> with args ('hello world',) {}
f1:  hello world
Sandclock: iteration: 1 finished, <function f1 at 0x7f89eaca7e50> in 0.000075 second(s)
Sandclock: iteration: 2 started, <function f1 at 0x7f89eaca7e50> with args ('hello world',) {}
f1:  hello world
Sandclock: iteration: 2 finished, <function f1 at 0x7f89eaca7e50> in 0.000151 second(s)
Sandclock: total time: 0.001050, total iterations: 3```Example 2: (Asynchronous function)importaiohttpimportasynciofromsandclockimportsandclockasyncdefstatus(session:aiohttp.ClientSession,url:str)->int:asyncwithsession.get(url)asresult:returnresult.status#execute f2() 2 times, 3 precisions, printing details of each function call.@sandclock(2,3,True)asyncdeff2():asyncwithaiohttp.ClientSession()assession:urls=['https://google.com','xxx://bad-request.com']tasks=[status(session,url)forurlinurls]results=awaitasyncio.gather(*tasks,return_exceptions=True)exceptions=[resforresinresultsifisinstance(res,Exception)]successful_results=[resforresinresultsifnotisinstance(res,Exception)]print(f'All results:{results}')print(f'Finished successfully:{successful_results}')print(f'Threw exceptions:{exceptions}')asyncio.run(f2())Results:Sandclock: coroutine <function f2 at 0x7f632fd3e430> with args () {}
Sandclock: iteration: 0 started, <function f2 at 0x7f632fd3e430> with args () {}
All results: [200, AssertionError()]
Finished successfully: [200]
Threw exceptions: [AssertionError()]
Sandclock: iteration: 0 finished, <function f2 at 0x7f632fd3e430> in 2.400 second(s)
Sandclock: iteration: 1 started, <function f2 at 0x7f632fd3e430> with args () {}
All results: [200, AssertionError()]
Finished successfully: [200]
Threw exceptions: [AssertionError()]
Sandclock: iteration: 1 finished, <function f2 at 0x7f632fd3e430> in 2.385 second(s)
Sandclock: total time: 4.785 second(s), total iterations: 2
Package: sandcraft
# Sandcraft
Sandcraft is a 2D physics-based, particle simulator game where players can interact with different elements to create fun combinations and results!## Installation
To play Sandcraft:
1. Download and unzip the GitHub repository to a local directory
2. Within the directory runpip3 install .to install thesandcraftpackage
3. From the command line, typeplay-sandcraftto run## Links
GitHub:https://github.com/jonathansessa/SandcraftTrello (Issue Tracker):https://trello.com/b/qNsYidQG/sandcraft## About
Sandcraft is currently being developed for the Summer 2021 semester of CIS4930: Performant Programming in Python at the University of Florida by Team SiO2:
- John Hook (https://github.com/jhook1)
- Anthony Kane (https://github.com/anthonyvkane)
- Levi Mutter (https://github.com/lmutter)
- Jonathan Sessa (https://github.com/jonathansessa)
- Lukas Vaiciunas (https://github.com/lukas-vaiciunas)
Package: sandcraft-anthonyvkane47
# Sandcraft
Sandcraft is a 2D physics-based, particle simulator game where players can interact with different elements to create fun combinations and results!## Installation
To play Sandcraft:
1. Download and unzip the GitHub repository to a local directory
2. Within the directory runpip3 install .to install thesandcraftpackage
3. From the command line, typeplay-sandcraftto run## Links
GitHub:https://github.com/jonathansessa/SandcraftTrello (Issue Tracker):https://trello.com/b/qNsYidQG/sandcraft## About
Sandcraft is currently being developed for the Summer 2021 semester of CIS4930: Performant Programming in Python at the University of Florida by Team SiO2:
- John Hook (https://github.com/jhook1)
- Anthony Kane (https://github.com/anthonyvkane)
- Levi Mutter (https://github.com/lmutter)
- Jonathan Sessa (https://github.com/jonathansessa)
- Lukas Vaiciunas (https://github.com/lukas-vaiciunas)
Package: sanddance
sanddance-jupyter-widgetCustom Jupyter Widget withSandDanceInstallationYou can install usingpip:pipinstallsanddanceIf you use jupyterlab:jupyterlabextensioninstall@msrvida/sanddance-jupyter-widget
jupyterlabextensioninstall@jupyter-widgets/jupyterlab-managerIf you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:jupyternbextensioninstall--sys-prefix--symlink--overwrite--pysanddancejupyternbextensionenable--py--sys-prefixsanddanceOr you can install withcondainstead ofpipcondainstallsanddanceGetting StartedSee alsoexamples/introduction.ipynbimportpandasaspdfromsanddanceimportExplorersd=Explorer()sd.show()df=pd.DataFrame([{'x':1,'y':1,'text':'first'},{'x':2,'y':2,'text':'second'},{'x':3,'y':3,'text':'third'},])sd.load(df)Powered bywidget-ts-cookiecutter
Package: sanderthedragon-sphinxext
These are someSphinxextensions I wrote, feel free to use them.Code Block Buttonsadds copy and view buttons to code blocks.Extra Lexersadds extra lexers to pygments currently only LLVM JSON.Mapped Link Roleadds custom roles which can be mapped to links.InstallationThe extensions can withpip.pip3installsanderthedragon-sphinxextSource CodeThe source code is hosted onGitLab.ChangelogChangelog is availablehere.LicenseThese documents are licensed underCC-BY-SA-4.0.
Code and examples are licensed underMIT.
Other files, like configuration files are licensed underCC0-1.0.HintThis project isREUSEcompliant.
Package: sandesh
+-+-+-+-+-+-+-+
|s|a|n|d|e|s|h|
+-+-+-+-+-+-+-+sandesh (संदेश) in Hindi means message.
This is a simple python library to send messages to Slack using webhook urls.InstallingYou can install the bleeding edge version of this library by doing:git clone git@github.com:abhishekkrthakur/sandesh.git
cd sandesh
python setup.py installOr from pip:pip install sandeshUsageUsing sandesh is very easy.First of all you need a webhook. You can either keep this webhook as environment variable:SANDESH_WEBHOOKOr you can send it in thesendfunction:sandesh.send(msg, webhook="XXXXX").I like to keep it as environment variable so that I dont accidently push it to GitHub ;)You can send a message to the provided webhook by doing:import sandesh

loss = 0.15
msg = f"Training loss was {loss}"
sandesh.send(msg)sandesh also supports dictionaries, OrderedDict and defaultdict. An example for OrderedDict is provided below:import collections
import sandesh

log = collections.OrderedDict([
        ('training_epoch', 5),
        ('loss', 0.08)
    ])
sandesh.send(log)If you want to go fancy, take a look at custom messages for slack. You can create your own custom message and send using:import sandesh

# data = Fancy slack json
sandesh.send(data, use_raw=True)This is a simple app that I use to send me notifications of my training processes from home workstation or AWS/GCP machines.
Package: sandhi
Sanskrit Sandhi ModuleFree software: GNU General Public License v3Documentation:https://sandhi.readthedocs.io.FeaturesForm Sandhi using Ashtadhyayi RulesInstallTo install Sanskrit Sandhi, run this command in your terminal:$pipinstallsandhiUsageTo use Sanskrit Sandhi in a project,importsandhiS=sandhi.Sandhi()sandhi=S.sandhi("रामः","राजमणिः")# print(sandhi)# [['रामो राजमणिः', 'ससजुषो रुः (८।२।६६)-> हशि च (६।१।११४)-> आद् गुणः (६।१।८७)', 'रुत्व-> उत्व-> गुण-सन्धिः']]CreditsThis package was converted from Perl version obtainable fromSamsaadhaniiThis package was created withCookiecutterand thehrishikeshrt/cookiecutter-pypackageproject template.History0.1.0 (2022-07-03)First release on PyPI.
Package: sandhole
sandholeAdd a short description here!A longer description of your project goes here…Making Changes & ContributingThis project usespre-commit, please make sure to install it before making any
changes:pip install pre-commit
cd sandhole
pre-commit installIt is a good idea to update the hooks to the latest version:pre-commit autoupdateDon’t forget to tell your contributors to also install and use pre-commit.NoteThis project has been set up using PyScaffold 4.4. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: sandia.conferencepolicy
Developed for use on Sandia multiconference sites.Installs add-ons needed for the site, primarily:easyformMosaicsocial networking sharingDefines Dexterity content types for:conferencespresentationsspeakerstraining classesDocumentationDocumentation for end users can be found in the “docs” folder.TranslationsThis product has not yet been translated.InstallationInstall sandia.conferencepolicy by adding it to your buildout:[buildout]

...

eggs =
    sandia.conferencepolicyand then runningbin/buildoutContributeSource Code:https://bitbucket.org/sixfeetup/sandia.conferencepolicySupportIf you are having issues, please let us know at the Plone forum,https://community.plone.orgLicenseThe project is licensed under the GPLv2.ContributorsKim Nguyen,kim@sixfeetup.comChangelog1.0a7 (2020-01-27)update content type descriptionsensure copied registration form is not excluded from navigationmake registration form Subject (topic) not requiredadd PrintingMailHost to debug sending email
[tkimnguyen]1.0a6 (2020-01-23)exclude Registration form from nav; add default new content and footer images; override footer and colophon templates
[tkimnguyen]1.0a5 (2020-01-22)add plonesite recipe to create the Sandia site automatically
[tkimnguyen]1.0a4 (2020-01-22)monkey patch plone.dexterity (#124)
[tkimnguyen]1.0a3 (2020-01-22)Rebuilt add-on starting with bobtemplates.plone:addon so it loads correctly in plonesite recipe
[tkimnguyen]1.0a1 (2020-01-15)updated to work with Plone 5.2 on Python 3.7add conference type, add base event-ish default view for conference, add collection behaviour to conference type, add object added event handler, add speakers folder, add talks folder, constrain addable typesconstrain types in Conference types, fix subfolder constrainsmanually create a template registration form; on conference create, copy the template registration form into iton installation, import template registration form into site rootuse bug fix branch of plone.dexterity to allow template registration form creationset email address in mailer adapter of copied registration form to event contact email addresscreate on save handler to update registration form mail recipient_email if event contact email changescreate uninstall profileshow collection at bottom of Conference viewadd conference_listing_view (shows list of talks), make conference_view the defaultset default collection constraints to list presentationsautomatically include sandia.conferencetheme add-onmove login link to footerhide search viewletremove unneeded plone.tiles behavior in Conference typefix add-on name and URLs in setup.pychange underlying name of add-on to sandia.conferencepolicyupdate README with new add-on name and info
[tkimnguyen]0.1 (2016, 2017, 2018)deployed to 2018.ploneconf.orgupdates for 2017.ploneconf.org
[sneridagh, tkimnguyen]Initial release for 2016.ploneconf.org.
[alecpm, tkimnguyen]
Package: sandia.conferencetheme
Theme for Sandia’s multiconference siteFeatureslooks likehttps://2020cities.sandia.govExamplesThere are currently no example sites there this can be seen.DocumentationFull documentation for end users can be found in the “docs” folder.TranslationsThis product has not been translated yet.InstallationInstall sandia.conferencetheme by adding it to your buildout[buildout]...eggs=sandia.conferencethemeand then runbin/buildoutContributeSource Code:https://bitbucket.org/sixfeetup/sandia.conferencethemeSupportIf you are having issues, please let us know on the Plone forum,https://community.plone.orgLicenseThe project is licensed under the GPLv2.ContributorsKim Nguyen,kim@sixfeetup.comChangelog1.0a1 (2020-01-15)Initial release.
[tkimnguyen]
Package: sandipan
THIS IS MY SHORT BIODATA.I make it only for FUN.Born and raised in India. I’m a Computer Science student with a passion for coding & testing and interested in IT Security. Recently completed M.Sc in Computer Science from West Bengal State University with a demonstrated history of working in the computer and network security, software testing & IT Security & automation.I’m truly passionate about my work and always increase my knowledge. I also like to try new technologies and improve myself under each point of view.Currently working as a Security Engineer at Parrot Security.To Install & Run, do the following:pip install sandipan (to install my package)from sandipan import me (to run my package)Contact Me:Email:sandipan@parrotsec.orgorme@sandipan.mlTwitter:https://twitter.com/bytehackrLinkedin:https://linkedin.com/in/bytehackrInstagram:https://instagram.com/bytehackr
Package: sandi-python-toolbox
SANDI python toolboxA BIDS app for fitting the Soma and Neurite Density Imaging (SANDI) model, adapted from theSANDI Matlab ToolboxbyMarco Palombointo python usingsnakebids.This toolbox enables model-based estimation of MR signal fraction of brain cell bodies (of all cell types, from neurons to glia, namely soma) and cell projections (of all cell types, from dentrites and myelinated axons to glial processes, namely neurties ) as well as apparent MR cell body radius and intraneurite and extracellular apparent diffusivities from a suitable diffusion-weighted MRI acquisition using Machine Learning (see the original SANDI paper for more details DOI:https://doi.org/10.1016/j.neuroimage.2020.116835).InstallationDependency management and python package handling is done withpoetrypip install poetrythen the toolbox can be installed with:git clone https://github.com/Bradley-Karat/SANDI_python_toolbox.git
cd SANDI_python_toolbox
poetry installUsagepoetry run SANDI_python_toolboxorpoetry shell
SANDI_python_toolboxRun either of these with the -h flag to get a detailed summary of the toolbox and its flags plus required arguments.Example Toolbox CallFor a dry-run:poetry run SANDI_python_toolbox /path/to/bids/inputs /path/for/outputs participant --Delta 23.6 --Small_Delta 7 --cores all -npTo actually run the software:poetry run SANDI_python_toolbox /path/to/bids/inputs /path/for/outputs participant --Delta 23.6 --Small_Delta 7 --cores allExample File Struture└── bids
    ├── sub-01
    │ └── dwi
    │     ├── sub-01_brain_mask.nii.gz
    │     ├── sub-01_dwi.bval
    │     ├── sub-01_dwi.bvec
    │     ├── sub-01_dwi.nii.gz
    │     └── sub-01_noisemap.nii.gz
    ├── sub-02
    │ └── dwi
    │     ├── sub-02_brain_mask.nii.gz
    │     ├── sub-02_dwi.bval
    │     ├── sub-02_dwi.bvec
    │     ├── sub-02_dwi.nii.gz
    │     └── sub-02_noisemap.nii.gzAlternatively, the--path-dwiflag can be used to override BIDS by specifying absolute paths. For example:--path-dwi /path/to/my_data/{subject}/dwi.nii.gz. The other necessary files (.bval, .bvec, noisemap and brainmask) must be labelled in a similar fashion (i.e. all have the same prefix).
Package: sandpaper
Basic UsageLearn more by reading thedocumentation!fromsandpaperimportSandPaperpaper=SandPaper('my-sandpaper')\.strip(# strip whitespace from column commentcolumn_filter=r'comment')\.translate_text({# get group id from column groupr'^group_(\d+)$':'{0}'},column_filter=r'group')\.translate_date({# normalize date from column date'%Y-%m-%d':'%c','%m-%d':'%c'},column_filter=r'date')# apply sandpaper rules to a source file and write results to a target filepaper.apply('/home/you/source.csv','/home/you/target.csv')
Package: sandpilemodel
Sandpile(N, critLevel, iterations, mode=”Random”, initMode=’RandomInt’, animated=False, save = True)ParametersN = Size of Grid
critLevel = Critical Level
iterations = Number of iterations
mode = Random, SpecificCorners, SpecificMiddle
initMode = RandomInt, RandomFloat, Static, NearCrit, OverCrit
animated = Set to true if you want to see animation
save = Set to true to save the file
Package: sandpiper-saas
SandPiper SaaSOverviewSandPiper SaaS Edition runsRedwood EDA'sSandPiper™TL-Verilogcompiler as a microservice in the cloud to support low-overhead and zero-cost open-source development using commercial-grade capabilities. This simple Python script provides a convenient command-line interface to the microservice. It is used by exciting projects such asWARP-Vand1st CLaaS.A TL-Verilog-enhanced open-source Verilog development flow might also make use of the similarly-light-weightmakerchip-appfor TL-Verilog editing.Installpip3 install sandpiper-saasOR, from the git repository itself:git clone git@gitlab.com:rweda/sandpiper-saas.git
cd sandpiper-saas
pip3 install .Basic UsageOn an existing TL-Verilog source file:sandpiper-saas -i design.tlv -o design.svFor complete usage instructions:sandpiper-saas --helpFor SandPiper usage instructions:sandpiper-saas --sphelpHelpFeel free to contactRedwood EDAforassistance.Enjoy!
Package: sand.py
SANDTable of ContentsIntroductionInstallationIntroductionSAND is an application to annotate semantic descriptions of tables and (optionally) linked records in tables to a target knowledge graph, then it can automatically export the table data to RDF, JSON-LD, etc. It also does basic data cleaning automatically based on the annotated semantic descriptions. SAND is designed to be customizable: you can plug in a new semantic modeling algorithm (which generates a semantic description automatically) or different knowledge graphs as long as you have a suitable plugin implemented SAND's plugin interface.Moreover, SAND offers an internal KG browsing and table filtering so you can interactively browsing and modeling your tables.For a demo, please see: ourdemo paper,demo video.InstallationInstall from pip:pip install -U web-sandUsageInitialize database:sand init -d <dbfile>. For example:sand init -d ./data/sand.dbStart the webserver:sand start -d <dbfile> --externaldb <folder_of_ent_and_ont_db>Open the URL:http://localhost:5524For example, checkoutserver.shDevelopmentcd towwwInstallyarnandyalcInstall dependencies:yarn installStart development server:yarn start. Then, access development server at:http://127.0.0.1:3000.Build production files:yarn buildBuild library files and publish to private index (only if you are releasedsandas a library):yarn build:lib && yalc public --private
Package: sandrock-translator
My Time At Sandrock translation toolDescriptionsandrock-translator is a tool for translating localization files of My Time At Sandrock using popular translation API Google Translate. It handles two output formats for intermediate and final usage: JSON and Binary. JSON translation file can be used to manually fix context errors. JSON translation file as well as binary file can be used to replace text in original binary file, this technic is beneficial because some languages has longer words or contains multi-byte characters than original translation resulting in not fitting end results. This tool can't change original size of text string in bytes so those kind of workarounds were implemented.InstallationTool is published to PYPI, use for example PIPpipinstall--usersandrock-translatorExample usageExternalize translation strings from original binary file into editable JSON.sandrock-translator-ojson./english./english.jsonTranslate to Japanese and externalize translation strings into editable JSON.sandrock-translator-ojson-tjp./thailand./japanese.jsonUse "thailand" translation file as origin and replace with our "japanese.json" strings into usable translation file.sandrock-translator-vpr./japanese.json./thailand./japaneseTranslate Thai file into japanese language in one step.sandrock-translator-tjp./thailand./japaneseDevelopmentThis project uses Poetry for Python project management.Poetry Project SiteWhy Thai?In shortYou will fit longer words with non-latin characters.ReasonI recommend "thailand" translation file as translation source for it's longest allowed string sizes in bytes. My Time At Sandrock uses UTF-8 encoded strings in translations and Thai has longest words with biggest width of Unicode encoding in bytes per character across available options.
Package: sandsnake
IntroductionSandsnakeis a sorted index implemented in python and usesredisas a backend.
It was originally implemented to be used as an indexing system forSunspear.RequirementsRequiredRequirementsshouldbe handled by setuptools, but if they are not, you will need the following Python packages:nydusredisdateutilOptionalhiredissandsnake.create_sandsnake_backendCreates an sandsnake object that allows to to store and retrieve indexes:>>> from sandsnake import create_sandsnake_backend
>>>
>>> sandsnake = create_sandsnake_backend({
>>>     'backend': 'sandsnake.backends.redis.Redis',
>>>     'settings': {
>>>         'defaults': {
>>>             'host': 'localhost',
>>>             'port': 6379,
>>>             'db': 0,
>>>         },
>>>         'hosts': [{'db': 0}, {'db': 1}, {'host': 'redis.example.org'}]
>>>     },
>>> })Internally, theRedissandsnake backend usesnydusto distribute your indexes data over your cluster of redis instances.There are two required arguements:backend: full path to the backend class, which should extend sandsnake.backends.base.BaseSandsnakeBackendsettings: settings required to initialize the backend. For theRedisbackend, this is a list of hosts in your redis cluster.Example UsageRedisfrom sandsnake import create_sandsnake_backend
import datetime

sandsnake = create_sandsnake_backend({
    "backend": "sandsnake.backends.redis.Redis",
    "settings": {
        "hosts": [{"db": 5}]
    },
})

#add a value of "abc" to the ``index`` for an ``object``
sandsnake.add("user:1", "homefeed", "abc")
sandsnake.add("user:1", ["homefeed", "recogfeed"], "abc")
Package: sandspythonfunctions
Sands Python FunctionsSome functions I find useful regularly and I put them all into one package for easy accessI created this usingPoetry.InstructionsTo build this you must first install poetry see instructionshereHowever to make it easy to access this is all of the code you'll need on linux to make this run (note that I use zsh not bash for my shell)First you must navigate to the folder containing these filesCHANGELOG.md   LICENSE  'README reference.md'   README.md   dist   poetry.lock   pyproject.toml   srcYou then to make sure that you have the python environment that you want activatedYou can then enter the code below# installation on linuxcurl-sSLhttps://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py|python-# check versionpoetry--version# update poetrypoetryselfupdate# set up virtual environment using pyenvpython-mvenvvenv# activate the virtual environmentsource./venv/bin/activate# upgrade pippython-mpipinstall--upgradepip# Initialising a pre-existing project (not already managed by poetry)cdpre-existing-project
poetryinit# poetry add (or remove) PackageNamepoetryaddPackageName
poetryremovePackageName# update the poetry.lock filepoetryupdate# The build command builds the source and wheels archivespoetrybuild# The install command reads the pyproject.toml file from the current project, resolves the dependencies, and installs them.poetryinstall# this will publish the packagepoetrypublishBasic Usage ExampleTODO:Included PackagesFunctions from EmailFunctionsFunctions from MultiprocessingFunctionsFunctions from ParquetFunctionsFunctions from PrintFunctionsFunctions from TimerFunctionsCI/CDSeethis repofor an example of someone using poetry with they're python project to upload to PyPI on push to master.Other Notes About This CodeI use "TESTCODE:" to designate code used in testing functions and scripts. I try to make sure to comment or delete those lines in the release versions of the package