Saravanan666/pypi-org huggingface dataset:
Package: shaarpy
ShaarPyShare Thoughts, Ideas, Links, Notes.a 'Shaarli cloned' in Python/DjangoHave a look athttps://shaarpy.foxmask.org/for live instanceFeaturesNotesCreatenotesinMarkdownLinksDrop a URL and ShaarPy will grab the article page withimageandvideoif the source website provides onesTagsManage tagsTag CloudDaily links historySee the links of the day and navigate throw the calendar to go back to your old linksToolsfor each link added, a markdown file can be create in a folder that will be sync on your mobile with the help of "syncthing"Import ofShaarliexported bookmark, or evenFireFoxbookmarksyou can export/import your data injsonexportpython manage.py dumpdata --format json --indent 2 > fixtures/my_shaarpy_dump.jsonimportpython manage.py loaddata --format json  fixtures/my_shaarpy_dump.jsonBookmarkletDrag the link you'll find under your profile, to the bookmark of the browserNow you'are able to post a new link just be clicking this bookmarklet wherever you are on the webLinks sync on mobileIf you don't host ShaarPy on a dedicated server, you can run it locally and sync the links in markdown file and sync them on mobile.You're able to do that by settings the variableSHAARPY_LOCALSTORAGE_MDto a directory path in you.envfile.Then files are generated, you may found them on your mobile (thanks to syncthing for managing that task)original webpageshaarpy grabbed linkshaarpy link on mobile(I use "Epsilon Notes" for that)Installation:package: InstallationRequirementsPython from 3.8 to 3.10Django 4.0pandocInstallationpandocsudoaptinstallpandoccreate a virtualenvpython3-mvenvshaarpycdshaarpysourcebin/activateinstall the projectgitclonehttps://framagit.org/foxmask/shaarpycdshaarpy:wrench: Settingscopy the sample config filecpenv.sample.envand set the following values, for examples# for metaSHAARPY_NAME=ShaarPy FoxMaSk LinksSHAARPY_DESCRIPTION=Share thoughts, links ideas, notesSHAARPY_AUTHOR=FoxMaSkSHAARPY_ROBOT=index, follow# for MD generation, set a path eg /home/foxmask/MesNotes/links or leave it empty to not use this featureSHAARPY_LOCALSTORAGE_MD=SHAARPY_STYLE=blueSECRET=!DONTFORGETTOCHANGETHISVALUE!# for production environment, set it to the URL of your 'ShaarPy'# 1 set it to FalseDEBUG=False# 2 set it to the URL of your 'ShaarPy'ALLOWED_HOSTS='127.0.0.1,localhost'# 3 set it to your own domain hosting shaarpyCSRF_TRUSTED_ORIGINS=https://*.mydomain.com# for databaseDB_ENGINE='django.db.backends.sqlite3'DB_NAME='db.sqlite3'DB_USER=''DB_PASSWORD=''DB_HOST=''DB_PORT=''# i18n/l10nTIME_ZONE='Europe/Paris'LANGUAGE_CODE='en-en'USE_I18N=TrueUSE_TZ=True:dvd: Databasesetup the databasecdshaarpy
pythonmanage.pymigrate
pythonmanage.pycreatesuperuser
pythonmanage.pyloaddatashaarpy/fixtures/my_shaarpy_data.json:mega: Running the Serverstart the projectpythonmanage.pyrunserverlocalhost:8001then, access the project with your browserhttp://127.0.0.1:8001/Testpythonmanage.pytestorpytestorcoveragerun--source='.'-mpytest
coveragereport-mLogo(logo, thanks tohttps://pixabay.com/fr/users/clker-free-vector-images-3736/)
Package: sha-assist
SHA AssistantEasy SHA1, SHA256, SHA384, SHA512, MD5 HTTPS domain fingerprinting**.Quick zero dependency fingerprinting with one command. sha_assist produces algorithmic digests of certificate public keys.Out of box, sha_assist exposes 5 key digests i.e. (SHA1, SHA256, SHA384, SHA512 and MD5) but can be easily extended usinghashlib.algorithms_available.SeeExtensibilityCredit todlenskiforssl.SSLSocket patchingInstallationUsage and Optionspython3 sha_assist -d google.com -p 443Usage: sha_assist.py [OPTIONS]OptionsDescription-d or --domain [required][Text] Domain URL to be fingerprinted (eg.https://www.github.com)-p, --port [optional][Integer] Port to establish connection on. Defaults to 443NOTE: URL must be prefixed with https://Extensibilitysha-assist produces algorithmic digests using hash-lib. By extension, all methods exposed byhashlib.algorithms_availablecan be used to produce required digests.
Output is by default hex but can be adapted to binary by replacing ~.digestHex().
Package: shabam
shabamA python tool to plot BAM or CRAM sequence reads.Installationinstallcairoif not already
installed:# macOS via conda, or via homebrew (choose one, then set the library path)condainstallcairopkgconfig
brewinstallcairopkg-configInstall shabam:pipinstallshabamThe dreamfromshabamimportseqplotseqplot('example.bam',chrom='1',start=30243,end=30321,fastafile='reference.fasta',out='plot.svg')Plotting optionsshade reads by strand withby_strand=Trueplot multiple sequence files together with a list of paths e.g.['child.bam', 'mom.bam', 'dad.bam']export PDF, PNG, SVG or PS formatted plots with matching filename extensionsCommand line versionshabam\--seqfilestests/data/example.bam\--chrom1\--start30243\--end30321\--fastafiletests/data/reference.fasta\--outplot.svgFurther improvements to the dreamUse consensus sequence when we don't provide a reference sequenceAllow custom colorsCompute proportion of variants at any sitePlot read depthAt positions with proportion of variants > threshold, reflect proportion
with base colorsOption to scale plotted base size, currently at 10 pixels per baseOptionally shade plots deepVariant style:red channel: nucleotideblue channel: read strandgreen channel: base qualityalpha: base supports ref or altFlatten vertical plotting in high depth sequence dataDown-sample reads for extremely high depth sequence data (>1000X)CreditInitial cigar parsing code lifted with permission frompybamview.
Package: shabbat
is shabbata simple module to save the shabbat in your code!example of a telegram bot:"""an example of telegram bot that will not work in shabbat!"""frompyrogramimportClient,filters,typesfromshabbatimportShabbatapp=Client("my_account")s=Shabbat()@app.on_message(filters.incoming)defshabbat_handler(_,m:types.Message):ifs.is_shabbat():returnm.reply_text("Today is Shabbat! send me your messages after that!")app.run()
Package: shabda
ShabdaShabda is a tool to fetch random samples fromhttps://freesound.org/based on given words or to generate Text-to-Speech samples for use in impro sessions on instruments such as Tidal Cycles and Estuary.Shabdais the Sanskrit word for "speech sound". In Sanskrit grammar, the term refers to an utterance in the sense of linguistic performance.InstallInstall Python 3:https://www.python.org/Install pip:https://pypi.org/project/pip/Install ffmpeg:https://ffmpeg.org/(e.g. Debian/Ubuntu:apt install ffmpeg)Install Shabda for standard usage:pip install shabdaorInstall shabda for hacking:Install poetry:https://python-poetry.org/docs/#installationIn Shabda repository, install dependencies:poetry installUse (command line)In order to download a sample pack, execute in the terminalshabda <definition> --licenses <license_name>.Any word can be a pack definition. If you want more than one sample, separate words by a comma:blue,redYou can define how many variations of a sample to assemble by adding a colon and a number.
e.g.blue,red:3,yellow:2will produce one 'blue' sample, three 'red' samples and two 'yellow' sample.The optional--licensesparameter allows to fetch only samples that have the specified license. Multiple licenses can be allowed by repeating the--licensesargument. Possible licenses arecc0(Creative Commons Zero),by(Creative Commons Attribution), andby-nc(Creative Commons Attribution Non-Commercial).Full example:shabda spaghetti:2,monster:4 --licenses cc0 --licenses byThe first time you execute this command, it will ask you for a Freesound token, that you will be redirected to. You will need a Freesound account.By default, samples will be downloaded in asamplesdirectory under the current working directory. You can override this by adding aconfig.inifile to the$HOME/.shabda/directory, containing:[shabda]samples_path=/path/to/your/desired/samples/directory/Use (web application)Launch the web application:In debug mode:FLASK_APP=shabda FLASK_DEBUG=1 flask runIn production:gunicorn --workers=4 "shabda:create_app()" -b localhost:8000Testpoetry run pytestNotesWith Estuary, Shabda makes use of this feature:https://github.com/dktr0/estuary/wiki#adding-sound-files-to-estuarywebdirt-on-the-flyAll command line examples must be preceded bypoetry runif in hacking/development mode.RoadmapSee:https://github.com/users/ilesinge/projects/4
Package: shachange
# shachange: Change an image sha signature[![Build Status](https://travis-ci.org/gabfl/shachange.svg?branch=master)](https://travis-ci.org/gabfl/shachange)`shachange` is a very simple Python program designed to change the signature of an image (sha1, sha256, md5...) in order to fool computer programs designed to identify unique images based on their signatures.The modification in the image is virtually impossible to see for a human but computers programs will see the image as a different one.## How does it work?- A single pixel is slightly modified: it will change the image signature and will be virtually indistinctible for a human- For improved security, meta data are removed## Demo![Demo](https://github.com/gabfl/shachange/blob/master/img/demo.gif?raw=true)## Installation```pip3 install shachange```## Usage```shachange --file 'image.jpg'Current file signature: f482afa0a6d9fa0023df7c35c978b5ccd59e3904 -> from image.jpgNew file signature: a53d273986cb08f5135835744397f2c05e61bc37 -> saved to image_2.jpg```
Package: shackles
Access and inspect attributes shackled to an object.
Shackles is MIT Licensed.InstallationTo install configit, simply:$ pip install shacklesAPI Documentationshackles.broken(obj, chain)Return name of first missing named attribute of object.If chain is not broken (all attributes are represented in chain)
nothing is returned.# obj.a.b.e
assert shackles.broken(obj, 'a.b.c') == 'c'shackles.get(obj, chain[, default])Return value of final named attribute in chain of object.If a named attribute does not exist,
default is returned if provided, otherwiseAttributeErroris raised.# obj.a.b
assert shackles.get(obj, 'a.b.c', 5) == 5

# obj.a.b.c = 6
assert shackles.get(obj, 'a.b.c', 5) == 6shackles.has(obj, chain)ReturnTrueif the chain of attributes exists on the object,Falseif not.# obj.a.b.c
assert shackles.has(obj, 'a.b.c']) == Trueshackles.walk(obj, chain)Generate the values of the attributes in the chain by walking the named attributes in the chain from the object.If a named attribute does not exist,
default is returned if provided, otherwiseAttributeErroris raised.# a = obj; b = obj; c = obj
# a.name = 'a'; b.name = 'b'; c.name = 'c'
# a.b = b; b.c = c
assert next(shackles.walk(a, 'b.c')).name == 'b'For further examples refer to included tests.ContributeForkthe repositoryon Github to start making your changes to thedevelopbranch (or branch off of it).Install to your env or venv by running:$ python setup.py developWrite a test which shows that the bug was fixed or that the feature works as expected.Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself toAUTHORS.
Package: shacl2code
Convert SHACL Model to code bindingsThis tool can be used to convert a JSONLD SHACL model into various code
bindingsInstallationshacl2codecan be installed using pip:python3-mpipinstallshacl2codeUsageshacl2codecan generate bindings from either a local file:shacl2codegenerate-imodel.jsonldpython-oout.pyOr from a URL:shacl2codegenerate-ihttps://spdx.github.io/spdx-3-model/model.jsonldpython-oout.pyOr from stdin:catmodel.jsonld|shacl2codegenerate-i-python-o->out.pyFor more information, run:shacl2code--helpThe available language bindings can be viewed by running:shacl2codelistDevelopingDeveloping onshacl2codeis best done using a virtual environment. You can
configure one and install shacl2code in editable mode with all necessary
development dependencies by running:python3-mvenv.venv
..venv/bin/activate
pipinstall-e.[dev]Testingshacl2codehas a test suite written inpytest. To run it, setup a
virtual environment as shown above, then run:pytestIn addition to the test results, a test coverage report will also be generated
usingpytest-cov
Package: shaclc
Python SHACL Compact Syntax ParserA Python SHACL Compact Syntax parser and serializer based on the specification athttps://w3c.github.io/shacl/shacl-compact-syntax/.All tests defined ingithub.com/w3c/data-shapes/shacl-compact-syntax/testsare passing.Browser playgroundPlay around with the implementation in your browser athttps://edmondchuc.github.io/shaclc/.QuickstartInstallation.pipinstallshaclcUsage.fromshaclcimportshaclc_to_graphshaclc_str="""BASE <http://example.com/ns>IMPORTS <http://example.com/person-ontology>PREFIX ex: <http://example.com/ns#>shape ex:PersonShape -> ex:Person {ex:ssn xsd:string [0..1] pattern="^\\d{3}-\\d{2}-\\d{4}$" .}"""graph=shaclc_to_graph(shaclc_str)graph.print(format="longturtle")Output.BASE <http://example.com/ns>
PREFIX ex: <http://example.com/ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

<>
    a owl:Ontology ;
    owl:imports <http://example.com/person-ontology> ;
.

<#PersonShape>
    a sh:NodeShape ;
    sh:property
        [
            sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:path <#ssn> ;
            sh:pattern "^\\d{3}-\\d{2}-\\d{4}$" ;
        ] ;
    sh:targetClass <#Person> ;
.
Package: shaclgen
Shaclgen takes either a data graph(s) or schema(s) as input and generates a basic shape file based on the classes and properties present.Shape files from data graphs:By default, the input graph is processed as a data graph (instance triples). Three formats are possible for data graphs: simple, nested, and extended.Simple: Each class and property generate individual Node- and PropertyShapes.Nested: Property shapes will be nested in nodeshapes iif they occur with one class.Extended: Expands nested shapes to create individual property shapes for each property, in addition to nesting them when appropriate.Shape files from ontologies:If the input is a schema or ontology, shaclgen generates a nested shape file: properties with rdfs:domain defined in the ontology will be nested within the appropriate NodeShape. rdfs:range definitions for XML and rdfs datatypes are included.Added support for OWL constructions is planned.InstallationUsing pip:pip install shaclgenFrom source:https://github.com/alexiskeely/shaclgenCommand line use:$ shaclgen graph [optional arguments]Example usage:$ shaclgen https://www.lib.washington.edu/static/public/cams/data/datasets/uwSemWebParts/webResource-1-0-0.ntCommand line arguments:positional arguments:
graph                 The data graph(s).optional arguments:
-h, --help            show this help message and exit
-nf, --nested         generates a nested shape file
-ef, --extended       generates an expanded shape file
-o, --ontology        input file(s) or URL(s) is a schema or ontology
-s SERIALIZATION, --serialization SERIALIZATION
                      result graph serialization, default is turtleThis project is still in development. Comments, questions, and issues
are welcome!Contact alexiskm at uw dot edu.
Package: shadbot
An example:fromlibraryshadimportrobo_shadbot=robo_shad("Auth Account")gap="guids"bot.sendMessage(gap,"mamadcodrr")How to import the Rubik's libraryfromlibraryshadimportrobo_shadHow to install the librarypipinstallshadbotMy ID in Rubika@mamadcoder1And My ID Channel in Rubika@python_java_source
Package: shaddock
Shaddock============Shaddock provides a platform deployed in http://docker.com containers following a predefined template (like a basic http://openstack.org infrastructure.)Usage-----A basic infrastructure template can be found in [Shaddock-template](https://github.com/Epheo/shaddock-template) repository.This template deploy a basic OpenStack infrastructure. You can/should edit it in **/var/lib/shaddock**Common commands are:- build [service_name]- create [service_name]- start [service_name]- stop [service_name]- list- show [service_name]- remove [service_name]Installation------------Docker installation'''''''''''''''''''https://docs.docker.com/installation/Shaddock installation'''''''''''''''''''sudo pip install shaddockorsudo python setupy.py installShaddock template installation''''''''''''''''''''''''''''(For an OpenStack platform)git clone https://github.com/Epheo/shaddock-template /var/lib/shaddock/Configuration-------------services.yamlconfiguration.yamlThe general architecture of the platform is defined in *services.yaml*All the configurations (passwords, users, etc.) are in *configuration.yaml*Both are in [YAML](http://www.yaml.org/)In order to use Shaddock with a distant server or on **Mac OS** with boot2docker you can change the address in configuration.yamlINFORMATIONS------------Contributing''''''''''''I'm really interested in any advice, idea, help, or contribution.License'''''''Shaddock is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0References''''''''''[Docker-py API Documentation](https://github.com/docker/docker-py/blob/master/README.md)
Package: shade
IntroductionWarningshade has been superceded byopenstacksdkand no longer takes new
features. The existing code will continue to be maintained indefinitely
for bugfixes as necessary, but improvements will be deferred toopenstacksdk. Please update your applications to useopenstacksdkdirectly.shade is a simple client library for interacting with OpenStack clouds. The
key word here issimple. Clouds can do many many many things - but there are
probably only about 10 of them that most people care about with any
regularity. If you want to do complicated things, you should probably use
the lower level client libraries - or even the REST API directly. However,
if what you want is to be able to write an application that talks to clouds
no matter what crazy choices the deployer has made in an attempt to be
more hipster than their self-entitled narcissist peers, then shade is for you.shade started its life as some code inside of ansible. ansible has a bunch
of different OpenStack related modules, and there was a ton of duplicated
code. Eventually, between refactoring that duplication into an internal
library, and adding logic and features that the OpenStack Infra team had
developed to run client applications at scale, it turned out that we’d written
nine-tenths of what we’d need to have a standalone library.ExampleSometimes an example is nice.Create aclouds.ymlfile:clouds:
 mordred:
   region_name: RegionOne
   auth:
     username: 'mordred'
     password: XXXXXXX
     project_name: 'shade'
     auth_url: 'https://montytaylor-sjc.openstack.blueboxgrid.com:5001/v2.0'Please note:os-client-configwill look for a file calledclouds.yamlin the following locations:Current Directory~/.config/openstack/etc/openstackMore information athttps://pypi.org/project/os-client-configCreate a server withshade, configured with theclouds.ymlfile:import shade

# Initialize and turn on debug logging
shade.simple_logging(debug=True)

# Initialize cloud
# Cloud configs are read with os-client-config
cloud = shade.openstack_cloud(cloud='mordred')

# Upload an image to the cloud
image = cloud.create_image(
    'ubuntu-trusty', filename='ubuntu-trusty.qcow2', wait=True)

# Find a flavor with at least 512M of RAM
flavor = cloud.get_flavor_by_ram(512)

# Boot a server, wait for it to boot, and then do whatever is needed
# to get a public ip for it.
cloud.create_server(
    'my-server', image=image, flavor=flavor, wait=True, auto_ip=True)LinksIssue TrackerCode ReviewDocumentationSourcePyPIMailing listRelease notesContributing
Package: shadebags
ShadebagsShade is an extremely fast & highly queryable bag format built for big data robotics. Compress & query ROS or custom data.FeaturesHighly modular, adding new compression algorithms and bag types is easyMulticore compression - compress extremely fast (we experienced a 5x speed boost overrosbag compress)Better compression ratios. By matching the algorithm to the datatype, much better compression ratios are achievedUsageJustpip install shadebagsandshadebags compress ./example.bag ROS1This will give a new file./example.shade. To recover the original bag just runshadebags decompress ./example.shade.Art by DALL·E 2 - "Robots playfully putting items into a bag synthwave"
Package: shaderdef
Transform Python code into GLSL shaders.See demo.py for a quick example of how to use the library.This module does not currently provide any sort of shader execution
(although that would be a fun addition). It just outputs GLSL code.LicenseGNU GPLv3+Documentationhttps://shaderdef.readthedocs.ioImplementationThe builtinastmodule is used to parse Python functions and
transform them into GLSL code.An alternative implementation that actually evaluated the functions
and kept track of the assignment tree was dropped because regular
Python control structures can’t be used.
Package: shaderpy
ShaderpyA small shader package for Pyglet.DocumentationCreating a shader:shader=shader.Shader([('shaders/color.vs',GL_VERTEX_SHADER),('shaders/color.fs',GL_FRAGMENT_SHADER)])Binding and unbinding a shader:shader.bind()# Render awesome stuffshader.unbind()Example of different ways of setting uniforms:matrix=[1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0]matrix2=numpy.array(matrix)matrix3=numpy.matrix(matrix)shader.set_uniform('MyFloat',42.0)shader.set_uniform('MyVector',1.0,0.0)shader.set_uniform('MySecondVector',[1.0,2.0,3.0])shader.set_uniform_matrix('MyMatrix',matrix)shader.set_uniform_matrix('MySecondMatrix',matrix2)shader.set_uniform_matrix('MyThirdMatrix',matrix3)Deleting a shader:shader.delete()Installationpip install shaderpyChange Log============0.0.1 (2021-02-27)First Release0.0.2 (2021-02-27)Added error handling when compiling shaders and linking programs.0.0.3 (2021-02-27)Fixed description.0.0.4 (2021-02-27)Actually fixed description.
Package: shadertest
shadertestA Python library for unit testing GLSL functionsExampleBelow we have a very simple fragment shader calledadd.frag.#version 330outvec4outColor;floatadd(floata,floatb){returna+b;}voidmain(){outColor=vec4(add(0.5,0.5));}To test using shadertest, we just need to create aShaderContext, and start calling functions from the shader.importpytestimportshadertest@pytest.fixture(scope='module')defbasic_shader():withshadertest.ShaderContext.from_file('add.frag')asfuncs:yieldfuncsdeftest_add(basic_shader):assertbasic_shader.add(4,2)==6Supported data typesThe following data types are supported for return values and function arguments:boolintuintfloatbvecnivecnvecnFor more information about GLSL data types, checkout theKhronos wiki pageon them.
Package: shadho
shadho- Scalable Hardware-Aware Distributed Hyperparameter Optimizershadhois framework for distributed hyperparameter optimization developed for
machine/deep learning applications.Website/Documentation:https://shadho.readthedocs.ioBug Reports:https://github.com/jeffkinnison/shadho/issuesInstallationNote:The post-install step may look like it hangs, but it is just
compiling Work Queue behind the scenes and may take a few minutes.$ pip install shadho
$ python -m shadho.installers.workqueueInstalling on a Shared SystemThe owner of the shared installation should follow the steps above. Then,
another user installs with$ pip install shadho
$ python -m shadho.installers.workqueue --prefix <path to shared install>DependenciesnumpyscipypyrameterWork Queue(Built and installed by setup.py)
Package: shadocs
ShadocsShadocs 一个清新美丽的mkdocs 主题。开源协议: MIT license文档:https://shadocs.readthedocs.io.特征` pip install shadocs ` 进行安装便可。修改mkdocs.yml 文件theme: name: 设置为 shadocs 便可。鸣谢该包使用了Cookiecutter和llango/cookiecutter-shapackage模板创建。效果图历史1.0.1(202-04-26)
1. 修改code中的代码太长的换行问题。1.0.0(2022-04-20)
1. 修改logo不一样的问题；
2. 更改页面链接主题颜色；
3. 修复了一些不明显的bug。0.1.3(2022-04-15)修复侧边导航;添加新的logo;修改新的配色;对响应式修改一些基本的bugs。修改搜索页面。0.1.0 (2021-03-21)在 PyPI 首个版本0.1.1 (2021-03-22)0.1.2 (2022-01-11)
1. 修改部分样式。
2. 添加了路径操作。
3. 修复部分bug。