Saravanan666/pypi-org huggingface dataset:
Package: seatfinder
Seatfinder Python API (inofficial)Easy access tohttps://seatfinder.dedata.
Caches data in the background, nothing will be downloaded twice.Installationpip install seatfinderUsagefrom seatfinder import Seatfinder
seatfinder = Seatfinder('Kassel') # optional parameter data_dir. Default ~/.seatfinder/data
seatfinder.seat_estimate['2018-09-29']

# Slicing is also possible
data = seatfinder.manual_count['2018-09-01':'2018-10-30']

# `data` is a dict, access locations via key
data['LeoEG']

# More information about the location
seatfinder.locations['LeoEG']

# Convert to pandas dataframe
df = data.to_dataframe()
Package: seating
seatingSort the order of class functions, properties, and member variables.InstallationInstall with:pip install seatingSorting and PriorityClass variables declared in class body outside of a functionDunder methodsFunctions decorated withpropertyor corresponding.setterand.deletermethodsClass functionsEach of these groups will be sorted alphabetically with respect to themselves.The only exception is for dunder methods.They will be sorted alphabetically except that__init__will be first.If you have class contents that are grouped a certain way and you want the groups individually sorted
so that the grouping is maintained, you can use# Seatto demarcate the groups.i.e. if the source is:class MyClass():
    {arbitrary lines of code}
    # Seat
    {more arbitrary code}
    # Seat
    {yet more code}then the three sets of code in brackets will be sorted independently from one another.UsageCLI>seat -h
usage: seat [-h] [--start START] [--stop STOP] [-nb] [-o OUTPUT] [-d] file

positional arguments:
  file                  The file to format.

options:
  -h, --help            show this help message and exit
  --start START         Optional line number to start formatting at.
  --stop STOP           Optional line number to stop formatting at.
  -nb, --noblack        Don't format file with Black after sorting.
  -o OUTPUT, --output OUTPUT
                        Write changes to this file, otherwise changes are written back to the original file.
  -d, --dump            Dump ast tree to file instead of doing anything else. For debugging purposes.Programmaticallyfrom seating import seat
from pathier import Pathier

file = Pathier("somefile.py")
source = file.read_text()
source = seat(source)
file.write_text(source)
Package: seatre
seatreA collection of scripts that implement different network attacks.For informational purposes only.Any contributor to this project doesn't take any responsibility for illegal usage of any script from this project.See the article about how to use ithere.Installation and UsageThe tested environment:Python v3.10Ubuntu 22.04 LTSMake sure thatpython3-scapyis installed on your system:sudo apt-get install python3-scapyYou can either runapp.pyfrom a checkout of the code, or install it like any other python project. Keep in mind that a lot of scripts here can be executed only with the root privileges, so you need to run it with sudo.$sudopip3installseatre
$sudoseatre
usage:seatre[-h][--debug]{attack}...To enter the debug mode, use the--debugoption after theseatrecommand.To get the attack description in the terminal, enterseatre <attack> --descImplemented AttacksThe following commands include the--debugoption, which is not required to execute an attack.ARP SpoofingExample usage:$sudoseatre--debugarpspoof-iwlp2s0-maa:aa:aa:aa:aa:aa-gmBB-BB-BB-BB-BB-BB-gip192.168.0.1-vmcc:cc:cc:cc:cc:cc-vip192.168.0.108where:wlp2s0— your network interfaceaa:aa:aa:aa:aa:aa— the interface MAC-address (can be written asAA:AA:AA:AA:AA:AA,AA-AA-AA-AA-AA-AAandaa-aa-aa-aa-aa-aa)bb:bb:bb:bb:bb:bb— the gateway's MAC-address192.168.0.1— the gateway's IP-addresscc:cc:cc:cc:cc:cc— the victim's MAC-address192.168.0.108— the victim's IP-addressRunsudo seatre arpspoof --helpto get more information.SYN FloodExample usage:$sudoseatre--debugsynflood-d172.17.17.10-p443-c1000where:172.17.17.10— server's IP-address443— server's port1000— the number of packets to be sentRunsudo seatre synflood --helpto get more information.UDP FloodExample usage:$sudoseatre--debugudpflood-d172.17.17.10-p53-c1000where:172.17.17.10— server's IP-address53— server's port1000— the number of packets to be sentRunsudo seatre udpflood --helpto get more information.MAC FloodExample usage:$sudoseatre--debugmacflood-iwlp2s0-vm"aa:aa:aa:aa:aa:aa"-c100000where:wlp2s0— your network interfaceaa:aa:aa:aa:aa:aa— the victim's MAC-address (can be written asAA:AA:AA:AA:AA:AA,AA-AA-AA-AA-AA-AAandaa-aa-aa-aa-aa-aa)100000— the number of packets to be sentRunsudo seatre macflood --helpto get more information.BPDU SpoofingExample usage:sudoseatre--debugstpspoof-iwlp2s0-smac"aa:aa:aa:aa:aa:aa"-dmac"bb:bb:bb:bb:bb:bb"-p4096wlp2s0— your network interfaceaa:aa:aa:aa:aa:aa— your MAC-addressbb:bb:bb:bb:bb:bb— victim switch's MAC-address4096— priority for choosing the root switch (the lower the number, the higher the priority, so make sure it's low enough to become the root). Must be divisible by 4096
Package: seattle-food-truck
seattle-food-truckA Python 3.6+ library for discovering Seattle Food Truck schedulesInstallation·Tutorial·Command Line Utility·ContributingInstallation❯pipinstallseattle-food-truckTutorialTheClientallows you to discover convenient or nearby locations where food trucks are scheduled to visit! After finding a suitableLocationwe can query it for a schedule of trucks.fromseattle_food_truckimportClientsft=Client()You can discover locations through listing them all. All locations are memoized once they are discovered to speedup all future queries.print(f'There are{len(sft.locations)}locations.\n')print(sft.locations)There are 675 locations.

[
  Location(name="Metropolitan Park", address="1100 Olive Way, Seattle, WA, United States", uid=283),
  Location(name="10020 Southeast 256th Street, Kent, WA, USA", address="10020 Southeast 256th Street, Kent, WA, USA", uid=633),
  Location(name="1020 Central Avenue North, Kent, WA, USA", address="1020 Central Avenue North, Kent, WA, USA", uid=866),
  Location(name="10256 16th Avenue Southwest, Seattle, WA, USA", address="10256 16th Avenue Southwest, Seattle, WA, USA", uid=864),
  Location(name="103 110th Ave NE, Bellevue, WA, USA", address="103 110th Ave NE, Bellevue, WA, USA", uid=553),
  Location(name="104 Washington Avenue South, Orting, WA, USA", address="104 Washington Avenue South, Orting, WA, USA", uid=806),
  Location(name="10416 193rd Street Court East, Graham, WA, USA", address="10416 193rd Street Court East, Graham, WA, USA", uid=807),
  ...
]It would be easier if we could sort the list of locations by their proximity to my home or job site!
TheClientprovides two functions for this purpose.The first discovers all locations ranked by their direct distance away.address='3131 Elliott Ave Seattle WA 98121'fordistance,locationinsft.locations_closest_to(address):print(f'{distance:0.2f}miles away:{location.name}')print('\t'+location.address)0.11 miles away: PI Building
    101 Elliott Ave W, Seattle, WA, United States
0.27 miles away: Olympic Sculpture Park
    2901 Western Avenue, Seattle, WA, United States
0.43 miles away: F5 Networks
    401 Elliott Ave W, Seattle, WA 98119, United States
0.66 miles away: Memorial Stadium
    401 5th Avenue North, Seattle, WA, United States
...The second simply returns the location nearest to me.location=sft.nearest_location_to(address)fortruckinlocation.trucks_today():print(truck)Truck("NOSH", style="Seafood")
Truck("Raney Brothers BBQ", style="BBQ")Command Line UtilityA primitive CLI tool is installed with this library.$sft
Usage:sft[OPTIONS]COMMAND[ARGS]...TooltogetyouthefoodtrucksschedulednearyouinSeattle.

Options:--helpShowthismessageandexit.

Commands:locationsPrintthelocationswithfoodtruckbookings.trucks-todayPrintthetruckbookingstoday.trucks-tomorrowPrintthetruckbookingstomorrow❯sfttrucks-tomorrow--location-uid69Truck("Sam Choy's Poke To The Max",style="Hawaiian")Truck("Bumbu Truck",style="Asian")ContributingPull requests, feature requests, and issues welcome!This library uses the undocumented API atwww.seattlefoodtruck.com
Package: seavatar
SeavatarSeavatar is a python library which generates beach-MLH themed avatarsInstallationUse the package managerpipto install SeavatarpipinstallseavatarUsageimportseavatarsvgtext=seavatar.generate_seavatar("GitHub","github.svg")#The first argument is the string which needs to be#converted to an avatar ,the second argument is the filename#where the file should be stored, by default the filename is#seavatar.svgprint(svgtext)
Package: seaviz
# SeavizCli to test some stuff from the [seaborn tutorial][seaborn_tut].
Some of the functions are more developed than others atm…## InstallationIn you favourite environment:` git clonehttps://github.com/moonso/seavizcd seaviz python setup.py install `## Run` seaviz--help`[seaborn_tut]:https://seaborn.pydata.org/tutorial.html
Package: seavoice-sdk-test
SeaVoice SDK V2Please contactinfo@seasalt.aiif you have any questions.Speech-to-Text Example:PrerequisitesYou will need a SeaVoice speech service account to run this example. Please contactinfo@seasalt.aiand apply for it.Install and importTo install SeaVoice SDK:pip install seavoice-sdk-testTo import SeaVoice SDK:from seavoice_sdk as SpeechRecognizerRecognitionIn the example below, we show how to recognize speech from an audio file. You can also apply recognition to an audio stream.Change Log[2.2.0] Seavoice sdk 2024-02-16Newaddaudio_format.
Package: seawater
This is a Python re-write of the CSIRO seawater toolbox
(SEAWATER-3.3)
for calculating the properties of sea water. The package uses the
formulas from Unesco’s joint panel on oceanographic tables and
standards, UNESCO 1981 and UNESCO 1983 (EOS-80).The EOS-80 library is considered now obsolete; it is provided here for
compatibility with old scripts, and to allow a smooth transition to the
newTEOS-10.WarningThe Python version default output unit for sw.dist is ‘km’ instead of
‘nm’.Here we assume pressure as the first dimension, i.e. M pressure by N
positions (See the table below).  The MatlabTM version does some guessing
at this that we simply ignore to avoid confusions.PST1034.548728.78565034.727528.432912534.860522.810325034.681010.260060034.56806.8863100034.56004.4036The current version was tested against the MatlabTM seawater v3.3 reproducing
all functions and results from that release.More information athttp://pythonhosted.org/seawaterChangelogVersion 3.3.3Unified code base for python 2 and 3, we no longer use 2to3 to convert.Version 3.3.2Fixed py3k bug that prevent installation.Version 3.3.1Bothgpanandbfrqaccepts 3D arrays now.Fixed inconsistency in use of ITS-90 and increased convergence precision from 1e-4 to 1e-10 forcndr. Note: Not sure if this fix is needed.  However, it is in the original version!Version 3.2Corrected sign of potential vorticity inbfrq.Version 3.1Addedswvelto compute surface wave velocity.Version 3.0Converted code so that temperature is now ITS-90 throughout.Version 2.0.2Coding changes to enable functions to return the same shape vector as the input arguments.  In previous releases, some functions returned column vectors for row vector input.  Also some other tidying up.Version 2.0.1New routinesatAr.  Solubility of Ar in seawater.New routinesatN2.  Solubility of N2 in seawater.New routinesatO2.  Solubility of O2 in seawater.Updatedtestto include tests for above.Version 1.2eFixed bug inalphawhere temp used in calculations regardless of the keyword.Version 1.2dbfrqnow also returns potential vorticity.  Thanks to Greg Johnson (gjohnson@pmel.noaa.gov).OMEGA=7.29e-5 was changed to OMEGA=7.292e-5 ingvelto be consistent withf.Important API change: The usage ofalpha,betaandaonbroutines has changed!  All these routines expect (S,T,P) to be passed instead of (S,PTMP,P) as in previous releases of seawater.  Fast execution can still be obtained by passing ptmp=True.Version 1.2cFixed a bug inbfrqwhere empty LAT was needed as argument when no latitude values are being passed.Now pass PRESSURE instead of DEPTH, more consistent though only a negligible change is answers.Version 1.2bFirst official release and announcement on the networks.
Package: seawave-retracking
Model of the spectrum of surface wavesInstallation and usageThe installation itself is done by the pip package manager:pip install seawave-retracking.After that, copy the fileconfig.tomlfrom the repository into the current working directory and the program is ready to use.
Basic usage can be found in the examples folder.References[1]Ryabkova M. Karaev V. , Guo J. , Titchenko Yu.
A Review of Wave Spectrum Models as Applied to the Problem of Radar Probing of the Sea Surface,
Journal of Geophysical Research: Oceans, 2019, pp. 7104–7134.[2]Panfilova M.A,  Karaev V.Yu.
Evaluation of the boundary wave number for the two-scale model of backscatter of microwaves in Ka- and Ku-band by the sea surface using the Dual-frequency Precipitation Radar data, 2016,  Beijing, China.
Package: seawave-spectrum
Model of the spectrum of surface wavesInstallation and usageThe installation itself is done by the pip package manager:pip install seawave-spectrum.After that, copy the fileconfig.tomlfrom the repository into the current working directory and the program is ready to use.
Basic usage can be found in the examples folder.References[1]Ryabkova M. Karaev V. , Guo J. , Titchenko Yu.
A Review of Wave Spectrum Models as Applied to the Problem of Radar Probing of the Sea Surface,
Journal of Geophysical Research: Oceans, 2019, pp. 7104–7134.[2]Panfilova M.A,  Karaev V.Yu.
Evaluation of the boundary wave number for the two-scale model of backscatter of microwaves in Ka- and Ku-band by the sea surface using the Dual-frequency Precipitation Radar data, 2016,  Beijing, China.
Package: seaworthy
Seaworthy is a test harness for Docker container images. It allows you to use
Docker containers and other Docker resources as fixtures for tests written in
Python.Seaworthy supports Python 3.4 and newer. You can find more information in thedocumentation.Ademo repositoryis available with a set of Seaworthy tests for a
simple Django application. Seaworthy is also introduced in ourblog poston
continuous integration with Docker on Travis CI.For more background on the design and purpose of Seaworthy, see ourPyConZA 2018 talk(slides).Quick demoFirst install Seaworthy along with pytest using pip:pip install seaworthy[pytest]Write some tests in a file, for example,test_echo_container.py:fromseaworthy.definitionsimportContainerDefinitioncontainer=ContainerDefinition('echo','jmalloc/echo-server',wait_patterns=[r'Echo server listening on port 8080'],create_kwargs={'ports':{'8080':None}})fixture=container.pytest_fixture('echo_container')deftest_echo(echo_container):r=echo_container.http_client().get('/foo')assertr.status_code==200assert'HTTP/1.1 GET /foo'inr.textRun pytest:pytest -v test_echo_container.pyProject statusSeaworthy should be considered alpha-level software. It is well-tested and
works well for the first few things we have used it for, but we would like to
use it for more of our Docker projects, which may require some parts of
Seaworthy to evolve further. See theproject issuesfor known
issues/shortcomings.The project was originally split out of the tests we wrote for ourdocker-django-bootstrapproject. There are examples of Seaworthy in use
there.
Package: seb
Scandinavian Embedding BenchmarkA benchmark for evaluating sentence/document embeddings of Scandinavian language models.InstallationYou can install the Scandinavian Embedding Benchmark (seb) viapipfromPyPI:pipinstallsebTo see more examples, see thedocumentation.📖 DocumentationDocumentation🔧InstallationInstallation instructions on how to install this package👩‍💻UsageIntroduction on how to use the package📖DocumentationA minimal and developing documentation💬 Where to ask questionsType🚨Bug ReportsGitHub Issue Tracker🎁Feature Requests & IdeasGitHub Issue Tracker👩‍💻Usage QuestionsGitHub Discussions🗯General DiscussionGitHub Discussions
Package: sebae
sebaeA simple tool for generating Python C/C++ extension boilerplate code.Note the boilerplate code generated by sebae is self-contained.
The only necessary dependency is Python itself.UsageInstallationpipinstallsebaeCreate boilerplate projectInitialize a boilerplate project>sebaeinit[optionalprojectdirectory]Selectinitschema:1.pybind11
selection([q]uit):
>1Packagename:
>test_pkg
Author:
>actcwlf
Authoremail:
>abc@def.com
Initializingpybind11schemaprojecttest_pkg
Finish!If no project directory is specified, sebae will usepybind11_projectas default project directory.Install C++ extensioncdpybind11_project
pipinstall.Use the extension in pythonTo avoid name conflict, make sure you are not in project directorycd..
pythonIn python cmdPython3.7....
>>>importtest_pkg
>>>test_pkg.add(1,2)3.0
Package: se-best-practices-ml-perspective
Software Engineering Best Practices, a Machine Learners PerspectiveThis repository is meant to serve as an opinionated, pedagogical guide on software engineering best practices for those of us in machine learning.What is this guide NOT?It isNOTa comprehensive overview of best practices in software engineering. It is a highly opinionated sampling of tools and ideas that are important for writing good code in a machine learning project. This includes linting, formatting and testing.Who is this guide for?Machine learners who are not currently following software engineering best practices in their projects but would like to.What is machine learning specific about this guide?In truth, nothing important. We use Python as the language of choice as it is popular in machine learning, and we write some machine learning specific tests. Otherwise, this guide could apply to (almost) any python project.What tools will this guide cover?Poetry, for managing virtual environments and package dependencies.flake8, for linting.black, for formatting.pytest, for testing.GitHub Actions, for continous integration / continous development (CI/CD).Follow along with the guide here:https://johngiorgi.github.io/se_best_practices_ml_perspective/.
Package: sebflow
Airflowis awesomeBut it’s confusing.So many logsHow do I run anything?Did I just run something?I think I just ran something…Really, too many logsAnd bulky.You have to launch a webserver and a scheduler to run a dag.And it doesn’t work on Windows…Sebflowis a stripped-down Airflow implementation that runs locally on both Windows and Linux, only uses PythonOperators, and allows you to use your computer’s scheduling programs to run a dag.SebFlow is ripped almost entirely from the Incubator-Airflow project: a team of incredible programmers. I have learned so much from their code.import time

from sebflow.models import DAG
from sebflow.operators.python_operator import PythonOperator
from sebflow.exceptions import SebOnPurposeError


 def sleep1():
     time.sleep(1)


def sleep5(*args, **kwargs):
    time.sleep(5)


def fail_on_purpose(arg1, arg2):
    raise SebOnPurposeError()


dag = DAG(
    'test',
    schedule_interval='@daily',

)

t1 = PythonOperator(
    task_id='task1',
    dag=dag,
    python_callable=sleep1)

t2 = PythonOperator(
    task_id='task12',
    dag=dag,
    python_callable=fail_on_purpose,
    op_args=['asdf', 'asdfasdf']
)

t3 = PythonOperator(
    task_id='task13',
    dag=dag,
    python_callable=sleep5,
    op_args=['asdf', 'asdfsdf'],
    op_kwargs={'kwarg1': 'asdfasdf', 'kwarg2': 'asdfasdf'}
)


t2.set_upstream(t1)
t3.set_upstream(t1)

if __name__ == '__main__':
    dag.run()
Package: sebs
Stateful Elastic Block Storage (sebs)Sebs was created for the situation where you need to stick a stateful application in an AutoScaling
group with a max size of 1. Sebs will make sure that if the instance is recreated that the previous
volume is reattached back to the instance regardless of which AZ the instance is recreated in.WhyA single instance ASG is good protection in the event that the instance isretired.
It can also help enable rolling upgrades and DR in the event that the AZ your instance is in goes down.Prerequisitespython3EC2 Instance Profile with access to create/delete snapshots and volumes.Example IAM Policy{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["ec2:DetachVolume","ec2:AttachVolume","ec2:DeleteVolume","ec2:DeleteSnapshot","ec2:CreateTags","ec2:CreateSnapshot","ec2:CreateVolume"],"Resource":["arn:aws:ec2:*:*:instance/*","arn:aws:ec2:*::snapshot/*","arn:aws:ec2:*:*:volume/*"]},{"Effect":"Allow","Action":["ec2:DescribeInstances","ec2:DescribeVolumes","ec2:DescribeSnapshots"],"Resource":"*"}]}InstallingSebs should be run from an EC2 instance and can be run from userdata or any CaC tool.
Sebs can be installed from pip or GitHub.From pippip install sebsFrom GitHubpython3 -m pip install git+https://github.com/DontShaveTheYak/sebs.git#egg=sebsUsagesebs
usage: sebs [-h] -b BACKUP [-n NAME] [-v] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -b BACKUP, --backup BACKUP
                        <Required> List of Devices to Backup
  -n NAME, --name NAME  <Optional> specify a your app name.
  -v, --verbose         Verbosity (-v, -vv, etc)
  --version             show program's version number and exitNote: If you are going to have more than one instance in a single region use sebs, then you need to pass in a name.sebs -b /dev/xvdz -n ${MY_APP_NAME}Here is an example userdata script#!/bin/bashexec>>(tee/var/log/user-data.log|logger-tuser-data-s2>/dev/console)2>&1echo"Running Sebs"yuminstallpython3-y
python3-mpipinstallsebs# On RHEL and Amazon Linux2 /usr/local/bin is not in the path for root user./usr/local/bin/sebs-b/dev/xvdz-nexample-appecho'Waiting on device /dev/xvdz to be available.'while[!-e/dev/xvdz];dosleep1;doneecho'Device is ready.'On first run sebs will mark the volume mounted at/dev/xvdzwith a control tag.
If the instance is re-created sebs will look for a volume with the control tag and
if found it will then mount that volume to the instance as the same device as before.ContributingPlease readCONTRIBUTING.md.VersioningWe useSemVerfor versioning. For the versions available,
see thetags on this repository.To see what has changed see theCHANGELOG.LicenseThis project is licensed under the GPLv3 License - see theLICENSEfile for details
Package: sebureem
Sebureem is a small comment server written in Python 3 with the Flask
microframework and the Peewee ORM.
Comments are storred using the SQLite database.Sebureem aim to be:Easy to integrateEasy to deploy and configureSebureem is the Kotava word for “comments” or “group of comments”.Important : Sebureem is still in very early stage. It might not be secure and
a lot of rough edges are to be expected.InstallationFirst run:pip install sebureemCreate database:sebureem database --initThen run your sebureem instance with:sebureem serve… or you can specify host and port:sebureem serve 0.0.0.0 8000UsageJust add an iframe containing the following code in your page:<iframe src="http://<server_url:port>/comments/<topic>" >
    <p>Your browser doesn't support iframes. Comments can't be loaded.</p>
</iframe>where server_url and port are the address of your instance and topic is the name
of the discussion thread you want to add to your webpage.If the thread doesn’t exist in the database it will be created with the first
comment.RoadmapPlanned features:Angular/Ember/Aurelia web_appAvatar support (Python Cat Avatar Generator ?)Instance federationAdmin pageContributionsContributions are warmly welcome. See CONTRIBUTING.rst.Sebureem development occurshereon the Framasoft’s Gitlab
instance.Others repositories (I’m thinking of Github here) are mainly for replication.LicenseSebureem is licensed both under the BSD License and the Cecill-B License.
Package: sec2time
Time Conversion PackageThis Python package provides a functionconvert_secondsthat converts a given number of seconds into hours, minutes, and seconds.InstallationTo install this package, you can use pip:pipinstallsec2timeUsageHere's how you can use the convert_seconds function:fromsec2timeimportconvert_secondstime=convert_seconds(7500)print(time)ResultOutputs: "2 hours 5 minutes"