Saravanan666/pypi-org huggingface dataset:
Package: rstspreadsheet
rstSpreadsheet provides thespreadsheetdirective for
reStructuredText. You can use it from Docutils or Sphinx.
Any python function/module can be used to calculate the cell value.
Please see thedocumentationandexamplesInstallpip install rstspreadsheet  # or
easy_install rstspreadsheetUsageUse as a standalone program:python -m rstspreadsheet sample.rst sample.htmlOr use as a sphinx extension by adding it toextensions:extensions = [
    # other extensions...
    'rstspreadsheet']ExamplesSimple spreadsheetYou can do this simple calculation:pqp and qnot (p and q)0001100101011110with this simple code:.. spreadsheet::
   :eq: {2} = {0} and {1}
        {3} = int(not {2})

   === === ========= ===============
    p   q   p and q   not (p and q)
   === === ========= ===============
    0   0
    1   0
    0   1
    1   1
   === === ========= ===============Spreadsheet with python functionsIf you want to calculate some complicated math functions like this:functionargumentexpressionresultfac5fac(5)120.00sinpisin(pi)0.00cospicos(pi)-1.00exp1exp(1)2.72use python module/function!:.. spreadsheet::
   :eq: {2} = '{0}({1})'
        {3} = {2}
   :setup: from math import sin, cos, exp, pi
           def fac(n):
               return fac(n-1) * n if n > 1 else 1
   :format: 3:'%0.2f'

   ======== ======== ========== ======
   function argument expression result
   ======== ======== ========== ======
   fac      5
   sin      pi
   cos      pi
   exp      1
   ======== ======== ========== ======You can see more examples here.
Package: rst-to-myst
rst-to-mystConvertReStructuredTexttoMyST Markdown,
and also explore available roles/directives.Seetests/fixtures/render.txtfor examples of inputs -> outputs.Installpipinstallrst-to-mystor with sphinx:pipinstallrst-to-myst[sphinx]To then run a basic conversion of a whole project:$rst2mystconvertdocs/**/*.rstFor greater control, you can pass configuration with CLI options, or via a YAML configuration file:$rst2mystconvert--configconfig.yamldocs/**/*.rstconfig.yaml:language:ensphinx:trueextensions:-sphinx_panelsdefault_domain:pyconsecutive_numbering:truecolon_fences:truedollar_math:trueconversions:sphinx_panels.dropdpwn.DropdownDirective:parse_allSee the documentation for more information:https://rst-to-myst.readthedocs.io/DevelopmentThis package utilisesflitas the build engine, andtoxfor test automation.To install these development dependencies:pipinstallflittoxTo run the tests:toxTo run the code formatting and style checks:pipinstallpre-commit
pre-commitrun--allPublish to PyPiEither use flit directly:flitpublishor trigger the GitHub Action job, by creating a release with a tag equal to the version, e.g.v0.0.1.Note, this requires generating an API key on PyPi and adding it to the repositorySettings/Secrets, under the namePYPI_KEY.TODOThe conversion covers almost all syntaxes (seehttps://docutils.sourceforge.io/docs/user/rst/quickref.htm) except:line blocksoption listsAlso custom functions for directive parsing would be desirable.
Package: rst-tools
GuidelinesInstalationTo install this package use pip as followingpip install rst-toolsUsageRough Set (Pawlak's Model)importpandasaspdfromrst_tools.models.roughsetsimportRoughSetsasRSTfromrst_tools.models.roughsetsimportQuickReductasQRdf=pd.read_csv("YOUR/FILE.csv")conditional_attributes=list(df.column.values)decision_attribute=conditional_attributes[-1]delconditional_attributes[-1]roughsets=RST(df)konsistensi_data=roughsets.konsistensi_tabel(conditional_attributes,decision_attribute)print("Konsistensi Data%f"%(konsistensi_data))qr=QR(roughsets)reducts=qr.reduct(decision_attributes,decision_attribute)print("Hasil reduksi atribut%s"%(reducts))'''....'''Maximum Dependency Attribute (MDA) (Herawan's Model)importpandasaspdfromrst_tools.models.maximum_dependency_attributesimportMDAdf=pd.read_csv("YOUR/FILE.csv")conditional_attributes=list(df.column.values)decision_attribute=conditional_attributes[-1]delconditional_attributes[-1]mda=MDA(df,attrs=attributes)attributes,table=mda.run()print(attributes)'''....'''Variable Precision Rough Sets (Ziarko's Model)importpandasaspdfromrst_tools.models.vprsimportVariablePrecisionRoughSetfromrst_tools.models.reductimportreductdf=pd.read_csv("YOUR/FILE.csv")conditional_attributes=list(df.column.values)decision_attribute=conditional_attributes[-1]delconditional_attributes[-1]rs=vprs(df,b)reducts,k,sup_attrs=reduct(rs,attributes,decision)print("Konsistensi Data%f"%(k))print("Atribut reduksi%s"%(reducts))'''....'''Similarity Rough Setsfromrst_tools.models.similarityimportSimilarityRoughSetsasSRSfromrst_tools.models.reductimportreductimportpandasaspddataset=pd.read_csv("YOUR/FILE.csv")attributes=list(dataset.columns.values)cond_attrs=attributesdec_attr=cond_attrs[-1]delcond_attrs[-1]print("alpha ",end="")alpha=float(input())srs=SRS(dataset,alpha)ud,R=srs.ind(cond_attrs)sub=srs.subsetU(dec_attr)k=srs.gamma(cond_attrs,dec_attr)alpha=srs.alph(cond_attrs,dec_attr)print(k)print(alpha)'''....'''
Package: rsttst
rsttst makes your reStructuredText documentation testable.In fact, this README file is testable and is used to test rsttst.If your tests document how your system works, why not formally combine your tests and documentation into one?Below is an example:2 + 2 = 4The title “2 + 2 = 4” becomes the test name after being converted to a
Python friendly identifier (ie. 2_plus_2_equals_4).The bash code in the below code block will be run…echo'2 + 2'|bc…and the resulting stdout will be compared to the following code block:4The test fails if stdout doesn’t match the block above.Dotted notationSometimes you want to be flexible with the output you accept.You can use “.” and the “:class: dotted” rst directive option to support this.echoDate:$(date)echo'\ok'The below code block uses the “:class: dotted” option.Date:............................\okThree dots match in a similiar way to what you’d expect for a regex pattern of “.+” to work:echo'<NZ>'echo$(date"+DATE: %Y-%m-%d%nTIME: %H:%M:%S")The below code block uses the “:class: dotted” option.<...>DATE:...TIME:...Generating testsUnder the hood rsttst generates Python code which is executable with py.test.
Here’s how we generate the Python test code:rsttstREADME.rstcattest_readme.py|head-n28The resulting test code looks like the following:# -*- coding: utf-8 -*-fromrsttst.coreimportrun,Dotteddeftest_2_plus_2_equals_4():output=run(u"""echo '2 + 2' | bc""")assertoutput==u"""4"""deftest_dotted_notation():output=run(u"""echo Date:$(date)echo '\\ok'""")expected=Dotted(u"""Date: ............................
\\ok""")cmp(output,expected)expected=u"{0}".format(expected)assertoutput==expecteddeftest_dotted_notation__2():output=run(u"""echo '<NZ>'
echo$(date"+DATE: %Y-%m-%d%nTIME: %H:%M:%S")""")expected=Dotted(u"""<...>
DATE: ... TIME: ...""")cmp(output,expected)expected=u"{0}".format(expected)assertoutput==expecteddeftest_generating_tests():output=run(u"""rsttst README.rst
cat test_readme.py | head -n 28""")Windows new lines^M characters are automatically removed.printf'supports\012\015windows new lines'supportswindowsnewlinesIgnore code-blocksSometimes you want to use a code-block without it being tested by rsttst.You can use the “:class: ignore” directive to ignore this code-block:..code-block::bash:class:ignoreRunning the testsYou could probably use another test runner, but pytest works quite well:py.test-k'not test_running_the_tests'|grep-vsecondsNote: we had to exclude ‘test_running_the_tests’, otherwise it’s turtles all the way down.=============================testsessionstarts==============================platform...collected6itemstest_readme.py.....=============1testsdeselectedby'-knot test_running_the_tests'=============FunctionalityRight now rsttst only supports bash testing.FAQWhy does pytest throw an “IndexError: list index out of range” exception for my JSON tests?Please upgrade to the latest version of pytest
Package: rstudio-hpc
RStudio HPCRStudio Server on high-performance computing clustersDocumentation:https://altaf-ali.github.io/rstudio-hpcGitHub:https://github.com/altaf-ali/rstudio-hpcPyPI:https://pypi.org/project/rstudio-hpc/Free software: MITFeaturesTODOCreditsThis package was created withCookiecutterand thealtaf-ali/cookiecutter-pypackageproject template.
Package: rstudio-spark-install
# Introduction
This Python script is intended to provide a smooth, cross-platform installation experience
for Spark, including WinUtils on Windows.# Getting Started
Python 2.7 or 3.5 is required to execute this script. If installing on
Python 3.6, ensure you choose Spark version 2.1.1 or higher (see [SPARK-19109](https://issues.apache.org/jira/browse/SPARK-19019)).Running the script with no parameters will grab the latest Spark/Hadoop combination
version available.Command line options -sv and -hv  (or –sparkversion and –hadoopversion) allow the user
to specify exactly which version pairing to use.  Invalid pairings will present the list
of valid options to the user.
Package: rstview
This is a simpleDjangoapplication arounddocutilsto parsereStructuredTextmarkup.FeaturesHtml4andHtml5writers available;Custom reporterto validate source;Dedicated viewto make a page from a rst source;Template tagto directly parsereStructuredTextmarkup;Parser driven by configurationso they can be shared without to define them again and again;Configuration registryto store multiple different parser configurations;Test driven development;LinksRead the documentation onRead the docs;Download itsPyPi package;Clone it on itsGithub repository;DependanciesDjango>= 1.7, <1.10;docutils>= 0.7;Optionnaly (but recommended):Pygments>= 1.2.x to have highlighted syntax in yoursourcecodeblocks;
Package: rstviewer
rstvieweris a simple program for editing a reStructuredText (RST) file.
In fact, it’s being used to edit this file right now!UsageExecuting$rstviewerfile.rstopens a new browser window containing an HTML representation of offile.rst. The browser window refreshes whenfile.rstis changed.OptionsBy default,rstviewerruns in quiet mode – no logging messages are
emitted, so as not to interfere with editing in the console. The option-v, which can be specified multiple times, increases the verbosity
level.SecurityPractically nonexistent. The program creates an HTTP server which serves
all files located in or beneath the directory containingfile.rst.
This is to facilitate the loading of images and other assets linked by
the RST document. Although the server binds only to the local interface,
this is still insecure. In short, do not use this program if you are
concerned about security.RequirementsPython 3.6+ and a browser which supports WebSockets. (The package has
been tested only on Chrome and Safari, thus far.)AuthorJonathan Terhorst <terhorst@gmail.com>InspirationNPM packagerst-live-preview, which I could not get running.
Package: rstwatch
Author:David Handy <cpif@handysoftware.com>This simple static website generator scans directories for .rst files (text
files inreStructuredTextformat) and converts them to HTML documents usingdocutils.  By default it runs continuously.  Whenever an .rst file (or a
file included by an .rst file) is added or changed, the associated .html
file is immediately created or re-generated.ExampleIn your web content directory run:rstwatch .Create an .rst file in that directory, e.g. namedindex.rstImmediately a file namedindex.htmlappears in that same directoryPoint your web browser to theindex.htmlfileIn your editor window, make a change toindex.rstand save itIn your browser window, hit the refresh buttonBoom!You see your changes, converted to HTML, right awayWhen you are done, pressCtrl-Cto stoprstwatchYou can userstwatchto learn and experiment withdocutilsand thereStructuredTextformat. This can be a stepping-stone to using a more
complicated, fully-featured document generation system based on docutils,
such asSphinx.Installation Instructionsrstwatchis anopen sourceprogram written in thePythonprogramming
language. (See thelicense.)First, install Python if you haven’t already. It is freely available forWindows,MacOS, and Linux (it is likely already installed on MacOS or
Linux.)Next, installrstwatchfrom thePython Package Indexusing thepipcommand:pip install rstwatchThe source code is hosted at:https://sourceforge.net/projects/rstwatch/Usagerstwatch [options] <directory>...Options:--exitExit after first pass, instead of repeat scanning--interval=SECONDSSeconds to delay between directory scans [default: 2.0]--log-config=FILENAME(Optional) Custom logging configuration file--refreshRegenerate all html files on first scan--writer=WRITER_NAMEDocutils writer name. [default: html5]For the (optional) log configuration file format, see:https://docs.python.org/3/library/logging.config.html#configuration-file-formatExample log config file:log-config.iniRelated Linksrstwatch on bitbucketreStructuredText quick referenceList of built-in reStructuredText directives
Package: rstyoutube
rstyoutubeis a package for embedding youtube videos in reStructuredText
documents.The code lives athttp://bitbucket.org/cliff/rstyoutube.  Bug reports, feature
requests, and contributions are all welcome.  If you find the code useful,
hop on bitbucket and send me a quick message letting me know.UsageTo use with pelican or another docutils-based system, add the following to
your pelican configuration file:import rstyoutube
rstyoutube.setup_docutils()To use rstyoutube in standalone rst files, you can use the includedrst2html+youtube.pyscript, which should get installed onto your PATH.In your reST document, include a youtube directive with the video’s id as
the sole argument as follows:This is my document

.. youtube:: 5blbv4WFriM

Hope you enjoyed the video.That’s all it takes.OptionsIf you want more fine-grained control, you can add various options:.. youtube:: 5blbv4WFriM
    :start: 67
    :width: 640
    :height: 480
    :ssl:
    :hd:startThe number of seconds into the video where you want to start playback.widthheightThe size of the embedded viewer.  Defaults to 640x480, or if thehdoption is set, defaults to 1080x720.sslThis option takes no arguments.  If it is present, the player is embedded
over https, rather than http.hdThis option takes no arguments.  If it is present, the embedded video is
shown in HD.  The player’s default size becomes 1080x720, but can still
be overridden using thewidthandheightoptions.Changelog0.1.1 – 2011/12/15Added options0.1.0 – 2011/12/15Initial releaseTo DoAdd options to allow people to customize their videos.
Package: rsudp
rsudpContinuous sudden motion and visual monitoring of Raspberry Shake dataWritten by Ian Nesbitt (@iannesbitt) and Richard Boaz (@ivor)rsudpis a tool for receiving and interacting with data casts fromRaspberry Shakepersonal seismographs and Raspberry Boom pressure transducer instruments.rsudphasfull documentation here. We also havetutorial instructionsto install, set up, and run rsudp there. Additionally, our documentation featuresYouTube walkthroughs,notes for contributors, a briefDeveloper's guide, andmodule documentation.rsudpcontains ten main features:Alert- an earthquake/sudden motion alert trigger, complete with a bandpass filter and stream deconvolution capabilitiesAlertSound- a thread that plays a MP3 audio file in the event of the alert module signalling an alarm statePlot- a live-plotting routine to display data as it arrives on the port, with an option to save plots some time after an alarmTweeter- a thread that broadcasts a Twitter message when the alert module is triggered, and optionally can tweet saved plots from the plot moduleTelegrammer- a thread similar to the Tweeter module that sends aTelegrammessage when an alarm is triggered, which can also broadcast saved imagesWriter- a simple miniSEED writerForward- forward a data cast to one or several IP/port destinationsRSAM- computes RSAM (Real-time Seismic AMplitude) and either prints or forwards it to an IP/port destinationCustom- run custom code when anALARMmessage is receivedPrint- a debugging tool to output raw data to the command linersudpis written in Python but requires no coding knowledge to run. Simply follow theinstructions to install the software, go to your Shake's web front end,configure a UDP datacastto your computer's local IP address,start the softwarefrom the command line, and watch the data roll in.(Above) a plot of an earthquake on the four channels of a Raspberry Shake 4D (EHZ---the geophone channel, and EHE, EHN, and ENZ---the accelerometer east, north, and vertical channels).
Package: rsuv3
Python Library for controlling RS-UV3 Radio Shield.',*************************Includes methods for controlling and configuring most aspects of the RS-UV3Radio Shield via a Serial Interface.Most commands operate-on and return Python dictionaries.Source======Github: https://github.com/ampledata/rsuv3Author======Greg Albrecht W2GMD <gba@orionlabs.io>Copyright=========Copyright 2016 Orion Labs, Inc.License=======Apache License, Version 2.0
Package: rs-vector-db
Vector_DB Python IntegrationOverviewrs_vector_db is a Rust-based project designed for efficient vector storage and
similarity search. This README provides guidance on integrating Vector_DB with
Python. The integration allows you to run the Vector_DB server and perform
vector addition and similarity searches using Python scripts.THIS REQUIRES AN OPENAPI KEYexport OPENAI_API_KEY="your-key-here";Installationpipinstallrs_vector_dbExample Usagefromrs_vector_dbimportrun_server,vector_search,add_vectorimporttimeURL="http://127.0.0.1:3000"# Start Vector_DB server on its own threadrun_server("127.0.0.1:3000","./metal_gear_db.json")# Wait for the server to initialize - this might not be necessarytime.sleep(1)# Add a vector to the DBresults=add_vector(URL,"Why are we still here to suffer","https://www.youtube.com/watch?v=N_vJMHMBzLM")print(results)results=vector_search(URL,"I can still feel the pain in my leg and in my arm",0.2,9000)print(results)ContributingIf you encounter any issues or have suggestions for improvements, feel free to
open an issue or submit a pull request.Notes for myselfmaturin publish
__token__
keyLicenseThis project is licensed under theMIT License.
Package: rs-versions
rs_versionsPython (PyO3) wrapper of Rust'sversionscrate.APIrs_versions.parse_version(str) -> RsVersionParses a given version string if possible, throwsValueErrorif it could not be parsed.RsVersionAll comparison and equality operations are implemented.Buildpython3-mvenv.venv
..venv/bin/activate
pipinstallmaturin
maturinbuild--release# ormaturindevelop
Package: rsvidx
RSvIDXVector indexing systemVector indexingRSvIDX can be used for general purpose vector indexing and similarity search. Applications include:Semantic searchDocument deduplicationRecommendationClassificationImage searchReverse image searchAudio similarity (like Shazam)Q&AFeaturesfast and efficient math libraryoptimised persistant operations (you now no longer need to explicitly save the index as this is scheduled automatically)better in-memory performance compaired to RSvIDX_v3no dependencies (new build size is 98% smaller)Usable in C with bindings in Python3No intermideate C bindingsExample:Try outhttps://apps.apple.com/gb/app/headlines-today/id1363257410on the App Store for a semantic search example.Installation(For Python3)pip3 install rsvidxUsage(For Python3)Create an indexYou can finetune number of buckets to your use case. Less buckets results in higher accuracy but more items to brute force search. Less buckets results in lower accuracy but fewer items to brute force search.importrsvidxfile_name="test.index"number_of_buckets=8dimensions=4index=rsvidx.Similarity(file_name,number_of_buckets,dimensions)Add item to indexadd_vector=[1,2,3,4]add_uid="1234"index.add(add_vector,add_uid)Get items from indexThis will get items that are similar to the get vectorget_vector=[1,2,3,4]results=index.get(get_vector)Remove items from indexremove_uid="1234"index.remove(remove_uid)
Package: rsvpmeetup
Meetup-RSVPA Python client for AutoRSVPing into Meetup Events.
Supports Python 3GuideInstallationAssuming you have python already, install the package usingpip:$pipinstallrsvpmeetupRequiredRequires a working username password of meetup to be configured
Requires user to be member of the group to be rsvpd intoConfigurationCreate a secret.json file of the format{"email":"sample@sample.com","password":"passwordhere","mail_id":"sample2@sample2.com","mail_password":"password2"}Here :
“email”,”password” –> your login credentials to meetup“mail_id”,”mail_password” –> login to email to use for emailing on Succesful RSVPLess Secure Access Needs to be activated for mail_id to be used to send emails fromhttps://myaccount.google.com/lesssecureappsand a groups.json file of the format{"groups":[{"urlname":"group url name here,sample below","endDate":"Date in YYY-MM-DD , till when to Search for events","allow_waitlist":"whether to allow for waitlist or not","event_limit":"how many events to rsvp/waitlist for","guest":"How many guests to allow for"},{"urlname":"slow-spokes","allow_waitlist":true,"event_limit":4,"endDate":"2020-12-30","guest":1}]}Note : both the above files must be in the same directory
Then load the configuration withrsvpcron--config$(pwd)orrsvpcron--configpathRunningSimply run the following command from bashrsvpcron--runFor a dry run (Lists all RSVPs/Waitlists that would happen in actual run)rsvpcron--dry-runAdditional options--mailMailsfromconfiguredidagainst'mail_id'keyinsecret.jsontouseremailaddress(configuredagainst'email'key)WillcontainallactionstakenbyscriptShout-out to@cfsmp3, for the ideas for mailing , dry-runnning ,and adding additional configurations!Note : You may need to manually login a few times on error BotError being raised , It implies that the login was not successful
And most probably captcha detection has been enabled