Saravanan666/pypi-org huggingface dataset:
Package: shire
Heavy-job queue processorInstallationpip install shireCreate config fileRun shire-cli create_config, follow instructions.An example of the shire.cfg:[connection]
redis_url = redis://127.0.0.1:6379/0
db_url = postgres://peewee:123@127.0.0.1:5432/peewee

[hostler]
check_time = 5

[shire]
venv_path = /path/to/your/virtualenv
sys_path = /path/to/your/project:/path/to/external/library
host = default

[scribe]
per_pool = 1
log_max_size = 104857600
log_directory = logs
max_logs = 5
default_log = default.log

[pool]
check_time = 30

[whip]
limits_update_time = 60
check_time = 1Queue managementInteractive shire config creationshire-cli -c /path/to/your/shire.cfg create_configRun whip (Enqueue jobs to pools)shire-cli -c /path/to/your/shire.cfg run_whipRun scribe (Shire job logs writer)shire-cli -c /path/to/your/shire.cfg run_scribeRun hostler (Shire failed jobs restarter)shire-cli -c /path/to/your/shire.cfg run_hostlerRun pool (Shire job executor)shire-cli -c /path/to/your/shire.cfg run_pool –name=pool_nameRun multiple pools with one master-processshire-cli -c /path/to/your/shire.cfg start_pools –names=pool_name,another_poolExampleRun shireshire-cli -c /path/to/your/shire.cfg run_whip
shire-cli -c /path/to/your/shire.cfg run_pool –name=defaultCreate example jobs module:# my_jobs.py
from shire.job import Job
import requests

def save(text_len):
    # save - your external function to save result data. Shire not save any results itself.
    pass

class CountWordsAtUrl(Job):
    def run(url=None):
        resp = requests.get(url)
        save(len(resp.text.split()))Create example configuration module:# shire_conf.py
from shire.config import Config as ShireConfig
conf = ShireConfig()
conf.load('/path/to/your/shire.cfg')Enqueue job:from my_jobs import CountWordsAtUrl
from shire_conf import conf
CountWordsAtUrl.delay(conf, pool='default', kwargs={'url': 'https://github.com/suguby/shire'})
Package: shirka
This a bot based on twisted, mostly a python learning projectConsumersflowdock: read message from flow dock stream APIRespondersfacewhoismathwatxkcdascii9gagInstallationInstall dependencies:pip install twisted
pip install twistedhttpstream
pip install requests
pip install sympy
pip install mocker
pip install pyopenssl
pip install python-flowdock
pip install markdown
pip install paramiko
pip install pyyaml
pip install iocRunning Testspythontests.py# run all testspython-munittestresponders.xkcd# run one testUsagestart.py# vim: set fileencoding=utf-8 :importtwistedhttpstream,yaml,sys,loggingfromtwisted.internetimportreactorimportioclogging.basicConfig(level=logging.DEBUG)container=ioc.build(['config.yml',])if__name__=="__main__":forflowincontainer.parameters['consumers']:twistedhttpstream.stream(reactor,"https://stream.flowdock.com/flows/%s/%s"%(container.parameters["flowdock.%s.organisation"%flow],flow),container.get("consumer.%s.flowdock"%flow),username=container.parameters["flowdock.%s.user.token"%flow],password="")reactor.run()Configuration fileparameters:consumers:[test]bot.name:nonobot.email:no-reply@shirka.comremote.users:[XXX]remote.servers:# paramiko option - http://www.lag.net/paramiko/docs/paramiko.SSHClient-class.htmlnono:{host:XXXX,username:XXXX,look_for_keys:false,password:XXXX}# configure flow parameterstestflowdock.test.organisation:shirkaflowdock.test.flow.name:FLOW_NAMEflowdock.test.flow.token:FLOW_TOKENflowdock.test.user.name:randeflowdock.test.user.token:USER_TOKENservices:# Configure the botbot:class:shirka.consumers.Botarguments:['%bot.name%','%bot.email%']# Configure shared respondersresponders.math:{class:shirka.responders.MathResponder}responders.xkcd:{class:shirka.responders.XkcdResponder}responders.big_bro:{class:shirka.responders.BigbroResponder}responders.reminder:{class:shirka.responders.ReminderResponder}responders.status:{class:shirka.responders.StatusResponder}responders.rage_face:{class:shirka.responders.RagefaceResponder}responders.wat:{class:shirka.responders.WatResponder}responders.9gag:{class:shirka.responders.NineGagResponder}responders.remote:class:shirka.responders.RemoteResponderarguments:-'%remote.servers%'-'%remote.users%'# Configure flowdock push APIflowdock.test:class:flowdock.FlowDockkwargs:api_key:'%flowdock.test.flow.token%'app_name:'%bot.name%'project:Project testconsumer.test.flowdock.logger:class:logging.getLoggerarguments:-'flowdock.%flowdock.test.flow.name%'# Configure Stream API Consumer with valid respondersconsumer.test.flowdock:class:shirka.consumers.FlowDockConsumerarguments:-'@bot'-"%flowdock.test.flow.token%"--'@responders.rage_face'-'@responders.test.whois'-'@responders.math'-'@responders.big_bro'-'@responders.reminder'-'@responders.remote'-'@responders.status'-'@responders.test.help'-'@responders.test.whois'-'@flowdock.test'kwargs:logger:'@consumer.test.flowdock.logger'responders.test.whois:class:shirka.responders.FlowdockWhoisResponderarguments:-'%flowdock.test.organisation%'-'%flowdock.test.flow.name%'-'%flowdock.test.user.token%'responders.test.help:class:shirka.responders.HelpResponder
Package: shirkhan
shirkhanthe python tool library for shirkhancurrently using with project u-open-imlaUsage安装pipinstallshirkhan更新pipinstall--upgradeshirkhan删除pipuninstallshirkhanfromshirkhanimportdecode,encode,syllabifyencode("xxxx")decode("yyy")word="شىرخان"print(syllabify(word))功能示例：分音节思路：
1. 把单词向量化，按照元音，辅音 的0，1 值生成token 0100100
2. 从后往前分析 所以需要反转 retoken 0010010
3. 把retoken 以元音为分界分组 001 001 0
4. 按照分音节通用算法进行给retoken 植入分隔符
    - 两个元音之间有1个辅音它属于前面的音节
    - 两个元音之间有2个辅音它一个属于前面的，一个属于后面的
    - 两个元音之间有3个辅音 第一个属于前面的，后两个属于后面的
    - 两个元音之间有4个辅音 第一个属于前面的，其后的两个一组，最后一个属于后面的   【shirkhan 给自己出的规则，目前没有任何凭据这么做，而且是不对的】
    - 两个元音之间有5个辅音 第一个属于前面的，其后的三个一组，最后一个属于后面的   【shirkhan 给自己出的规则，目前没有任何凭据这么做，而且是不对的】

5. 把嵌入分割符的retoken分割点坐标映射到原始内容上 i -> len(word)-i
6. 按照分割符切割fromshirkhanimportsyllabifyprint(syllabify('شىرخان'))# output ['شىر', 'خان']元音辅音组合的向量fromshirkhanimportSWordtarget_word="شىرخان"print(SWord(target_word).tokenize())# output 010010组合向量分组fromshirkhanimportSWordtarget_word="شىرخاننىڭمۇ"sw=SWord(target_word)gtoken=sw.get_grouped_token()gretoken=sw.get_grouped_retoken()print(sw.tokenize())print(gtoken)print(gretoken)# 01001001001# [['0', '1'], ['0', '0', '1'], ['0', '0', '1'], ['0', '0', '1']]# [['1'], ['0', '0', '1'], ['0', '0', '1'], ['0', '0', '1'], ['0']]分音原始内容fromshirkhanimportSWordtarget_word="شىرخاننىڭمۇ"sw=SWord(target_word)print(sw.get_positional_word())print(sw.get_positional_token())print(sw.get_positional_retoken())# شىرxخانxنىڭxمۇ# 010x010x010x01# 10x010x010x010单词生成字单词# 第一种方式fromshirkhanimportSWordtarget_word="شىرخاننىڭمۇ"sw=SWord(target_word)print(sw.get_similar_words())# 第二种方式fromshirkhanimportSWordtarget_word="شىرخاننىڭمۇ"print(SWord(target_word))# output:# ['شىر', 'شىرخان', 'شىرخاننىڭ', 'شىرخاننىڭمۇ']
Package: shiro
Python JSON Object Signing and Encryption (Project Shiro)This library provides an implementation for the work of the JOSE Work Group.It implements the following RFCs.RFC 7515 - Json Web Signature (JWS)RFC 7516 - Json Web Encryption (JWE)RFC 7517 - Json Web Key and Keyset (JWK)RFC 7518 - Json Web Algorithms (JWA)RFC 7519 - Json Web Token (JWT)For more details on each feature, please visit the respective documentation.LicenseThis project is licensed under the MIT License.
Package: shiroin
Shiro Inequality Prover (ShiroIn)A Python library for proving polynomial inequalities. It uses SciPy and SymPy.PrerequisitesPython >=3.5pipgit (if you install from GitHub)Jupyter Notebook (recommended way of using ShiroIn)InstallationCopy one of these commands in terminal/cmd.Install from PyPI repository.pip install shiroinInstall from GitHub.pip install git+https://github.com/urojony/shiroinIf you can't install libraries (for example you don't have administrator rights), try to add--userto command.
Note that ShiroIn works only for python3, if your default python is python2, then you should probably writepip3instead ofpip.You can also copy shiroin/init.py file to your computer and rename it to shiroin.py, but then you have to add directory with this file to PYTHONPATH or navigate to this directory each time before running python in terminal/cmd.TutorialThe tutorial is in thetutorial.ipynbfile. You can also checkexamples.pyfor more examples of usage andstatistics.ipynbfor some approaches to automate proving inequalities even more.
Package: shirow
ShirowShirow is an RPC server framework based on top ofTornado. It relies on the
WebSocket protocol for transport and uses JSON-messages as payload.The project was named after Masamune Shirow, a mangaka who is best known
for such mangas asBlack
Magic,AppleseedandGhost in the
Shell.FeaturesThe primary goal of Shirow is to simplify creating microservices using
Tornado, allowing clients to leverage some Django facilities. Thus,
Shirow expands the Tornado implementation of the WebSocket protocol with
an authentication layer, so that clients have to be authenticated using
theDjango authentication
systemto
connect to the RPC server. The client has to pass a valid token to the
RPC server, which was received after a successful authentication
procedure, to prove Shirow that it’s an authenticated. See thecreate_token_if_neededdecorator to learn how to make Django views create the tokens.AuthorsSeeAUTHORS.LicensingShirow is available under theApache License, Version 2.0.
Package: shisensho
Shisen Sho=======================I love to play this game for years and I wanted to build a new version from thescratch.This version runs only in python 3 even though there are plans to make it morecompatible with python 2.Description-----------The Shisen Sho Game is a popular board game born in Japan. It uses the tilesof another popular game from Japan: Mahjong.The objective of the game is empty the board deleting all the tiles. The tilesare deleted in pairs. The tiles can be erased if there is a path of 3 pointsbetween them. The path must be horizontally or vertically and it must be freeof any tile. Also, the path can be outside the board.If you think the game can be improved, please let me know, I do my best effort!check the code on Github: `Shisen Sho <https://github.com/apolinux/shisensho>`.Prerequisites-------------The libraries TK,PIL and ImageTK are required to install shisensho.sudo apt-get install python3-tk python3-pil python3-imagetk python3-pil.imagetkInstallation------------pip3 install shisensho----------Carlos ArceSoftware Developerapolinux@gmail.com
Package: shishua
SHISHUA for Python: The fastest PRNGThe official page for SHISHUA ishere.ThisPyPIpackage provides bindings for Python.fromshishuaimportSHISHUArng=SHISHUA(0)buffer=rng.random_raw(1<<30)# 1 GiB# It takes 1s on my laptop.NumPy support:importnumpyfromshishuaimportSHISHUAbuffer=numpy.random.Generator(SHISHUA()).bytes(1024)print(buffer.hex())APISHISHUA(seed=None)Returns a generator instance initialized with the given seed.Theseeddetermines the sequence of numbers that this function returns:print(SHISHUA('seed').random_raw(10).hex())#> 1aa64a39f6949b969e97print(SHISHUA('seed').random_raw(10).hex())#> 1aa64a39f6949b969e97print(SHISHUA('different seed, different values').random_raw(10).hex())#> 216a0889a858eb57ae30The seed can be either:A list of four 64-bit integers,
to map exactly to the functionality provided
by the underlying SHISHUA algorithm,A string, which is hashed into the four integers,A single integer, which sets the first of the four,If not provided (or undefined),
a random seed is generated from the system's CSPRNG.Associated methodsThe object returned by callingSHISHUA()also has the following methods,
which all tap into the stream generated by the seed:.random_raw(size), which returns abytesfilled with random bytes.
Package: shitgram
Install :pip install shitgram==0.1.dev6How to use?Config your bot :fromshitgramimportBot,typesAPI_TOKEN="API_TOKEN_HERE"bot=Bot(API_TOKEN)Add handlers to recive updates from telegram:Any update from telegram:@bot.onUpdateasyncdefon_updates(bot:Bot,update:types.Update):print(update)message and edited_message:@bot.onMessage()asyncdefon_message(bot:Bot,message:types.Message):print(message)@bot.onEditedMessage()asyncdefon_edited_message(bot:Bot,message:types.Message):print(message)# Custom filterdeffilter_admin(message:types.Message):admins=[123456789,987654321]returnbool(message.from_user.idinadmins)@bot.onMessage(func=filter_admin)@bot.onEditedMessage(func=filter_admin)asyncdefon_custom_filter(bot:Bot,message:types.Message):print(message)# Echo Bot@bot.onMessage(func=lambdam:m.text)asyncdefecho(bot:Bot,message:types.Message):returnawaitbot.sendMessage(message.chat.id,message.text,entities=message.entities)Callback Queries( No CallbackQuery Methods currently )@bot.onCallbackQuery()asyncdefon_callback_query(bot:Bot,callback_query:types.CallbackQuery):returnawaitbot.sendMessage(callback_query.message.chat.id,callback_query.data)Inline Queries ( No InlineQuery Methods currently )@bot.onInlineQuery()asyncdefon_inline_query(bot:Bot,inline_query:types.InlineQuery):print(inline_query)Start the bot:importasyncioimportlogginglogging.basicConfig(level=logging.INFO)asyncio.run(bot.start_polling())# add allowed updates:asyncio.run(bot.start_polling(allowed_updates=["message"]))Start multiple bots:importasyncioimportloggingfromshitgramimportrun_multiple_bots,Bot,types,enumslogging.basicConfig(level=logging.INFO)bot_1=Bot("API_TOKEN_1")bot_2=Bot("API_TOKEN_2")@bot_1.onMessage()@bot_2.onMessage()asyncdefon_message(bot:Bot,message:types.Message):returnawaitbot.sendMessage(message.chat.id,(awaitbot.getMe()).mention.markdown,parse_mode=enums.ParseMode.MARKDOWN)asyncio.run(run_multiple_bots([bot_1,bot_2]))LICENSE :MIT
Package: shitjs
Aboutshitjs is a shit javascript interpreter written in python.See series of blog articles on making
shit jsSee COPYING for LGPL licence details.AuthorsOnly one developer so far, maybe more if it becomes useful.Rene Dudfield <renesd@gmail.com> is a lead developer and
maintainer ofpygame,
and is also aLondon Website developer, and App
developer.shitjs changelog0.2.0pre (2011-04-10)Features addedAdded code for part2Bugs fixed0.1.1pre (2010-12-29)Features addedAdded code for part1Bugs fixedTODOpart 2 code.  Including tokenising of more javascript.
Package: shitposts
shitpostsAsynchronous wrapper for ShitpostAPI.ExampleimportasynciofromshitpostsimportAsyncShitpostingSessionasyncdefmain():withopen("input.mp4","rb")asinput_media:input_bytes=input_media.read()asyncwithAsyncShitpostingSession()assession:output_bytes=awaitsession.edit(input_bytes,"video/mp4",frame={"bottom":"Text"})withopen("output.mp4","xb")asoutput_media:output_media.write(output_bytes)asyncio.run(main())
Package: shitsort
How to usepip install shitsortexample usage:import shitsort

myarray = [1, 5, 12, 6, 6, 11]

print(shitsort.bogosort(myarray))
print(shitsort.multibogosort(myarray, 4)) # uses 4 processes
print(shitsort.bozosort(myarray))
print(shitsort.slowsort(myarray))
print(shitsort.permutationsort(myarray))
print(shitsort.multipermutationsort(myarray, 4)) # uses 4 processes

>>> [1, 5, 6, 6, 11, 12]
>>> [1, 5, 6, 6, 11, 12]
>>> [1, 5, 6, 6, 11, 12]
>>> [1, 5, 6, 6, 11, 12]
>>> [1, 5, 6, 6, 11, 12]
>>> [1, 5, 6, 6, 11, 12]functions:bogosort(array)returns a new sorted array ofarrayusing the bogosort algorithm without modifying the passed in array. (pseudocode)multibogosort(array, numthreads)returns a new sorted array ofarrayusing the bogosort algorithm without modifying the passed in array, but on multiple processes simultaneously. The number of processes can be specified withnumthreads. Causes absurd CPU usage.bozosort(array)returns a new sortedarrayusing the bozosort algorithm, without modifying the passed in array. (paper includes pseudocode somewhere)slowsort(array)returns a new sortedarrayusing the slowsort algorithm, without modifying the passed in array. (pseudocode)permutationsort(array)returns a new sortedarrayby creating every permutation of the passed in array and looking through them. Uses absurd amounts of memory.multipermutationsort(array, numthreads)returns a new sortedarrayby creating every permutation of the passed in array and looks through it onnumthreadsprocesses. Uses absurd amounts of memory and CPU.contributors: sh6heer, jas-dziedLicensed under GPL GNUv3
Package: shittywebserver
ShittyWebserverAn tiny WebAPI that does some normal things and some weird thing for testing web consuming code.ShittyWebserverAPIRunPythonDockerAPIOpenAPI DocRunPythonpip install shittywebserverfromshittywebserverimportrun_shitty_webserverrun_shitty_webserver(host="0.0.0.0",port=8000,run_in_subprocess=False)Dockerdocker pull registry-gl.connect.dzd-ev.de:443/dzdpythonmodules/shittywebserver:proddocker run -p 8000:8000 registry-gl.connect.dzd-ev.de:443/dzdpythonmodules/shittywebserver:prod
Package: shiv
shivshiv is a command line utility for building fully self-contained Python zipapps as outlined inPEP 441, but with all their dependencies included!shiv's primary goal is making distributing Python applications fast & easy.📗 Full documentation can be foundhere.sys requirementspython3.6+linux/osx/windowsquickstartshiv has a few command line options of its own and accepts almost all options passable topip install.simple cli exampleCreating an executable of flake8 with shiv:$shiv-cflake8-o~/bin/flake8flake8
$~/bin/flake8--version3.7.8(mccabe:0.6.1,pycodestyle:2.5.0,pyflakes:2.1.1)CPython3.7.4onDarwin-c flake8specifies the console script that should be invoked when the executable runs,-o ~/bin/flake8specifies the location of the generated executable file andflake8is the dependency that should be installed from PyPI.Creating an interactive executable with the boto library:$shiv-oboto.pyzboto
Collectingboto
Installingcollectedpackages:boto
Successfullyinstalledboto-2.49.0
$./boto.pyz
Python3.7.4(v3.7.4:e09359112e,Jul82019,14:54:52)[Clang6.0(clang-600.0.57)]ondarwin
Type"help","copyright","credits"or"license"formoreinformation.(InteractiveConsole)>>>importboto
>>>boto.__version__'2.49.0'installingYou can install shiv by simply downloading a release fromhttps://github.com/linkedin/shiv/releasesor viapip/pypi:pipinstallshivYou can even create a pyzofshivusingshiv!python3-mvenv.sourcebin/activate
pipinstallshiv
shiv-cshiv-oshivshivdevelopingWe'd love contributions! Getting bootstrapped to develop is easy:gitclonegit@github.com:linkedin/shiv.gitcdshiv
python3-mvenvvenvsource./venv/bin/activate
python3-mpipinstall--upgradebuild
python3-mbuild
python3-mpipinstall-e.Don't forget to run and write tests:python3-mpipinstalltox
toxTo build documentation when you changed something indocs:python3-mpipinstall-rdocs/requirements.txt
sphinx-builddocsbuild/htmlgotchasZipapps created with shiv are not guaranteed to be cross-compatible with other architectures. For example, apyzfile built on a Mac may only work on other Macs, likewise for RHEL, etc. This usually only applies to zipapps that have C extensions in their dependencies. If all your dependencies are pure python, then chances are thepyzwillwork on other platforms. Just something to be aware of.Zipapps created with shivwillextract themselves into~/.shiv, unless overridden viaSHIV_ROOT. If you create many utilities with shiv, you may want to occasionally clean this
directory.acknowledgementsSimilar projects:PEXpyzzersuperzippyLogo by Juliette Carvalho
Package: shiva
Shiva is, technically speaking, a RESTful API to your music collection. It
indexes your music and exposes an API with the metadata of your files so you
can then perform queries on it and organize it as you wish.On a higher level, however, Shiva aims to be a free (as in freedom and beer)
alternative to popular music services. It was born with the goal of giving back
the control over their music and privacy to the users, protecting them from the
industry’s obsession with control.It’s not intended to compete directly with online music services, but to be an
alternative that you can install and modify to your needs. You will own the
music in your server. Nobody but you (or whoever you give permission) will be
able to delete files or modify the files’ metadata to correct it when it’s
wrong. And of course, it will all be available to any device with Internet
connection.You will also have a clean, RESTful API to your music without restrictions. You
can grant access to your friends and let them use the service or, if they have
their own Shiva instances, let both servers talk to each other and share the
music transparently.To sum up, Shiva is a distributed social network for sharing music.Read more onhttps://hacks.mozilla.org/2013/03/shiva-more-than-a-restful-api-to-your-music-collection/You can find the technical documentation atRead The Docs.Copyright © 2015 Alvaro Mouriño
Package: shiva-ai
#SHIVA AIShiva AI is an OpenAI-powered Python module created to help developers easily integrate artificial intelligence into their Python projects. AI2PY provides a comprehensive set of tools for creating AI-generated text, images, and image variations. An OpenAI API Key is required.The module contains functions to create text, create text commands, create images, and create image variations. The init function initializes the class with an api_key. The create_text function takes in data and a word count and uses the OpenAI API to generate text based on the data. The create_text_command function takes in a command, data, and a word count and uses the OpenAI API to generate text based on the command and data. The create_image function takes in prompt text and an image size and uses the OpenAI API to generate an image based on the prompt text. The create_image_variation function takes in data and an image size and uses the OpenAI API to generate an image variation based on the data. The options class contains two functions: display_imagesizes and image_resize. The display_imagesizes function prints out the required image sizes for the OpenAI API. The image_resize function takes in an image and a size and resizes the image to the specified size.In addition, Shiva AI also provides a set of pre-trained models that can be used for various tasks such as natural language processing, computer vision, and more. These models can be used to quickly build AI applications without having to train your own models from scratch.If you have any questions, feel free to ask them in the GitHub Discussion tab. If you need help with a project or want to show off a project made with Shiva AI, you can also do so in the Discussion tab. If you find a bug, please report it in the GitHub Issues tab and provide the complete error message and a minimal example code that reproduces the error. If you have ideas for improvements or requests for new functions, you can also report these in the GitHub Issues tab, but please check for previous requests to prevent duplicates.
Package: shivank-anchal
if the program Crashes,restart the program by killing the terminal.enter exit() to start new Chatselect your language and the language in which you want to translate.language will be translated irrespective of the stranger's language.'Type 'exit()' to exit the chat.'
'Type 'change()' to change the language.'
'Type 'change(a,b)',where 'a' means user lang code and 'b' means stranger lang code '
'Type 'kill()' to exit the chat.'