Saravanan666/pypi-org huggingface dataset:
Package: seafile-mirror
Seafile MirrorA Python tool to handle clean read-only (re-)syncs ofSeafilelibraries with the intention to mirror them.OverviewIf you have Seafile libraries, you may want to back them up in a safe place
automatically.One option is to snapshot/backup the whole server on which the library is
stored. However, in some situations, this may not be feasible or even not
possible.This is why this repository offers a different way: you can define one or
multiple Seafile libraries that shall be downloaded to a local directory. These
libraries can belong to the same or a different user, and even on different
Seafile servers!FeaturesDownload/sync defined libraries in customisable intervalsDe-sync libaries immediately after they have been downloaded to avoid sync
errorsAllow to force-re-sync a library even if its re-sync interval hasn't reached
yetExtensive informative and error loggingCreated with automation in mind so you can run it in cronjobs or systemd
triggersDeal with the numerous caveats ofseaf-cliand Seafile in generalInstallThe tool depends on the following applications:Python 3seafile-cli, available
e.g. inDebianYou can install the latest release viapip3 install seafile-mirror.The tool is executable byseafile-mirror. The--helpflag informs you about
the required and available commands.There is also anAnsible
rolethat takes care of
installing the tool viapipx, setting up a systemd service, and running it
daily.To keep the Seafile daemon that is required forseafile-clirunning in the
background, check out thisexemplary systemd
service.ConfigurationConfiguration is done in a YAML file calledseafile_mirror.conf.yaml. You can
find an examplehere.If that configuration file resides in the same location your current working
directory, you should provide--configdir ./.Logging and cachingThe tool createsseafile_mirror.login addition to the log to the standard
output in the configuration directory. With-vyou can print DEBUG messages
that will help you in case of problems.It also caches the current status of synced libraries and their latest full
download in the file.seafile_mirror.db.json. Do not delete this file unless
you don't mind that the tool will re-sync all libraries in the next run.Contribute and DevelopmentContributions are welcome! The development is easiest withpoetry:poetry installandpoetry run seafile-mirrorwill get you started.LicenseApache-2.0, Copyright Max Mehl
Package: seaflowpy
SeaflowpyA Python package for SeaFlow flow cytometer data.Table of ContentsInstallCommand-line InterfaceConfigurationTestingInstallThis package is compatible with Python 3.10 and 3.11SourceTo install this project from a clone of the repo use poetrypoetry self add poetry-plugin-export
poetry self add "poetry-dynamic-versioning[plugin]"
poetry installPyPIpipinstallseaflowpyDockerDocker images are available from Docker Hub atctberthiaume/seaflowpy.dockerpullctberthiaume/seaflowpy
dockerrun-itctberthiaume/seaflowpyseaflowpyversionThe Docker build file is in this repo at/Dockerfile. The build process for the Docker image is detailed in/build-docker.sh.Command-line interfaceAllseaflowpyCLI tools are accessible from theseaflowpyexecutable.
Runseaflowpy --helpto begin exploring the CLI usage documentation.SFL validation workflowSFL validation sub-commands are available under theseaflowpy sflcommand.
The usage details for each command can be accessed asseaflowpy sfl <cmd> -h.The basic worfkflow should beIf starting with an SDS file, first convert to SFL withseaflowpy sds2sflIf the SFL file is output fromsds2sflor is a raw SeaFlow SFL file,
convert it to a normalized format withseaflowpy sfl print.
This command can be used to concatenate multiple SFL files,
e.g. merge all SFL files in day-of-year directories.Check for potential errors or warnings withseaflowpy sfl validate.Fix errors and warnings. Duplicate file errors can be fixed withseaflowpy sfl dedup.
Bad lat/lon errors may be fixed withseaflowpy sfl convert-gga,
assuming the bad coordinates are GGA to begin with.
This can be checked with withseaflowpy sfl detect-gga.
Other errors or missing values may need to be fixed manually.(Optional) Update event rates based on true event counts and file duration
withseaflowpy sfl fix-event-rate.
True event counts for raw EVT files can be determined withseaflowpy evt count.
If filtering has already been performed then event counts can be pulled from
theall_countcolumn of the opp table in the SQLITE3 database.
e.g.sqlite3 -separator $'\t' SCOPE_14.db 'SELECT file, all_count ORDER BY file'(Optional) As a check for dataset completeness,
the list of files in an SFL file can be compared to the actual EVT files present
withseaflowpy sfl manifest. It's normal for a few files to differ,
especially near midnight. If a large number of files are missing it may be a
sign that the data transfer was incomplete or the SFL file is missing some days.Once all errors or warnings have been fixed, do a finalseaflowpy validatebefore adding the SFL file to the appropriate repository.ConfigurationTo useseaflowpy sfl manifestAWS credentials need to be configured.
The easiest way to do this is to install theawscliPython package
and go through configuration.pip3installawscli
awsconfigureThis will store AWS configuration in~/.awswhichseaflowpywill use to
access Seaflow data in S3 storage.TestingSeaflowpy usespytestfor testing. Tests can be run from this directory aspytestto test the installed version of the package.
Package: seaflux
SeaFluxCalculation of air-sea fluxesInstallingGitHubpip install git+https://github.com/luke-gregor/SeaFlux.gitPyPipip install seafluxOverview of functionalityCalculate sea-air fluxes using the bulk formulationConvert pCO2 to fCO2 andvice versa.Correct or adjust pCO2 for temperature changesScale kw to 14C bomb values for wind products using Wanninkhof's (1992) second moment of the wind speed (requires standard deviation of the wind)Download NOAA Marine Boundary Layer xCO2 and related functions for pCO2 conversionCalculate the grid cell area (in m^2) for a grid of latitudes and longitudes - also works as an xarray method (xda.area())To Dounit errors should only happen when more than 50% of non-nan values are not valid. Otherwise, raise warning and make outputnan. Will double up withpyCO2SYS.tests! Currently there are not any meaningful tests.Add contributor file.DocumentationProject based on thecookiecutter science project template.
Package: seagal
Spatial Enrichment Analysis of Gene Association using L-indexInstallSEAGAL works for Python3.9, it is advised to create a conda environment with Python3.9 to avoid conflicts of dependencies. Conda installation guide can be found athttps://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html. After installing conda, run the following command to create aseagalenvironment:condacreate-nseagalpython=3.9Then install seagal through:condaactivateseagal
condainstall-nseagalpip3
pip3installseagalPlease also install other necessary packages such asjupyterfor your research needs.
IfError: module seagal not foundoccurs when importing, please check ifecho $PATHincludes the path to python3.9 site packages.Input data formatFor 10X Visium, Space RangerFolderwith the following contents:[Folder]/spatial/tissue_positions_list.csv[Folder]/filtered_feature_bc_matrix.h5CSV-format files:count.csv - gene expression data frame in Pandas.DataFrame format.meta.csv - spot meta data frame, with x, y columns denoting coordinates.Running SEAGAL with Visium DataPlease readTutorial1for instructions.Running SEAGAL with user-defined marker genesPlease readTutorial2for details.Running SEAGAL with CSV-format DataPlease readTutorial3for details.
Package: seagen
SEAGenA python implementation of the stretched equal area (SEA) algorithm for
generating spherically symmetric arrangements of particles with accurate
particle densities, e.g. for SPH initial conditions that precisely match an
arbitrary density profile, as presented in Kegerreis et al. (2019), MNRAS 487:4,
5029-5040,https://doi.org/10.1093/mnras/stz1606.See alsohttps://github.com/srbonilla/WoMafor making the initial profiles,
placing particles with SEAGen, and modifications for spinning bodies.Jacob Kegerreis (2020)jacob.kegerreis@durham.ac.ukJosh BorrowVisithttps://github.com/jkeger/seagento download the code including examples
and for support.This program has been tested for a wide range of cases but not exhaustively. If
you find any bugs, potential improvements, or features worth adding, then please
let us know!Contentsseagen.pyThe main program classes and functions.examples.pyExamples to demonstrate how to use the SEAGen module.setup.py,setup.cfg,__init__.py,MANIFEST.inPython package files.LICENSE.txtGNU general public license v3+.Basic UsageSee the doc strings inseagen.pyfor all the details.Create a single shell of particles and print their positions:importseagenN=100r=1particles=seagen.GenShell(N,r)print(particles.x,particles.y,particles.z)Create a full sphere of particles on a simple density profile and print their
positions and masses:importseagenimportnumpyasnpN=100000radii=np.arange(0.01,10,0.01)densities=np.ones(len(radii))# e.g. constant densityparticles=seagen.GenSphere(N,radii,densities)print(particles.x,particles.y,particles.z,particles.m)Seeexamples.pyfor other working examples, e.g. an arbitrary density
profile with multiple layers and extra temperature information.InstallationPyPI: Automatically install the package withpip install seagen, seehttps://pypi.org/project/seagen/Direct download: The singleseagen.pyfile can be imported and used without
any extra installation, so you can just download this repository and place
the file in a local directory or wherever your python will look for modules.RequirementsPython 3 (tested with 3.6.0).Notation etc.PEP8 is followed in most cases apart from some indentation alignment.Arrays are explicitly labelled with a prefixA1_, orAn_for ann-dimensional array.Particle is abbreviated topicle.
Package: seagrass
SeagrassA Python event auditing and profiling multitoolSeagrass is a library providing fast, pluggable hooks for instrumenting Python
code.InstallationYou can install the latest version of Seagrass usingpip:pip install seagrassIntroductionAt a low level, Seagrass is just a wrapper around Python'scontext
managersandfunction decorators.
Working in conjunction, these two features make it possible to instrument and
attach context to arbitrary functions and blocks of code. However, at the far
end it can be tedious to have to manage, configure, and toggle code hooks using
just the standard library.Seagrass provides a framework for developing hot-swappable hooks and managing
them at scale. For instance, suppose you wanted to count the number of times a
function was entered and see how much time was spent in it. You could use
Seagrass's built-inCounterHookandTimerHookas follows:importseagrassfromseagrassimportAuditorfromseagrass.hooksimportCounterHook,TimerHookauditor=Auditor()hooks=[CounterHook(),TimerHook()]@auditor.audit(seagrass.auto,hooks=hooks)defsome_function_i_want_to_audit():...withauditor.start_auditing(log_results=True):some_function_i_want_to_audit()Alternatively, you could use theProfilerHookhook to get finer-grained
performance statistics based on Python'scProfilemodule.Seagrass really starts to shine once you startwriting your own
hooksthrough theProtoHookinterface, or using one of the lightly-configurable hooks such asLoggingHookorContextManagerHook.
You can write one set of hooks that transfer across multiple projects and toggle
them on-demand, filter them by event name, attach logging context with them, and
so on.Check out thequickstart
tutorialfor a
longer crash course on using Seagrass.DocumentationThe full documentation for Seagrass is available on ReadTheDocs:https://seagrass.readthedocs.io/en/stable/
Package: seagull
a 2D scene graph based on SVG with OpenGL backendGoals & non-goalsGoals:2D scene graph suitable for interactive renderingminimal set of dependenciesNon-goals:full SVG implementationoptimized for speedFeaturespythonic API modeled after SVG spec & semanticSVG parsing and serializationscale dependent polygonalizationanalytical pickingsub-pixel strokes rendering enhancement through width and opacity correctionper-pixel gradientstwo modes text rendering: raster by freetype2 for high quality AA at small sizes, vector otherwiseSVG specimplemented:shapes: path, rect, circle, ellipse, line, polyline, polygon, imagetext: (excluding decoration, text on path)structure: group, use (including attributes inheritance)painting: solid color, linear and radial gradients (including units, transform, spread, href);fill: rule (nonzero, evenodd)stroke: cap (butt, round, square), join (miter, round, bevel), miterlimitmulti-pass rendering: clipping, masking, object opacitytransforms: translate, rotate, scale, skewX, skewYeventually:tspanpainting: patternstroke: dash, markerfiltersnever:DOM APIDependenciesPyOpenGL3.0.2+ OpenGL python bindingsPillow2+ Python Imaging Library (fork)freetype2font engineGNU FreeFontFree UCS Outline FontsOptional dependenciesNeeded to find fonts, fallbacks on FreeFont otherwise.on the mac:pyobjc-framework-CoreTextwrappers for the framework CoreText on Mac OS XInspirationssauvageby S. ConversySVGLby S. Conversy & J.-D. Fekete
Package: seagull2-generate-config-template
简介海鸥Ⅱ根据模板生成配置文件工具准备安装打包工具python -m pip install --user --upgrade setuptools wheel安装上传工具python -m pip install --user --upgrade twine测试打包python .\setup.py sdist bdist_wheel安装本地包pip install .\dist\seagull2_generate_config_template-xxx-py3-none-any.whl如果同一个版本重复安装需要先卸载pip uninstall seagull2_generate_config_template执行测试pypython .\test\test_generate.py打包python .\setup.py sdist bdist_wheelsetup.py 参考上传（默认上传到pypi，需要登录）python -m twine upload dist/*安装pip install seagull2_generate_config_template更新pip install -U seagull2_generate_config_template
Package: seahash
SeaHashPython bindings toseahash- A blazingly fast, portable hash function with proven statistical guarantees.Installationpip install seahashWheels should be available for most platforms. If you need a wheel which isn't provided,raise an issue.Compiling from source will require a Rust toolchain.UsageHashing can be done in 2 ways:Primitive functionsimportseahash# Plain hashseahash.hash(b"123")# Hash with custom seedsseahash.hash_seeded(b"123",4,5,6,7)Both methods return anint.hashlib-compatible classFor convenience, ahashlib-compatible class is provided:importseahashs=seahash.SeaHash()s.update(b"123")s.digest()s.hexdigest()The underlyingintdigest can be obtained withintdigest.
Package: seahorse
A handy package for kickstarting AI contestsWe proudly provide a Python framework that makes the building of an environment for adversarial agents easy !A lot of fun functionalities are provided an easily usable out of the box !Implementing a new game setup from scratch ?Painless !Playing against remote agents ?Easy !Generating and collecting data about played games ?Worriless !Organizing a contest for a large range of agents ?Quick and reliable !InstallationThe package is publicly available on PyPI.We strongly encourage the use of a virtual environment:$ python3 -m venv venv

    $ source venv/bin/[activate|Activate.ps1]

    (venv)$ pip install seahorseDocumentationOur full documentation and a series of tutorials are available oncorail-research.github.io.Main contributorsWe are an enthusiastic team of M.Sc candidates led by Pr. Quentin Cappart at Polytechnique Montréal. The package was originally developed in the context of a introductory course to artificial intelligence given to undergrad computer and software engineering students.
Checkout ourlab's pagefor more information.Licenseseahorseis distributed under the termes of the3-Clause BSD License.
Package: seakybox
AboutThis is Seaky's box of basic toolsfatal error: Python.h: No such file or directoryyum install gcc libffi-devel python3-devel openssl-devel -yInstallCentos7 install python3.7yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make libffi-devel

yum -y install epel-release 
yum install python3-pip
pip3 install --upgrade pip

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
./configure prefix=/usr/local/python3 
make && make installLog0.1detached from seakylib
Package: seakylib
AboutThis is Seaky's lib.Update1.0.6.5detach app/probe module for general use1.0.6.3adata.redis_fun.pipe_ex1.0.6.3data.pd.to_exceldata.redis_funcfunc.string.obj2listfunc.string.qroundos.cmd.OSSQL1.0.6.2For Seermysql.py    鍙傛暟 timed -> time_update, time_insert, time_check
log.py  娣诲姞SimpleLog
mrun.py 娣诲姞show_miss, show_results, stat_results
http.py 娣诲姞code!=200鏃讹紝閲嶈瘯
Package: seal2
IntroductionThis module implements the SEAL2 algorithm. SEAL2 is the second version of the
stream cipher, SEAL, designed by Don Coppersmith and Phillip Rogaway.Using it is very simple. First you have to create a SEAL2 context
initialize with a 20-byte key”>>> import seal2
>>> context=seal2.new("x"*20)You can now encrypt data using the encrypt method:>>> context.encrypt("Hello, world")
'\xfb\xfd\x81\xa3\x0e\x05i\x9e\xc6\xbdU\xe7'Decryption works very similar:>>> context=seal2.new("x"*20)
>>> context.decrypt("\xfb\xfd\x81\xa3\x0e\x05i\x9e\xc6\xbdU\xe7")
'Hello, world'CaveatSEAL2 is designed to generate up to 2^48 bytes of output per seed. In 1997,
Handschuh and Gilbert showed, however, that the output stream can be
distinguished from a random sequence after only seeing roughly 2^34 bytes of
output. Thus, it is prudent to avoid using the same seed for more than 2^34
bytes of output.Requirements & Installationseal2 requires python 2.4 or later. You also need setuptools.To install it you will need a working C compiler and the python development
libraries and include files.Installing it is simple: you can use the standard setup.py interface:python setup.py installAuthor, copyright, availabilityThe SEAL2 algorithm was designed by Don Coppersmith and Phillip Rogaway.The original C implementation was taken from the CPANCrypt::SEAL2module
and is copyright 2003 by Julius C. Duque.The python integration was written by Wichert Akkerman <wichert@jarn.com>
and is copyright 2007 byJarn.The code is licensed under the GNU General Public License, version 2.seal2 1.0First release
Package: sealan-sdk
Sealan Cloud Python SDK is the official software development kit, which allows Python developers to write software that makes use of Sealan Cloud services like Device Manager and SIM Card ManagerThe SDK works on Python versions:3.6 and greaterQuick StartFirst, install the library:$pipinstallsealan-sdkor download source code from github and install:$gitclonehttps://github.com/sealan/sealan-cloud-sdk-python.git$cdsealan-cloud-sdk-python$pythonsetup.pyinstall
Package: sealant
SeaLantБиблиотека с инструментом для поиска утечек памяти в процессе выполнения тестов
в Chrome или Node.jsСодержаниеУстановкаИнструкцияПример использованияПараметры подключения к нодеВыбор типа анализа утечкиСохранение отчета и артефактов тестаВерсионированиеАвторыЛицензияУстановкаpip install sealantИнструкцияПример использованияМинимальный набор действий для подключения библиотеки:fromsealantimportsealantfromunittestimportTestCase...# Предназначено для использование с фреймворком UnitTests и основанных на# нем сторонних фреймворкахclassTestsCaseExample(TestCase):...# Перед тестом необходимо уже иметь запущенную ноду, библиотека# подключается к ней перед запуском метода test_case@sealant()deftest_case(self):some_actions()Параметры подключения к нодеВ представленном выше сценарии используются настройки подключения по умолчанию:
подключение к ноде по localhost:9222При необходимости можно указать другие хост/порт ноды или прямую
ccылку websocket@sealant(host='not_localhost',port='2229',ws='ws://direct_ws:9222')deftest_case(self):actions()Указанный ws имеет приоритет над host/portДопустим вариант указания настроек подключения для целого класса:@sealant(host='not_localhost',port='2229')classTestsCaseExample(TestCase):...@sealant()deftest_case(self):actions()Можно задать настройки по умолчанию для всех использований библиотеки
в config.py.Выбор типа анализа утечкиСледующим важным этапом настройки является возможность выбора типа heapfile:
heaptimeline или heapsnapshot. По умолчанию используется heaptimeline как
более быстрый и показавший большую стабильность способ. Но для Node.js
допустим только вариант с heapsnapshot:@sealant(timeline=False)deftest_case(self):actions()Найденные утечки сравниваются с объемом, указанным в config.py (leak_size_limit).
Если размер утечки больше заданного допустимого после выполнения 8 пункта, то
вызывается исключение LeakError.Сохранение отчета и артефактов тестаВ config.py можно задать, сохранять ли полученные heapfiles и составлять ли
отчет в случае нахождения утечки. В этом случае составленный отчет и снятые
heapfiles пакуются в zip архив и помещаются в заданную в config.py папку
(по умолчанию создается папка leaks в папке с тестом).ВерсионированиеМы используемSemVerдля версионирования. Доступные версии
указаны втэгах этого репозитория.АвторыЮдахин А.Еe-mail:aejudakhin@gmail.comДокучаев С.Вe-mail:sv.dokuchaev@tensor.ruЛицензияThis project is licensed under the MIT License - see theLICENSE.mdfile for detailstest2
Package: sealea
Fast and effective Instagram Private API wrapper (public+private requests and challenge resolver).Use the most recent version of the API from Instagram.Features:Performs Public API (web, anonymous) or Private API (mobile app, authorized) requests depending on the situation (to avoid Instagram limits)Challenge Resolver have Email (as well as recipes for automating receive a code from email) and SMS handlersSupport upload a Photo, Video, IGTV, Clips (Reels), Albums and StoriesSupport work with User, Media, Insights, Collections, Location (Place), Hashtag and Direct objectsLike, Follow, Edit account (Bio) and much more elseInsights by account, posts and storiesBuild stories with custom background, font animation, swipe up link and mention usersIn the next release, account registration and captcha passing will appear
Package: sealedmock
Sealed MockWhitelist the attributes/methods of your mocks instead of just letting
it create new mock objects.sealedmockallows to specify when you are done defining the mock, ensuring
that any unexpected call to the mock is cached.Sample:fromunittest.mockimportMockfromsealedmockimportsealm=Mock()m.method1.return_value.attr1.method2.return_value=1seal(m)# No new attributes can be declaredm.method1().attr1.method2()# 1m.method1().attr2# Exception: AttributeError mock.method1().attr2Big news! This is getting into Python3.7! Seethis PR.Installpip install sealedmockUsageGiven you have a file like:importurllib2classSampleCodeClass(object):"""This is sample code"""defcalling_urlopen(self):returnurllib2.urlopen("http://chooserandom.com")defcalling_splithost(self):returnurllib2.splithost("//host:port/path")You can write a test like:fromunittest.mockimportpatchfromsealedmockimportseal@patch("tests.sample_code.urllib2")deftest_using_decorator(mock):sample=sample_code.SampleCodeClass()mock.urlopen.return_value=2seal(mock)# No new attributes can be declared# calling urlopen succeeds as mock.urlopen has been definedsample.calling_urlopen()# This will fail as mock.splithost has not been definedsample.calling_splithost()If you use an common Mock the second part will pass as it will create a
mock for you and return it. With sealedmock you can choose when to stop
that behaviour.This is recursive so you can write:@patch("sample_code.secret")deftest_recursive(mock):sample=sample_code.SampleCodeClass()mock.secret.call1.call2.call3.return_value=1seal(mock)# No new attributes can be declared# If secret is not used as specified above it will fail# ex: if do_stuff also calls secret.call1.call9sample.do_stuff()It also prevents typos on tests if used like this:@patch("sample_code.secret")deftest_recursive(mock):sample=sample_code.SampleCodeClass()sample.do_stuff()seal(mock)mock.asert_called_with(1)# Note the typo in asert (should be assert)# A sealed mock will rise, normal mock won't