Saravanan666/pypi-org huggingface dataset:
Package: sharevia
Sharevia is a python tool through which you can share any amount of data to multiple devices at once without any need of installing any extra software or mobile app.Authors@neetishsinghHow to runBest part of Sharevia is you just need two lines of code to initiate it.1.To install sharevia python package.pipinstallsharevia2.Now start the apppython-mshareviaNote: The only requirement to take benifit of this sharing framework in that you need to have python installed in any of the device atleast.DemoOnce the server will be on you will see similar portal onhttp://127.0.0.1/a/To Access files over any other device connected over same network we need to scan this qr from the device or in browser openhttp://ip_adr_of_parent_device:8000/a/Once you will enter the auth code you will get the files easily over responsive websiteThere is a lot more coming whose screenshot will be added soonFeatures to be added in next versionFile/Folder Share permissionLive previewsMovie/Video StreamingMusic Playlist & StreamingIP LoggingUI ImprovementAdmin Level CustomizationsContributingContributions are always welcome!Lets connect and discuss your ideas and scope of improvementPlease adhere to this project'scode of conduct.SupportFor support, emailneetishsingh97@gmail.comor call me at +91-9643046366.
Package: sharez
sharezsharez allows to share directories to your local network from your terminal.This is basically a copy ofparvardegr/sharing, but written in Python. Also, it's less advanced. I kept it as simple as possible.InstallationpipinstallsharezUsagesharez<directory_path>Usesharez -hfor more details.LicenseDistributed under the MIT License. See LICENSE for more information.
Package: sharing
SharingA library to share variables and configurations between modules of a same
project and managing their effects.GoalWhen working on a big project composed of multiple packages, you sometime needs
to access to common variables and configurations from your different packages.This library objectives are :To create ashared in memory variables repositoryusable between your packages. No database, network or disk access required.Allowinghooksregistration to trigger function on shared variable update.
The variable update from library A can have a direct impact on the library B and
the hook allow to automatically trigger a registered function in B when the update occurred in A.InstallRecommended installInstall usingpipfrom pypi.orgpipinstallsharingInstall from sourcesClone the repository and install:gitclonehttp://gitlab.guirimand.eu/tguirimand/sharing.gitcdsharing
pipinstall-e.Using the libraryThe package contains 3 variables grouper:sh.shared: to share generic variablessh.config: to share specific variables used in configurationsh.counters: to share counters (integers only)Sharing a variable between two packages :From package A:importsharingasshmy_variable=12345sh.shared.set('variable tag',my_variable)# Creating the shared variableFrom package B:importsharingasshmy_variable=sh.shared.get('variable tag')# None if it doesn't existssh.shared.set('variable tag',my_variable+1)# Updating the shared variableCreating a hookA hook can be created using a decorator. To run the functionfuevery time the
shared variable using the"bar"tag is updated:@sh.shared.updatable(key="bar")deffu():ifsh.shared.get('bar')==3:print("bar has now the value 3")else:print("bar has been updated")
Package: sharingan
SharinganWe will try to find your visible basic footprint from social media as much as possible中文版:Readme_cnEnvironmentalFirst, ensure that you have installed thepython3.8+, and then run the following commands.gitclonehttps://github.com/aoii103/Sharingan.gitcdsharingan

python3setup.pyinstallor via pippipinstallsharinganUsagepython3-msharinganblueAdd New TargetsI have considered usingJSONas the site's configuration file, but later wrote it inextract.pyAnd what we need to do is add the following method under classExtractor, where thedef uploadmethod stores the basic configuration of the corresponding siteFor optional configurations, seemodels.py@staticmethoddef__example()->Generator:"""1. <-- yield your config first2. --> then got your datas back3. <-- finally, yield the extracted data back"""T=yield fromupload(**{"url":"http://xxxx",})T.name=T.html.pq('title').text()...yieldTSingel TestSometimes we need to test for a new siteAnd we can use the following code . for example, when the target istwitterpython3-msharinganlarry--singel=twitterCreate sites from sherlockrun the following command firstpython3-msharingan.commonand it will create a python file namedtemplates.py@staticmethoddefsite_2Dimensions():T=yield fromupload(url='''https://2Dimensions.com/a/{}''',)T.title=T.html.pq('title').text()yieldT@staticmethoddefsite_3dnews():T=yield fromupload(url='''http://forum.3dnews.ru/member.php?username={}''',error_type='text',error_msg='''Пользователь не зарегистрирован и не имеет профиля для просмотра.''',)T.title=T.html.pq('title').text()yieldT...then replace them intoextract.pyOptionsUsage: __main__.py [OPTIONS] NAME

Options:
  --name TEXT        The username you need to search
  --proxy_uri TEXT   Proxy address in case of need to use a proxy to be used
  --no_proxy         All connections will be directly connected
  --save_path TEXT   The storage location of the collected results
  --pass_history     The file name will be named according to the scan endtime
  --singel TEXT      Commonly used for single target information acquisition or testing
  --debug            Debug model
  --update           Do not overwrite the original data results
  --workers INTEGER  Number of concurrent workers
  --help             Show this message and exit.TODOFormatted output📝 LicenseThis project isMITlicensed.If you think this script is useful to you, don't forget star 🐶. Inspired by ❤️sherlock
Package: sharkpoint
SharkPointA small library for interacting with SharePoint document libaries (and hopefully more!)Usageimport sharkpoint
import azure.identity

ident = azure.identity.AzureDefaultCredential()
sharepoint_instance = sharkpoint.Sharepoint("contoso.sharepoint.com", ident)

site = sharkpoint.get_site("spam")
site.listdir("Shared Documents/")

file = site.open("Shared Documents/eggs.txt")
file.write("foo")
file.close()Why SharkPoint?I couldn't think of anything else
Package: sharkreduce
SharkReduce ðŸ¦ˆðŸ”»Utility to convert wireshark captures to useful datasets.InstallationpipinstallsharkreduceSteps to create reduced datasetStep 1: Export capture using tsharktshark-te-Ndmnt-rall.pcapng-Tfields\-eframe.time\-eeth.src_resolved\-eeth.dst_resolved\-e_ws.col.Source\-e_ws.col.Destination\-e_ws.col.Protocol\-etcp.len\-eudp.length\-etcp.srcport\-etcp.dstport\-eudp.srcport\-eudp.dstport\-e_ws.col.Time'(eth.type == 0x800) or (eth.type == 0x86dd)'>reduceme.tsvStep 2: Fill device id fileSharkreduce requires a device mac-address map file to create pretty reduced output.Run it once to pre-fill the file with all mac IDs from your capture:python3-msharkreduce-t60000000-ndevices.yamlreduceme.tsvreduced.tsvNote:-t 60000000means that SharkReduce will create reduced bins of
connections up to 60 seconds.Note:The command will initially create an emptyreduced.tsv!The command will create a file calleddevices.yamlwhich looks like this:devices:[]ignore:{}unclassified:some-mac-adress:-dns-name-ip-adress-etc.For each unclassified mac address, you will see some aliases (IP/Hostname)
which helps you to determine which device the MAC belongs to.If the MAC belongs to a device you want to analyse, think of a good name
and create an entry underdevices. Otherwise create an entry underignored.
Do this for all unclassified MACs:devices:SuspiciousDevice:-some-mac-address-some-hostnameOtherInterestingDevice:-other-macignore:-router-mac-address-broadcast addressStep 3: Create initial reduced output.Re-runpython3-msharkreduce-t60000000-ndevices.yamlreduceme.tsvreduced.tsvThis timereduced.tsvshould have a lot of data in it, with device identifiers
that look very readable to you.Step 4: Create/fill activity fileIn order to determine activity periods for your devices to correctly
fill theactive_usecolumn in the reduced output, you have to create an
activity file. You can initialise the file like this:python3-msharkreduce--init-activity-t3600000000-ndevices.yamlreduceme.tsvreduced.tsvThis will READ fromreduced.tsvto create a file calledactivity.yaml,
where you can annotate your activity per device in ~1h intervals.Set theactivefield to True where you think you have been actively using the device.Step 5: Re-run sharkreduce with filled activity fileIf it exists, sharkreduce will use the content ofactivity.yamlto
fill theactive_usecolumn. So you just need to re-run ...python3-msharkreduce-t60000000-ndevices.yamlreduceme.tsvreduced.tsvNote:If you change thedevices.yamlyou have to re-do steps 3, 4 and 5.Step 6: Party! ðŸ¥³Your pretty reduced capture with annotated device names and activity is now
stored underreduced.tsv.
Package: sharkvalidator
Python 3 library developed by Shd at SMHI.Usage:Read any kind of data delivery within the NODC at SMHI (eg. Biological or Physical and Chemical data according to the datahost format or the SMHI LIMS-format)Validate formatWrite validation to logInstallationSHARKvalidator can be installed from PyPI with pip:pip3 install sharkvalidatorImportant:This package is not intendent to save any copies/corrections of data, only to validate its format.
Package: sharma-shruti
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile, an example of which is included in this project. You should edit this
file accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and be written usingreStructuredText. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: sharnote
A command line note taking utility developed in Python that saves notes in JSON format.Installationpip3 install sharnoteUsageFor helpsharnote --help or sharnote --hTo see notes of todaysharnote --today or --tTo see notes of a particaular datesharnote --date or --d YYYY-MM-DDTo search for a particular string in notessharnote --search or --s "Some text here"To change directory used for storing notessharnote --notesdir or --nd
Package: sharp-darwin
Sharp-DarwinPython CLI Spotify utility.Why?Why "sharp-darwin"? Why not? I have huge creativity when naming things, so I picked two incredible words to pair for your enjoyment.PurposeThis project started with a need to consolidate my Spotify playlists. I keep monthly playlists of the things I like. After three years of Spotify monthly playlist making... I have a lot of playlists. My goal was to consolidate the lists into quarterly (most recent lists), half year, and year playlists (oldest lists).Getting StartedInstall sharp-darwin from PyPi:https://pypi.org/project/sharp-darwin/pip install sharp-darwinNext, you'll need to set up your own Spotify app:https://developer.spotify.com/my-applicationsCreate a new app, or reuse an existing. If creating a new app, provide at least the required fields.. whatever you want. After creation, clickEdit Settings. In theRedirect URIsfield, simply enterhttps://localhost.On the main app page, you'll need to fetch theClient IDandClient Secret.Set up envionmental vars as indicated in the below section.Run the app!sharp-darwin --help.Environmental VariablesSharp-Darwin can import configuration from envionmental variables or from a .env file. If you choose to use a .env file, you can specifiy the location of the file on the command linesharp-darwin --env /path/to/my/dot/env.VariablesMost items should be self-explanatory. Here's a few which are not:SPOTIPY_REDIRECT_URI: set this tohttps://localhostto locallly fetch an OAuth token. If you know what you're doing, you know how to set this. Otherwise.. stick to the suggested.SHARP_DARWIN_CRED_CACHE: this is the location of the Spotipy OAuth credential cache. It will default to the current working directoy if not set.Example.envfile:SPOTIPY_USERNAME=you_spotify_username
SPOTIPY_CLIENT_ID=your_spotify_client_id
SPOTIPY_CLIENT_SECRET=your_spotify_client_secret
SPOTIPY_REDIRECT_URI=https://localhost
SHARP_DARWIN_CRED_CACHE=/path/to/cred/cache
Package: sharpei
SharpeiPython watchdog to sync file changes to AWS S3Requires Python 3.6+UsageSharpei can be run from the CLI or Docker.CLIInstall fromPyPIpipinstallsharpeiTo run:# Monitor the current directory and send all files>sharpei.s3://bucket/key-prefix/Usesharpei --helpto discover additional optionsDockerYou will need to mount a directory to the Docker image as/data.>dockerrun--mounttype=bind,source=YOUR_DIRECTORY,target=/datasharpeis3://bucket/key-prefixFor example, given a folder structure:working-dir
│   README.md
|
└───target-folder
        file011.txt
        file012.txtTo monitor file changes intarget-folder, run:>dockerrun--mounttype=bind,source="$(pwd)"/target-folder,target=/datapolymathian/sharpeis3://my-bucket/my-prefix
Package: sharpen-commander
FeaturesCan move to the project foldergit command helperfetch, merge, status for multiple projectCUI for git add/reset, commitCUI for git push from commit messageCUI for findCUI for grepAdvantageThe convenient CUI interface based on urwid(CUI)Can manage multiple git repositories convenientlyCan do commit with seeing modification for commit msg under CUICan push conveniently with commit messageHow to installEnvironment setup** if you have installed pip3 and virtualenv already, skip it.$ sudo apt install python3 python3-pip git
$ sudo pip3 install virtualenvInstall$ curl -Lhttps://github.com/inertry/synapbookCommander/raw/stable/install.sh| bash -or if you clone the repository already,
$ echo ". $(pwd)/bash-script.sh" >> ~/.bashrcHow to useType 'dc'main uij/k- move focusu- move upper folderh/enter- enter the folderE- edit the filen- Mark current item as trivialm- Mark current item as importantf- filtering current folder itemss- running shell command with $ for current selected file name/- command modereg - Register current folderfind/ff - Running find command with CUI result
ex> ff **.pygrep/gg - Running grep command with CUI result
ex> gg MetricR- Register/unregister this selected folderL- Show the list of repository foldersC- Show commit dialog for current repoworkspaceAlt+Right/Left- Add or remove the folder in WorkspaceAlt+Up/Dowm- Move workspace between folder listCommit helper(C key)A- git add current fileP- prompty for git add -p commandR- reset current staged fileD- drop modification[/]- move next/previous fileJ/K- scroll down/up - you can use arrow key tooC- popup commit dialogF4/Q- quit the programon commit dialog,** you can see all staged modification for input commit messageup/down - scroll current file's contentf9/f10 - prev/next file to see modification** then input commit message and then enter to do commitRegister folder list(L key)P- pull --rebase all repoEnter- move to the selected repoCommandline commends$ dcf -name "**.py"$ dcg "printf"update all project repositories$ dc update** all projects that regsitered as repo are updated(git fetch + rebase to remote tracking branch + print status)**updatecommand is comprised ofdc fetch+dc merge+dc st(status)print all project's status$ dc st** you can combinate several command as follows,$ dc fetch st** you can print current folder or certain repo's status as well$ dc update .$ dc update plusgit CUI helper for add/reset, commit$ dc ci** you can use the following keysgit push** you can conveniently push commits just specify target branch name** push command always check tracking branch firstly than ask you to rebase onto.$ dc push** just type target branch you want to push to
Package: sharpener
SHARPenerThis is a set of tools that have been developed in preparation of the HI absorption surveys of the SKA precursors and pathfinders.sharpeneridentifies the position of all continuum sources in a continuum image and extracts a spectrum against all their lines of sight. The spectra are then plotted. Multiple options can be provided by the user, such has hanning smoothing and polynomial fitting and subtraction of the spectra, and plotting the spectra in different units (km/s, Hz, Jy beam$^{-1}$, $\tau$). Further information are given in the next sections.sharpenercan be run automatically using a.ymlparameter fileasrun_sharpener -c <parameter_file.yml>, or through aIPythonnotebook.To generate config withrun_sharpener -gd <parameter_file.yml>and for helprun_sharpener -h.The followingtutorialscan guide you through the different capabilities ofsharpener.InstallationRequisitesSHARPenermakes use of the most commonpythonpackages (e.g.numpy,scipy,astropy,astroquery,prettytable) and addition tompdafandpypdf2.The parameter file is inyamlformat, hencepyaml, andjsonpackages should be installed.Tutorials make use oftabulateandglobfor fancy outputs.SHARPenersource finder calls the functionimsadof Miriad. Miriad must be installed for the source finder to work properly. No python wrapper is needed, since it is already included inSHARPener.Insallation instructionsThis package is available onpypi, allowing:pip install sharpenerAlternatively, clone this repository. From terminal type:git clone https://github.com/Fil8/SHARPener.gitThen change directory into SHARPener and install:cd SHARPener && pip install .©Filippo M. Maccagni 2018-2019
Package: sharpify
SharpifySharpify turns the attribute routing of the Flask framework, into the Conventional routing of Asp.NetVersions:0.1.3: Updated README.mdDISCLAIMER:I don't know whether or not this works in a production environment, since i am only using this for school projects, to make my development easier. I have no experience with blueprints, so i don't know if this package is making scaleablity any better, and there is probably alot of edgecases that is not being handled.SETUPAfter installing the package, you need a folder structure like this:Projectfolderapp foldercontrollers folderImportanttemplates folderImportantvenvetc..In the controllers folder, you make one .py file per controller. Ex: ExampleController.pyWithin this pythone file, you make ONE class, with the same name as the file: Ex: class ExampleController():Make sure to import the "View" class, the "httpGet" & "httpPost" decorators (only ones supported right now, but can easily be modified by yourselves)You can then define an action / method to handle a endpoint@httpGetdef Index(id:int=None):name = "Peter";return View(name=name);this will create the following endpoints:url/Example/Index/url/Example/Index/int:idIt takes the name of the class and strips the "Controller" part, leaving "Example", and then it takes the function name "Index", and then it looks for any parameters and whether or not this parameter is optional.
Since python does not have function overloading like C#, you have to handle both the case of the user setting the arguement, and the user leaving it empty.Returning the correct view / templatereturn View(**kwargs), when this object is created, it will look at the class name its created in, aswell as the function name. It will then look in your templates folder to find the correct .html file, and return it to the browser.templatesexampleindex.htmlAny object you pass down to the frontend, can be accessed normally with Jinja2.Enabling the routing behaviourIn your application init.py, after creating your Flask app object, import and call the "sharpify.use_mvc" function, pass in the app object, and the name of the controller and function you want your webapplication to default to. This will result in "/" pointing to that function.Using custom attributes for hrefs and form actionsafter "use_mvc" is called, you can call "use_htmlAttributes(pathToJsFolder);", this copies a javascript file into your folder, that can be used in any html file.
In any anchor element or form element, you can simply write data-controller="Example" data-action="Index" and it will convert it at runtime, to the correct path.
Package: sharrow
sharrownumba for ActivitySim-style spec filesBuilding a WheelTo build a wheel for sharrow, you need to havebuildinstalled. You can
install it withpython -m pip install build.Then run the builder:python-mbuild.Building the documentationBuilding the documentation for sharrow requires JupyterBook.jupyterbookbuilddocsDeveloper NoteThis repository's continuous integration testing will useruffto check code
quality.  There is a pre-commit hook that will runruffon all staged files
to ensure that they pass the quality checks.  To install and use this hook,
run the following commands:python-mpipinstallpre-commit# if neededpre-commitinstallThen, when you try to make a commit, your code will be checked locally to ensure
that your code passes the quality checks.  If you want to run the checks manually,
you can do so with the following command:pre-commitrun--all-filesIf you don't usepre-commit, a service will run the checks for you when you
open a pull request, and make fixes to your code when possible.
Package: sha-rs
SHA-pyUsing SHA-3 and Keccak cryptographic algorithms based on Rust cratesha3For fun. To be improvedInstallationpipinstallsha_rsUsagefromsha_rsimportsha3_224,sha3_256,sha3_384,sha3_512fromsha_rsimportkeccak_224,keccak_256,keccak_384,keccak_512# Keccakassertkeccak_224(b"hello")=="45524ec454bcc7d4b8f74350c4a4e62809fcb49bc29df62e61b69fa4"assertkeccak_256(b"hello")=="1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"assertkeccak_384(b"hello")=="dcef6fb7908fd52ba26aaba75121526abbf1217f1c0a31024652d134d3e32fb4cd8e9c703b8f43e7277b59a5cd402175"assertkeccak_512(b"hello")=="52fa80662e64c128f8389c9ea6c73d4c02368004bf4463491900d11aaadca39d47de1b01361f207c512cfa79f0f92c3395c67ff7928e3f5ce3e3c852b392f976"# Sha3assertsha3_224(b"hello")=="b87f88c72702fff1748e58b87e9141a42c0dbedc29a78cb0d4a5cd81"assertsha3_256(b"hello")=="3338be694f50c5f338814986cdf0686453a888b84f424d792af4b9202398f392"assertsha3_384(b"hello")=="720aea11019ef06440fbf05d87aa24680a2153df3907b23631e7177ce620fa1330ff07c0fddee54699a4c3ee0ee9d887"assertsha3_512(b"hello")=="75d527c368f2efe848ecf6b073a36767800805e9eef2b1857d5f984f036eb6df891d75f72d9b154518c1cd58835286d1da9a38deba3de98b5a53e5ed78a84976"
Package: shashvault
Vault searchThis script provides the functionality to search secret paths that match a string (case insensitive) and also display k/v when specifying a path.DependanciesRequirementspip install requests aiohttpInstallpip install shashvaultUpgradepip install shashvault --upgradeEnvironmental variablesVAULT_ADDRVAULT_TOKENVAULT_KV_PATHVAULT_SKIP_VERIFYFor example:cat ~/.vaultenv
export VAULT_ADDR=https://hashicorp-vault.local.com:8200
export VAULT_SKIP_VERIFY=1
export VAULT_TOKEN=eqw.f8-example-token-2hinwin
export VAULT_KV_PATH=secretUsageusage: shashvault [-h] [-sp SEARCH_PATH] [-ss SECRET_PATH]

Search and display secrets in HashiCorp Vault

optional arguments:
  -h, --help            show this help message and exit
  -sp SEARCH_PATH, --search-path SEARCH_PATH
                        Text to search paths
  -ss SECRET_PATH, --search-secret SECRET_PATH
                        Path to a specific secretLicenseBSD 2-Clause License
Package: shasta
shastaA python library with shell AST definitions for thelibdashAST. It can be used to develop shell AST analyses and transfomations. All AST nodes support apretty()method that extracts them as a shell script, and the library offers ajson_to_astmodule that creates an AST object from a JSON object.It was originally part ofPaShbut was separated to allow others to build on it.