Saravanan666/pypi-org huggingface dataset:
Package: scrfit
scresonatorsWelcome to the scresonators repository of the Boulder Cryogenic Quantum Testbed! This is a library for measuring the loss in superconducting resonators.Installationclone the repository into a folder of your choice withgit clone https://github.com/Boulder-Cryogenic-Quantum-Testbed/scresonators.gitInstall the dependencies, westronglyrecommend usingvirtual environmentsfor managing your dependences. To install dependencies run:pip install -r requirements.txtIf you are running on Windows, install Microsoft Visual Studio before using the libraryUsing the libraryHere's an example using some of the data hosted on this repository. Hosted
datasets from groups around the world can be foundhere.This particular example code is meant to be run in the root directory.importnumpyasnpimportfit_resonator.functionsasffimportfit_resonator.Sdataasfsdimportfit_resonator.resonatorasresurl='https://raw.githubusercontent.com/Boulder-Cryogenic-Quantum-Testbed/scresonators/master/cryores/test_data/AWR/AWR_Data.csv'# Load the raw data:raw=np.loadtxt(url,delimiter=',')# Choose a fitting method:fit_type='DCM'MC_iteration=10MC_rounds=1e3MC_fix=['w1']manual_init=Nonemethod=res.FitMethod(fit_type,MC_iteration,MC_rounds=MC_rounds,MC_fix=MC_fix,manual_init=manual_init,MC_step_const=0.3)# Fit the data:fsd.fit("output test",method,normalize=10,data_array=raw)Ane in depth description is given in the fit_resonators folder.Code OrganizationUntil the module is officially distributed, all code should live in thefit_resonatornamespace. This ensures easy integration
with other Python packages, and avoids name collisions; everything is referred
to as e.g.fit_resonator.experimentsrather than justexperiments.
Package: scribber
ScribberA simple document generator with not very rich functionality that can export a document to some formats such
as text, docx, xlsx and markdown.InstallationpipinstallscribberUsagefromscribberimport(SimpleDocument,Title,EmptyLine,Paragraph,Table,Director,CodeBlock,DocumentBuilder,ExcelDocument,MarkdownDocument,TextDocument,WordDocument,)CODE_EXAMPLE="""import platformdef main():print("Hello World!")print(f"OS: {platform.system()}")if __name__ == "__main__":main()"""CODE_RESULT="""Hello World!OS: Linux"""if__name__=="__main__":# Create abstract documentdoc=SimpleDocument()doc.add(Title(title="Funny report"))doc.add(EmptyLine())doc.add(Paragraph(text="Let me show you report"))doc.add(Table(headers=["one","two","three","four"],content=[(1,2,3,4),("234",345,986,""),(89,35,587643,8675),],))doc.extend((EmptyLine(),Title(title="Code block",level=2),CodeBlock(style="python",code=CODE_EXAMPLE),CodeBlock(style="console",code=CODE_RESULT),Paragraph(text="It's Ok!"),))director=Director()text_report_builder=DocumentBuilder(doc=TextDocument())word_report_builder=DocumentBuilder(doc=WordDocument())excel_report_builder=DocumentBuilder(doc=ExcelDocument())markdown_report_builder=DocumentBuilder(doc=MarkdownDocument())print("Make a Text Document")director.builder=text_report_builderdirector.build_report_from_doc(doc)text_report_builder.parts.save("test.txt")print("Make a Word Document")director.builder=word_report_builderdirector.build_report_from_doc(doc)word_report_builder.parts.save("test.docx")print("Make a Excel Document")director.builder=excel_report_builderdirector.build_report_from_doc(doc)excel_report_builder.parts.save("test.xlsx")print("Make a Markdown Document")director.builder=markdown_report_builderdirector.build_report_from_doc(doc)markdown_report_builder.parts.save("test.md")print()print("Build without Director")text_report_builder.add_title(Title(title="Next report"))text_report_builder.add_paragraph(Paragraph(text="That is all!"))print(text_report_builder.parts.get_result())The text file exampleFunny report
============

Let me show you report
---------------------------
 one | two | three  | four 
---------------------------
  1  |  2  |   3    |  4   
 234 | 345 |  986   |      
 89  | 35  | 587643 | 8675 
---------------------------
Total
=====
It's Ok!requirementslxml>=4.9.1<5.0.0pydantic>=1.10.2<2.0.0python-docx>=0.8.11<1.0.0typing_extensions>=4.4.0<5.0.0XlsxWriter>=3.0.3<4.0.0
Package: scribble
OverviewScibble is a mechanism to store dictionary information to a persistent
state. This allows the data to be easily retrieved and edited, making it
a good option when trying to store settings data.Note: Data saved within the ScribbleDictionary must be json serialisable.An example of creating a persisten data block would be:importosimportscribble# -- Instance a scribble dictionary. We can treat this exactly# -- as we treat a dictionarydata=scribble.get('foobar')# -- Set some key/value pairs in the ScribbleDictionarydata['option_a']=Truedata['option_b']=123# -- Calling .save() will trigger the dictionary# -- to store its current state to a persistent statedata.save()# -- We can see the location the data is saved to, and we can# -- see that it does indeed existprint(data.location())print(os.path.exists(data.location()))Equally, we can re-retrieve that data in a completely new instance of python
using the following code:# -- Instance a scribble dictionary with the same identifierdata=scribble.get('foobar')# -- Print the fact that we have retrieved the same# -- infromationprint(data)# {'option_a': True, 'option_b': 123}# -- We can then further edit the datadata['option_a']=False# -- Calling .save() will trigger the dictionary# -- to store its current state to a persistent statedata.save()By default scribble will store its data in the follow platform specific
locations:Windows: %APPDATA%/pyscribbleLinux: %XDG_CONFIG_HOME%/pyscribble if the environment variable exists, otherwise %HOME%/.config/pyscribbleOSX: ËœHOME/Documents/pyscribbleHowever, you can override these paths by setting an environment variable
PYSCRIBBLE_STORAGE_DIR, if this is set then the path defined by that variable
will always be used over the default behaviour.CompatabilityThis has been tested under Python 2.7.13 and Python 3.6.6 on both Ubuntu and Windows.ContributeIf you would like to contribute thoughts, ideas, fixes or features please get in touch!mike@twisted.space
Package: scribd-dl
Download documents from Scribd in pdf formatScribd-dl uses selenium and headless Chrome to take high resolutions screenshots of the document pages, and eventually merges them into a pdf file.Usage$scribd-dl(https://www.)scribd.com/(doc|document|presentation)/(document_id)/*[-pPAGES][-v]Examples$ scribd-dl https://www.scribd.com/document/90403141/Social-Media-Strategy
$ scribd-dl scribd.com/document/351688288 scribd.com/document/90403141 -p 1-3
$ scribd-dl https://www.scribd.com/document/352366744 --pages 10-16
$ scribd-dl scribd.com/document/351688288 -p 20 --verboseyou can embed scribd-dl, using a context manager like this:importscribd_dloptions={'pages':'1-3,'log-level':'2'# info}withscribd_dl.ScribdDL(options)assession:session.download(['https://www.scribd.com/document/352366744/','https://www.scribd.com/document/351688288/'])use different page ranges in each document:importscribd_dlwithscribd_dl.ScribdDL()assession:session.download('https://www.scribd.com/document/352366744/',pages='1-3')session.download('https://www.scribd.com/document/351688288/',pages='3-5')fortitleinsession.doc_titles:print(title)InstallationClone it$ git clone https://github.com/giannisterzopoulos/scribd-dl.git
$ cd scribd-dl
$ pip install .or install from PyPI$ pip install scribd-dlRequirementsChromedriver is required in order to work. See all available chromedriver downloadshere.Put the chromedriver executable in the assets folder or in your system PATH variable.Tested to work with chromedriver v2.37 and Chrome v65.0.Scribd-dl supportsPython 3.4-3.6
Package: scribehog
hogHog helps you specify the files you want to open when looking through your Scribe logs.Installpip3 install --upgrade scribehogUsagehog [options] logcategory [interval]Options:-h,--helpPrint usage information.-v,--verboseVerbose logging.-y,--verifyRequire user confirmation before printing the selected logs.logcategorya hyphen-separated list of words or word prefixes to test against the hyphen- or underscore-separated logcategory names.For example: if your logcategory is calledalpha_bravo_charlie, you can match it withalpha-bravo-charlie, or justal-brav-c, maybe evena-b-c, as long as it's unambigious given the list of all logcategories.Note that the order of the words does not matter, ie.al-br-chandch-br-alare the same.intervala reference to the file or files you want to read. The default value is-1, meaning the most recent file. You can either use negative numbers as relative references like this, or specify a date and time in the format ofhh,dd-hh,mm-dd-hh, oryyyy-mm-dd-hh. For example, you can pass-3for the third most recent logfile, or10-09for the logfile on the 10th at 9:00 AM (note the leading 0 in the hour).Ranges can also be specified by using a colon, eg.-3:-2or10-15:10-18.Relative and absolute references can be freely mixed, eg.-10:12-31-20.When omitting a reference from either side of the colon, the end of the list is assumed, just like in Python list slicing, eg.-5:.You don't have to know if the specified files are gzip-compressed or not, hog takes care of that for you.The contents are uniformly printed to stdout, so you can pipe the output intogrep,lessor whatever you need to use.DevelopmentMake sure you have Python (>=3.5) installed.Clone the repository, then callmake develop.
Package: scribelex
scribelexscribelex - это легковесная библиотека на языке Python для реализации комбинаторов парсеров, позволяющая гибко преобразовывать данные между различными форматами.УстановкаВы можете установить scribelex с помощью pip:pipinstallscribelexЛицензияЭтот проект лицензирован под лицензией MIT.
Подробнее смотрите файлLICENSE.
Package: scribe_logger
Scribe loggerThis package contains a low level interface for writing to Scribe, as
well as a higher level log handler which plays nicely with Python’s
logging facilities.Supports Python 2.7Installationpip installscribe-loggerTesting locallygit clone https://github.com/adilansari/python-scribe-logger.git
cd python-scribe-logger
pip install -U -r requirements.txt
python runtests.pyLogger usagefromscribe_logger.loggerimportScribeLogHandlerimportloggingmy_logger=logging.getLogger('MyLogger')my_logger.setLevel(logging.DEBUG)scribe=ScribeLogHandler('localhost',1464,category='test_category')scribe.setLevel(logging.DEBUG)my_logger.addHandler(scribe)my_logger.info('This is a test message')Exceptions are suppressed by default.Usesilent=Falseto raise them:scribe=ScribeLogHandler('localhost',1464,category='test_category',silent=False)Writer usagefromscribe_logger.writerimportScribeWriterwriter=ScribeWriter('localhost',1464,'test_category')try:writer.write('test_message_1')writer.write(['test_message_1','test_message_2','test_message_3'])exceptScribeLoggerError:raiseExceptions are raised by default.Usesilent=Trueto suppress them:writer=ScribeWriter('localhost',1464,'test_category',silent=True)writer.write('test_message_1')writer.write(['test_message_1','test_message_2','test_message_3'])Contributors@adilansari @mwhooker @lenn0x
Package: scriber
Scriber.py==========A Python wrapper for the the Scriber API. See scriber.io`|Build Status| <https://travis-ci.org/Scriber/pyscriber>`_Install-------::pip install scriberBasic Usage-----------::from scriber.api import Scribers = Scriber(“<api_key>”, “<app_id>”)s.record_event(“<user_id>”, “<event_label>”)e.g.::from scriber.api import Scribers = Scriber(“CZFcO2xZdiLTz6m6KgrB4pqH1KI3zy49S0AZmeFZu9o”, “MyApp”)s.record_event(“email@example.com”, “LoginSuccess”)Docs----http://scriber.io/docs/#/python.. |BuildStatus| image:: https://travis-ci.org/Scriber/pyscriber.svg?branch=master
Package: scribes
ScribesScribes enables you to clone repositories and apply sweeping changes.Getting startedPre-requisitesScribes relies on git and theGitHub cli(gh). You
can follow install instructions for ghhere. You
can then authenticate usinggh auth login.UsageLet's say you want to clone all repos in an organization and apply a sed command
to all repos, replacingbarbyfoo, commit and create PRs.pip install scribesCreate a configuration file called configuration.yaml, such as the following:clone:organization_name:"my-organization"include:"^my-organization/tf-"exclude:"^my-organization/tf-bar-.*"output_directory:"output"include_forks:falseinclude_archived:falseinclude_private:falseRun the following commandsscribesclone
scribessed`s/bar/foo/g`scribescommit"branch""commit message"scribespr"title"--body"body"🎉 There it is, you have created PRs in all repos that containbarin their
content and created PRs in all repos with the changes
Package: scribes.editor.shortcut-manager
There is no any tool to change Scribes key bindings. All shortcuts are hard coded in python sources.
I prefer Eclipse key scheme which distinguish from standard Scribes. So I decide to write this plugin
for easy shortcut changing.UsingThere is menu item in standard preferences menu which activates key configuration window.
There is no any unusual things about it:action name,acceleratorproper, andaction description.
You may change accelerator by clicking on appropriate column and action or by focusing
cursor on needed item and pressingEnterkey. Also, you may clear accelerator
value by pressingBackspaceduring editing. Thereby such action will be disabled.Changed actions are marked by bold font.Closing window or pressingEsckey hides dialog and saves your key configuration.TODOButton to reset original action accelerator value
Package: scribes.file.goto-dir
Default shortcut<crtl>+<alt>+lopens editor file directory in file manager.ProblemsBecause plugin usesxdg-openfor opening directory you must
havemimeopenutil installed in your system, or else directory will be
opened in Firefox.AFAIK, debian based distributives havemimeopenfrom the box. For ArchLinux
you need installperl-file-mimeinfopackage.
Package: scribes.python.rope
Adds auto-complete and code navigation features to scribes editor.Installationpip install scribes.python.ropeTake note. During install plugin will be placed in your real home.UsingProject root is determined automatically if your code under GIT, Mercurial or Bazaar
VCSes. In other cases you should create.ropeprojectdirectory manually.After first try to autocomplete or find definition there be placed rope’sconfig.pywhich
you may tweak.ShortcutsF3: Navigate to symbol definition under cursorCtrl+Space: Performs auto-completeTODOUse dynamic and static rope analyzing capabilities.Show function parameters and documentation.Use source code type hints.
Package: scribe-updater
Setuppoetry runs a venv, so you need to runpoetry installfrom the root of the repo firstRunpoetry run updaterTestpoetry run pytestCoveragepoetry run pytest --covorpoetry run pytest --cov --cov-report=term-missingPublish to PyPiAfter adding credentials to be able to push to the python package index run the following cmd:poetry publish --buildLintingInstall nox with:pip3 install noxadd the path to your .bashrc and source itrunnox -rs blackTesting with console.pyfrom within the src/scribe_updater/ directory run the following:poetry run updater --target ../tests/test_input_1.json --ground ../tests/test_ground_1.json --output ./test_output'PBA Customer Spreadsheet Updater (update.py)Injects new scenarios from the ground truth into a customer spreadsheet.Caveatsif you are getting an error that looks like this :Failed to create the collection: Prompt dismissed..then export the following environment variable:export PYTHON_KEYRING_BACKEND=keyring.backends.null.KeyringUsagebasic use with no variables or mappingupdater -t target.json -g ground.json -o output.jsonuse with variables (variables are only required when adding special products)updater -t target.json -g ground.json -v variables.json -o output.jsonuse with version mapupdater -t target.json -g ground.json -m 3.3_to_3.7.json -o output.jsonuse with variables & version mapsupdater -t target.json -g ground.json -v variables -m 3.3_to_3.7.json -o output.jsonVersion MappingsVersion mappings are necessary when upgrading to a version that has scenarios that still exist but have been moved or their names have been changed. If you omit the version map the updater will still work but may delete or add scenarios that should not be in the configuration.Available Mappings3.3_to_3.7.json (use this to upgrade to finie 3.8)3.3_to_3.6.json3.3_to_3.5.json (use this to upgrade to finie 3.8)
Package: scrible
``Scrible`` Python *Console application* for taking notes======================================================================New in version 0.3:- Beautiful ui with added commands such as ``sync`` for automaticsynchronization of notesNew in version 0.2:- Better listing and searching options with ``--limit`` to getspecific number of items**Scrible** enables you create short and descriptive notes with cloud backup*easily*:.. code:: python"""Scrible.Usage:createnote  (<note_title>) [-m]viewnote    (<note_id>) [-m]deletenote  (<note_id> | -a)searchnotes (<query_string>) [(--limit <items>)]viewnote    (<note_id>)listnotes   [(--limit <items>)]nextexport      (<filename>)import      (<filename>)syncscrible (-s | --start)scrible (-h | --help | --version)Options:-s, --start  Interactive Mode-h, --help  Show this screen and exit.-m          Starts creating note body"""As you can see, the commands to use are few and easy to remember.Installation======================================================================Use `pip <http://pip-installer.org>`_ or easy_install::pip install scribleTesting======================================================================You can run unit tests preferably by installing nosetest and run from root of the folder:nosetestsUsage pattern format----------------------------------------------------------------------**Usage pattern** depends on the command you want to execute- View specific notes.. code:: pythonviewnote (<note_id>) [-m]- Create note with just title.. code:: pythoncreatenote  (<note_title>)- Create note with title and body.. code:: pythoncreatenote  (<note_title>) [-m]- Delete notes.. code:: pythondeletenote  (<note_id> | -a)- Search notes.. code:: pythonsearchnotes (<query_string>) [(--limit <items>)]- List notes.. code:: pythonlistnotes [(--limit <items>)]- Import notes.. code:: pythonimport (<filename>)- Export notes.. code:: pythonexport (<filename>)- Manually sync notessyncLaunching program======================================================================scrible --start
Package: scribus
ScribusA simple script formatting binary data for paper storage.paperkeyis great but when working with private keys on elliptic curves it doesn't gain much by striping extra data. In the other hand, recovering keys from paper storage generally means the situation is critical and there's no time to waste pulling back together missing pieces.Install$ pip install scribusRunTestTested on linux:$ cat tests/data | scribus --encode - | scribus --decode - > tests/data2
$ md5sum tests/*
d5658770e0ecb36e5785cccd51852df5  tests/data
d5658770e0ecb36e5785cccd51852df5  tests/data2
Package: scrimer
Scrimer is a GNU/Linux pipeline for designing PCR and genotyping primers from 454 transcriptomic data.Documentationhttp://scrimer.rtfd.orgDocumentation in sphinx format is in thedocdirectory.Source code and bug reportshttps://github.com/libor-m/scrimerLicenseScrimer is licensed under GNU Affero General Public License.If you use any part of the pipeline, please cite the appropriate publication (in preparation now).ContactLibor MorkovskyDepartment of Zoology, Charles University in Praguemorkovsk@natur.cuni.cz
Package: scripnix
Replaces the oldScripnix0project which had grown crufty and was not macOS-friendly.MotivationScripnix was born during my Linux server admin days when I wanted all of
my aliases and scriplets to follow me from machine to machine. Packaging
everything together made installing and keeping up-to-date that much
easier. Writing it was also a bash scripting learning exercise, although
I soon grew to loathe space-containing-filenames and all of the quoting
that implied.As I moved more to MacOS, the BSD version of most commands clashed with
the GNU/Linux versions that Scripnix assumed. Still wanting those handy
aliases and scriplets on MacOS, I resurrected Scripnix, but with many
more of the commands written in Python, and with Homebrew-supplied GNU
versions of my favourite utilities. The Python rewrite sidestepped much
of the silly bash quoting and syntax, and made testing practical.LicenceLicensed under theGNU General Public License, version
3. Refer to the
attached LICENSE file or seehttp://www.gnu.org/licenses/for details.Change LogThe current version is 0.1.12. Scripnix issemver-ish in its versioning scheme.Scripnix is currently an alpha release, so expect many many breaking
changes. Once ready for prime time, the major version number will jump
to 2 to reflect that this is actually the second incarnation of
Scripnix.InstallationFollowing installation using one of the methods below, you may also want
to run theinstall-scripnixcommand as the root user to setup the
system-wide configuration. Any other users that also wish to use
Scripnix should also run that command.Theinstall-scripnixcommand will also suggest changes to your~/.bashrcor~/.profilefiles to persist Scripnix in your
environment. It will also suggest changes to the/etc/sudoersfile
(vivisudo) so that the Scripnix commands can be run viasudowhen necessary.Homebrew (macOS)On macOS, Homebrew will take care of installing any dependencies,
including Python 3.brew tap yukondude/tap
brew install scripnix
install-scripnixPyPI (POSIX)On *NIX, you will first need to install Python 3.3 (or higher) using
your preferred method.pip3 install scripnix
install-scripnixDevelopment SetupInstall Scripnix, as above, so that all of its dependencies are
available.Create a Python 3 virtualenv for Scripnix:mkvirtualenv--python=$(whichpython3) ScripnixClone the Scripnix repo:git clonehttps://github.com/yukondude/Scripnix.gitInstall dependencies:pip install-rrequirements.txt-rrequirements-dev.txt-rrequirements-test.txtInstall the project in development mode:./setup.py developRun the unit tests to make sure everything is copacetic:./setup.py testPour a snifter of Martell XO and light up a Bolivar Belicoso.
Package: scrippy
Scrippy installerThis is theScrippyframework installer helper.Configure and installthe Scrippy scripting frameworkwith default valueWith configuration setting confirmationpipinstallscrippy
scrippyinstallWithout configuration setting confirmationpipinstallscrippy
scrippyinstall-yConfigure and installthe Scrippy scripting frameworkinteractivelypipinstallscrippy
scrippyinstall-iConfigure and installthe Scrippy scripting frameworkfrom custom configuration filepipinstallscrippy
scrippyinstall-c/path/to/config.yml
Package: scrippy-git
scrippy_gitGit client for theScrippyframework.PrerequisitesPython ModulesList of Required ModulesThe modules listed below will be automatically installed.GitPythonInstallationManualgitclonehttps://codeberg.org/scrippy/scrippy-git.gitcdscrippy-git
python-mpipinstall-rrequirements.txt
makeinstallWithpippipinstallscrippy-gitUsageThescrippy_git.gitmodule provides theRepoobject for easy manipulation of aGitrepository.importosfromscrippy_gitimportgitusername="git"host="gitlab.monty.py"port=2242reponame="luiggi.vercotti/monty_python.git"branch="master"repo=git.Repo(username,host,port,reponame)local_path=os.path.join(workspace_path,"monty_python")repo.clone(branch=branch,path=local_path)test_fname=os.path.join(local_path,"dead_parrot.txt")withopen(test_fname,mode="w")astest_file:test_file.write("Nobody expects the Spanish inquisition !")commit_message="Inquisition shall not be expected"repo.commit_push(commit_message)