Saravanan666/pypi-org huggingface dataset:
Package: sarar
SARAR - Spaced And Repeated Active RecallerSARAR is a command-line-interface tool for GNU/Linux, its goal is to optimize the process of
remembering things. It is somewhat similar toAnkiandSuperMemo, i.e. it is aflashcard
programthat is based on two key concepts:Active recall: a learning technique, usually
based on answering questions/flashcards ("active" memory stimulation). In contrast to passive
techniques, in which the learning material is processed e.g. by reading, watching, etc.Spaced repetition: another learning
technique, in which newly introduced and more difficult learning material is shown more
frequently, while older and less difficult is shown less frequently. In contrast to massed
practice, in which learning material is learned "at once".The main difference between this project andalternative flashcard
programsis that SARAR focuses on keeping things dead simple, minimal and usable, with more advanced and
experienced GNU/Linux users in mind: see thesuckless
philosphy.Note that SARAR is unfortunatelynotsuckless, because - among other things - of its
dependencies, its total number of lines of code and also probably itsnon-trivial development
process, but
still: thesuckless philosphyis a reference that guides the
project.Table of contentsCore scientific guidelinesDisclamerChange logStatusUser guideDeveloper guideLicenseCore scientific guidelinesSeethe key scientific assumptions that are guiding the development of
SARAR.DisclamerSARAR is not pretending to be a "superior" alternative toAnkiorany other flashcard
program!SARAR is just intended for users who prefer command line interfaces, primarily seeking minimalism
and simplicity.Change logSeethe change log.StatusSARAR is in its early stages of development, it is not yet functional, please give it some time to
grow and come back to see how it evolves in a little while.User guideInstall - Uninstall -
UpdateBasic usageSARARA - SARAR
ArchitectureConfigurationCommandsDeveloper guideProject layoutGet started and
contributeLicenseThelicense used for this projectis theGNU
GPLv3 license.
Package: sara-sdk
Sara SDK PythonGetting StartedAssuming that you have a supported version of Python installed, you can first
set up your environment with:$ python -m venv .venv
$ . .venv/bin/activateThen, you can install sara SDK from PyPI with:$ python -m pip install sara-sdkor install from source with:$ git clone https://github.com/Synkar/Sara-SDK-Python.git
$ cd sara_sdk
$ python -m pip install -r requirements.txt
$ python -m pip install .Using Sara SDKAfter installing sara-sdkFirst thing to do after importing to project is use the credentials to authenticatesara_sdk.auth("access_key", "secret_key")After this you can call the function would like to run.Example:sara_sdk.iam.apps.list()See:https://github.com/Synkar/Sara-SDK-Python/blob/main/examplesRunning TestsYou can run test to all functions by runningpytestin the project by using:$ pytestOr run on a specific file (module)$ pytest -v tests/test_apps.pyGetting HelpWe use GitHub issues for tracking bugs and feature requestsContributingWe value feedback and contributions from our community. Whether it's a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests.
Package: sarc
Nintendo SARC archive reader and writerSetupInstall Python 3.6+ (64 bit version) then runpip install sarc.List files in an archivesarc list ARCHIVEExtract an archivesarc extract ARCHIVECreate an archivesarc create [--be] FILES_TO_ADD  DEST_SARCYou can give it directories too, in which case the entire directory will be added to the archive
recursively.Pass--be(shorthand:-b) if you wantsarcto use big endian mode (for the Wii U).An important option is--base-path. This option lets you remove parts of the path.
For example, if you pass a path likeMods/BotW/System/Version.txt, you will likely want to pass--base-path Mods/BotWto get rid of the leading components.If only a single directory is passed, the base path is set for you automatically.So typical usage example:sarc create  ~/botw/Bootup/  ~/botw/ModifiedBootup.packUpdate an archivesarc update  FILES_TO_ADD  SARC_TO_MODIFYThis is almost identical tocreate.By default,sarcwill keep the endianness of the original archive. You can override this
with--endian {le,be}(le for little and be for big endian).Delete files from an archivesarc delete  FILES_TO_DELETE  SARC_TO_MODIFYNothing much to say here. Just keep in mind FILES_TO_DELETE takes archive paths
(those that are printed bylist).Library usageimportsarcarchive=sarc.read_file_and_make_sarc(file)# or if you already have a bufferarchive=sarc.SARC(archive_bytes)ifarchive:forfile_nameinarchive.list_files():size=archive.get_file_size(file_name)data=archive.get_file_data(file_name)To modify an archive:importsarcwriter=sarc.make_writer_from_sarc(archive)# or if you're reading from a filewriter=sarc.read_sarc_and_make_writer(file)# or for a blank archivewriter=sarc.SARCWriter(be=big_endian)writer.add_file('test.bfevfl',b'file contents')writer.add_file('another_file.txt',b'file contents')writer.add_file('test.bfevfl',b'replacing a file')writer.delete_file('another_file.txt')writer.write(output_stream)For more information, please look atsarc.py.LicenseThis software is licensed under the terms of the GNU General Public License, version 2 or later.
Package: sarcastic
sArCaStIcmAkEs YoUr tExT SaRcAsTiC.Dependenciespython3;pip3;InstalationThis package is not available onPyPIyet.
So the only way to installsarcasticis by using our latestsdistribution packagesor building your own using the steps shown bellow:Building distribution packagesCreate a virtual environment with:$virtualenvvenv
$sourcevenv/bin/activateInstall pythonbuild:$python3-mpipinstall--upgradebuildNow run this command insarcasticroot folder:$python3-mbuildThis command should output a lot of text and once completed should generate two files in thedistdirectory:$lsdist/
sarcastic_*-py3-none-any.whl
sarcastic_*.tar.gzNow to installsarcasticuse the following command:$pipinstalldist/sarcastic_*.tar.gzUsageYou can convert your text to sarcastic mode by passing the string as an argument such as bellow:$sarcastic"This is a test"tHiSIsatEsTOr you can pass the text by piping it:$echo"All you need is love. But a little chocolate now and then doesn't hurt."|sarcastic
aLlyOunEeDIslOvE.bUtalItTlEChOcOlAtENoWAnDThEndOeSn'thUrT.This phrase is fromCharles M. Schulzby the way.TeamEdimar Calebe Castanho (Calebe94)LicenseAll software is covered underGNU General Public License v3.0.
Package: sarcasticase
sarcasticaseUsageinstallpip install sarcasticasecommand line$sarcasticaseiknowyouarebutwhatami
>iKnOwYoUaReBuTwHaTaMiimport functionfromsarcasticaseimportsarcasticasesarcastic_text=sarcasticase("i know you are but what am i")Change Log[0.1.0] - 2022-01-27initial release
Package: sarcastic-color-scheme
Sarcastic Color SchemeColor scheme for when you want to present some data visualization, but sarcastically.This is useful forpresenting bad data where you aren't confident in the results,turning in assignments you'd rather not doannoying people who care about good datavizFeaturesThe code for all the demos can be foundhere.Afwul backgroundYes, you saw that correctly, there are two different awful background colors for the plot background and the legend background.Terrible plot colorsYes, the colors on display here are cyan, grey, light blue, purple and orange. Yes, that looks terrible.Bad spacingYou may have noticed the abysmal spacing of the title. Yes, that is deliberate.Weird inexplicable borders / gridYes, you are right that the borders aren't all correctly there.Colored axesYep, the axes are colored, different colors.Inconsistent StyleThis wouldn't be maximally awful if it was consistent, which is why running exactly the same code two more times yields these:This way, not only is every graph terrible looking, but you can't get used to the style!How to install and useYou can install this package using the following commandpipinstallsarcastic-color-schemeTo use it you can runfromsarcastic_color_schemeimportsarcasticand then either runsarcastic.sarcastic()to make all subsequent graphs sarcastic (sarcastic.normal()undoes the change), or to make a single graph sarcastic runwithsarcastic:# your graph code hereConfigurableIf you look atthe codeyou'll notice that you use a context manager to make sure that the sarcasm mode is enabled:withsarcastic:test_graph()You can also runsarcastic.sarcastic()test_graph()sarcastic.normal()to get the same effect, without the context manager. After the context manager is complete, the styles are reset to where they were before it ran as can be seen in the plot
Package: sardana-streams
Sardana StreamsSardana data streaming infrastucture. Comprises:redisbased sardana scan recorderClient recorders:generic scan stream client (library)SPEC recorder daemonHDF5 recorder daemonScan GUIInstallationFrom within your favorite python environment:$pipinstallsardana-streamsUsageThe nameacmeused in the
following examples represents a fictional corporation that features prominently
in the Road Runner cartoons.ConfigurationActivate sardana redis recorder:Put the installation directory where thesardana_streams/recorderresides inRecorderPathtango property of the MacroServer.
(ex:/usr/local/lib/python3.5/dist-packages/sardana_streams/recorder)From spock:activate the recorder with:senv DataRecorder "['RedisRecorder']"configure the recorder withsenv RedisRecorder "{'host': 'acme.org', 'port': 7379, 'db': 1}"(replacehost,portanddbwith your own)TheRedisRecorderenv can be a string or a dictionary identifying the Redis
database.In case a string is given, it recognizes the same formaturlargument fromredis.from_url().In case a dict is given it recognizes the same keyword arguments asredis.from_url()plus:TTL: scan time to live in seconds (defaults toone week)key_prefix: scan key prefix (defaults to<macro server name>:sardana:scan)ExampleHere is a simple example of a client which simply listens to scan events and
prints them on screen:importcontextlibimportredisfromsardana_streams.clientimportScanStreamdb=redis.from_url('redis://acme.org:7379/1')prefix="acme:sardana:scan"stream=ScanStream(db,prefix)withcontextlib.closing(stream):foreventinstream:print(event)
Package: sardine-rec
🐟 SARDINE: a Simulator for Automated Recommendation in Dynamic and INteractive EnvironmentsInstallation and usageInstall requirements withpoetry:poetry installTry the example script to get accustomed with the simulator:poetry run python example.pyEnvironnements can be created using Gymansium and one of the following ids:sardine/SingleItem-Static-v0sardine/SingleItem-BoredInf-v0sardine/SingleItem-Uncertain-v0sardine/SlateTopK-Bored-v0sardine/SlateTopK-BoredInf-v0sardine/SlateTopK-Uncertain-v0sardine/SlateRerank-Static-v0sardine/SlateRerank-Bored-v0Citing this project@article{sardine-simulator,author={Romain Deffayet and Thibaut Thonet and Dongyoon Hwang and Vassilissa Lehoux and Jean-Michel Renders and Maarten de Rijke},title={SARDINE: A Simulator for Automated Recommendation in Dynamic and Interactive Environments},year={2024},}LicenseThis project is licensed under the MIT license
Package: sardine-system
Sardine: ✨ Live Coding Library for Python ✨Python's missing algorave module. Hackable live coding tool for modern Python (3.10+)Discord|Website|Examples|Installation|Author|About Live CodingSardineis a versatile and hacker-friendly Python library designed for musical improvisation, algorithmic composition, and beyond.
It transforms your standardPythoninterpreter into a powerful music instrument, enabling you to create and map melodic and rhythmic
patterns to any electronic instrument (MIDI,OSC, andSuperCollider).
WithSardine, you can:Unleash your musical creativity on stage, in the studio, or for personal enjoymentSeamlessly communicate with any MIDI/OSC device and theSuperCollideraudio engine usingSardine.Utilize bindings forSuperDirt, a widely recognized synthesis engine embraced by live coders globally.Empower your Python code with time-aware capabilitiesEmploy temporal recursion to make any Python code time and tempo aware.Accurately launch synchronous or asynchronous functions with time-specific results.Customize your ownSendersorReceiversto pattern any desired elements!Develop intricate audio/visual installations with MIDI and OSCI/OAssigncallbacksto any OSC event, transformingSardineinto a sophisticated reactive toolbox.Monitor changing values and incorporate them into your musical patterns or code.Synchronize with other computers and musical instrumentsSynchronise your hardware withMIDI Clocks.Synchronize effortlessly with other tools or players using theLink Protocol.InstallationRefer to theinstallation section.ContributionsSardine is in its early stages of development, and we're actively seeking contributors to help enhance the project. If you're passionate
about music and technology, we welcome your expertise, whether it's code, documentation, or ideas. We are looking for contributors!To collaborate with the Sardine community, connect with us onDiscord,Githubor send a private message if you have specific inquiries.
Together, we can create an even more powerful tool for musical expression and creativity!
Package: sardine-web
sardine-webThe official web editor plugin for thesardine-systemlibrary!InstallationIf you already have sardine-system v0.4.0+ installed or you are fine with
the stable version of Sardine, you can go straight to installing
this package fromPyPI:pipinstallsardine-webIf you do want the Sardine development version, install the repository before
this package following theirinstallation guide:pipinstallgit+https://github.com/Bubobubobubobubo/sardine
pipinstallsardine-webIf you want to install the development version ofthisrepository,
make sure you haveNode.jsandYarninstalled:pipinstallgit+https://github.com/sardine-system/sardine-webUsageDocumentation:https://sardine.raphaelforment.fr/editors/fishery.htmlThis adds asardine webcommand to Sardine to start the web editor.
Package: sa-repository
SQLAlchemy Repository for modelsThis project contains simple Repository pattern for SQLAlchemy models.All you need to do is:Install this packagepython -m pip install sa-repositoryUse it in your projectfromsa_repositoryimportBaseRepositoryfrommodelsimportYourSAModelclassSomeModelRepository(BaseRepository[YourSAModel]):passBase class contains some general methods to simplify your work with sqlalchemy models e.xvar=SomeModelRepository(session).get(YourSAModel.attr=='some_value')If you don't want to create new repository classes, you can useget_repository_from_modelmethodrepository=BaseRepository.get_repository_from_model(db_session,SomeModel)
Package: sarf
SARF CLIAdd the output of a tool to SARFThe output of any console tool can be redirected to sarf. It doesn't matter if
these are in plain text or binary.
In order for sarf to prepare to receive the output of a tool, the--ingestflag must be added to it.nmap 192.168.1.0/24 | sarf --ingest --tags nmap,network:192.168.1.0 --report lbk--tagsflag is optional. It adds tags to the received data that can be
very useful to interconnect with other tools.The received data must be associated with a report.
The chosen report will be obtained from the environment variable SARF_REPORT.
The chosen report can also be provided explicitly with the--reportflag.This is all for now. SARF is at a very early stage of its development.
Give it a star ongithubto find out all its progress.
Package: sarfile
sarfileLike tarfile, but streamable.What is this?This repository implements a "streaming archive" file format for collecting multiple files into one. This is similar to the TAR format, but it puts the information about all the files in the archive into a contiguous block at the beginning of the file. This solves a couple problems:Much faster startup times for large archives (we read the entire header into memory in one go)Much friendlier to remote file systems (only one network request rather than a bunch), in combination withsmart_openFast random accessThe file size is the same as an uncompressed TAR file.The downside is that once we've written a SAR file, we can't change it. Maybe future formats will support this, but for now, the recommended flow is to first generate a TAR file, then convert it using the builtinsarpackcommand line tool or thesarfile.pack_tarPython API.Also, the file format only exists in this repository, although it's very simple to implement (see the_header.pydocumentation and thesarfileobject for how to load items).Getting StartedInstall the package using Pip:pipinstallsarfileNext, simply import the module:importsarfileYou can convert a tarfile to a sarfile using the Python API:sarfile.pack_tar(out="myfile.sar",tar="myfile.tar")Alternatively, you can use the built-in command line tool:sarpackmyfile.sarmyfile.tarFinally, the file can be used in your Python script:f=sarfile.open("myfile.sar"):print(f.names)withf["myfile.txt"]asmyfile:print(myfile.read())If you have installedsmart_open, then you can also read from S3 as follows:f=sarfile.open("myfile.sar")print(f.names)withf["myfile.txt"]asmyfile:print(myfile.read())The above code is much faster than reading a TAR file from S3, because we read the entire header into memory in one network request, rather than having to make a network request for each file in the archive. On subsequent accesses we also only download the part of the file we want to read.RequirementsThis package is tested against Python 3.10. Although not required, it is a good idea to installsmart_opento support reading from S3 or other remote file systems, andtqdmto show a progress bar when packing large files.
Package: sarf-simple-crud
SimpleCRUDAn extremely simple and basic interface for creating CRUD apps
with an example of implementation using a JSON database.This project comes from splitting SARF into multiple modules.Support my workIf this module has been useful to you, it would mean a lot to me if you could support my work.
This way you help to keep this and other projects alive.https://ko-fi.com/elchicodepythonContributorsSamuel López Saura -Linkedin Contact
Package: sargilo
Sargilo💾 Data loader for HumansSargilo lets you declare your data in a visually pleasing and non-frustrating way and loads it into your environment of choice. YAML usage, validation and auto-completion help you get boring jobs done.💡 MotivationThe idea for this project came from the testing I had to do at work. Surely, you will need sample data to test the project you currently work on. After some time, two ways how to approach this have been emerged:Create a minimal and abstract data sample for each test or group of tests and test against thoseFind a more comphrehensive data set that satisfies most of edge cases and only add to it in rare casesThere are of course advantages and disadvantages to both approaches. However, I prefer the second approach and think of it as telling a little story. I prefer this way since the dataset can be used as a fixture when running your application and after working on it for quite some time, you will get a feeling for the result a function should produce, making it easier to spot errors.📦 InstallpipinstallsargiloOr if you prefer an alternative installation methodpoetryaddsargilo
pipenvinstallsargilo🔗 IntegrationsTo know how to load your data,sargilohas to know how to deal with your framework or ORM of choice. Whilesargiloprovides the interface and basic functionaly, the specifics on how to load the data are up to the integration. Currently, the following integrations are supported:Django (ORM)📒 Examples# models.pyfromdjangoimportmodelsfromdjango.contrib.auth.modelsimportUserclassTag(models.Model):name=models.CharField(max_length=255,blank=False,null=False)classPost(models.Model):title=models.CharField(max_length=255)content=models.TextField()tag=models.ForeignKey(Tag,verbose_name='Tag',related_name='posts',on_delete=models.PROTECT)author=models.ForeignKey(User,verbose_name='Author',related_name='posts',on_delete=models.PROTECT)# dataset.yamlauth:users:-&Adminusername:"Admin"first_name:"Christoph"last_name:"Smaul"email:"christoph@mail.de"password:"very_secret"is_staff:Trueis_superuser:True-&Editorusername:"Editor"first_name:"Wendy"last_name:"Lator"email:"wendy@mail.de"password:"very_secret"is_staff:Trueis_superuser:Falseblog:tags:-&TestTagname:"Test"-&BlueTagname:"Blue"posts:-title:"Helloworld"text:"Loremipsumdolorametsunt"tag:*TestTagauthor:*Admin-title:"Justatest"text:"Thisisjustatest.Thisisjustatest.Thisisjustatest."tag:*TestTagauthor:*Editor
Package: sargon
Sargon: Random Code Generatorsargonis a simple Python package (no external dependencies) to generate random (mnemonic) codes simulating Youtube or Heroku style. It's extensible to define your own rules too.Basic usageHerokuheroku(code_length=4)Heroku codes have the formADJECTIVE-NOUN-CODE:Example:>>>fromsargonimportheroku>>>heroku()"valuable-period-6016">>>heroku(6)"sweet-hat-673004"YouTubeyoutube(length=11, avoid_confusing_chars=False, blacklist_symbols=None)Example:>>>fromsargonimportyoutube>>>youtube()"dQw4w9WgXcQ">>>youtube(6)"LNb-P0">>>youtube(6,blacklist_symbols='-')"LNbP0X"6 Digit Generatorsix_digit()>>>fromsargonimportsix_digit>>>six_digit()"770584"Defining your own generatorsCheckoutengines.pyfor the list of available engines and the parameters they receive. Here's an example:>>>fromsargonimportengines,build_generator>>>generator=build_generator(engines.CityWordEngine(country='United States'),engines.NumberEngine(4))>>>generator.generate()"bellview-5269"Whysargon?I wanted to call the packageHammurabi, as the babylonian king that issued theCode of Hammurabi, but there's another package namedhammurabi, so I went with another great ruler that I like to read about:Sargon the greatthe emperor of the Akkadian empire, what is thought today to be the first empire in history.
Package: sari-field-definitions-generator
SARI Field Definitions GeneratorA generator for Metaphacts/ResearchSpace field definitionsInstallationsinstall using pippipinstallsari-field-definitions-generatorUsageDefine field definitions as a Python dict or in an external yaml file:prefix:http://rs.swissartresearch.net/instances/fields/fields:-id:{unique identifier}label:{label}description:{description}dataType:{datatype}domain:{domain}range:{range}minOccurs:#maxOccurs:#queries:-ask:'{askquery}'-delete:'{deletequery}'-insert:'{insertquery}'-select:'{selectquery}'-valueSet:'{valuesetquery}'-...Then, load and compile it using the generatorfromsariFieldDefinitionsGeneratorimportgeneratorinputFile='./fieldDefinitions.yml'outputFile='../ldp/assets/fieldDefinitions.trig'model=generator.loadSourceFromFile(inputFile)output=generator.generate(model,generator.METAPHACTS)withopen(outputFile,'w')asf:f.write(output)Available templates are:generator.METAPHACTSfor Metaphacts Open Source Platformgenerator.RESEARCHSPACEfor ResearchSpacegenerator.UNIVERSALfor both platformsgenerator.JSONfor a JSON representationgenerator.INLINEfor a Backend Template version