Saravanan666/pypi-org huggingface dataset:
Package: set-env-colab-kaggle-dotenv
set-env-colab-kaggle-dotenvSet an environ variable from colab, kaggle or dotenv (search default .env/dotenv/env)Whyset_envcolab and kaggle both provide a way to manage secrets (typically API tokens).set_envis mainly for running ipynb (jupyter notebook) files in colab/kaggle or cloud instance when we need to set an environ variable, for example,HF_TOKENto download models or datasets from huggingdace hub, other scenarios includeWANDB_API_KEYorNGROK_AUTHCODEorOPENAI_API_KEYetc.When running an ipynb in a cloud instance, we may usedotenv(pip install python-dotenv) to set environ varibales based on.env.Install itpip install set-env-colab-kaggle-dotenvSetup Secrets or Upload.envIn colab, set SecretsIn kaggle, set Add-ons/SecretsIn other jupyter environ/cloud instance, upload .env, with contents, e.g.HF_TOKEN=...
WANDB_API_KEY=...In some cases, files start with a dot are not allowed. Rename.envtodotenvorenvinstead,set_envwill auto-search for.env,dotenvandenv.Use itfrom set_env import set_env

# e.g.
set_env("HF_TOKEN")
set_env("WANDB_API_KEY")
set_env("NGROK_AUTHCODE")Sometimes we want to set HF_TOKEN to HF_TOKEN_W (with write-permission).from set_env import set_env
set_env(env_var="HF_TOKEN", source_var="HF_TOKEN_W")This is effectively equivalent toos.environ["HF_TOKEN"] = get_secret("HF_TOKEN_W")when in colab or kaggle, oros.environ["HF_TOKEN"] = dotenv.dotenv_values().get("HF_TOKEN_W").
Package: setenvironment
setenvironmentFinally, a cross platform way to set system environment variables and paths that are persistant across reboots.Works with Windows, MacOS and Linux and github runners, see note below.Extensively tested.Command line interface# Setting environmental variablessetenvironmentshow
setenviornmentbashrc# unix only.setenvironmentsetfoobar
setenvironmenthasfoo
setenvironmentgetfoo
setenvironmentdelfoo# Path manipulation.setenvironmentaddpath/my/path
setenvironmentgetPATH
setenvironmentdelpath/my/path
setenvironmentrefresh"echo this command is in a refreshed environment"Python APIfromsetenvironmentimport(set_env_var,add_env_path,unset_env_var,remove_env_path,set_config_file,reload_environment,...)# by default, ~/.bashrc is usedset_env_var("FOO","BAR")get_env_var("FOO")# returns BARadd_env_path("MYPATH")unset_env_var("FOO")remove_env_path("MYPATH")# use ~/.bash_profile instead (no op on Windows)set_config_file("~/.bash_profile")set_env_var("FOO","BAR")add_env_path("MYPATH")unset_env_var("FOO")remove_env_path("MYPATH")# Loads settings into the current environment. This reads the# registry on windows or the ~/.bashrc file on unix.reload_environment()# Path groups are usefull for uninstall programs. Each add# copies the path both into the PATH and also to the key.# When you want to remove paths you can query the key and selectively# remove paths that are in the set.add_to_path_group("MYPATHKEY","/path/to/dir")remove_to_path_group("MYPATHKEY","/path/to/dir")# Or else you can just remove ALL of the paths at once.remove_path_group("MYPATHKEY")GithubThese are designed to be compatible with github runners.Ubuntu MUST use the following to make this package work.name: Ubuntu_Tests

# Directs GitHub to run tests using ~/.bashrc
defaults:
    run:
      shell: bash -ieo pipefail {0}

on: [push]WindowsPaths are set in the registery and the current os.environwrites to the registerybroadcasts the new value (cmd.exe ignores this though) to all available processespaths like/my/pathwill be converted to\\my\\pathMacOS / LinuxPaths are set in either~/.bash_aliasesor~/.bash_profileor~/.bashrcfile or you can override it, seeset_config_file(...)and the command line arguments if using the command line api.export the variable (so you can source the script)set the os.environ to the proper valuewrite the value to the .bashrc file (make sure it's chmod +w)Release Notes2.0.3: Disables the refresh.cmd, since it doesn't work for subprocesses.2.0.2: Re-enabled broadcast changes on win32, fixing new terminal launch.2.0.1: Bug fix.2.0.0: Rewrite. New command line api. Extensively tested on mac/win/ubuntu X github.
Package: setfitonnx
SetFitONNXExport the setfit model to ONNX formatFeaturesMean Pooling Layer to ONNX GraphSingle ONNX Model combining both the sentence transformer & classification headInstallationpipinstallsetfitonnxHow tofromsetfitonnximportconvert_onnx# Setfit Model directorymodel_path="/home/mysetfit-model"# ONNX Output directoryoutput_dir="/home/setfit-onnx-model"# Convert to ONNXconvert_onnx(model_path=model_path,output_dir=output_dir)LicenseMIT
Package: setFTs
setFTsThis library provides functionalities for calculating the Fourier transform on set functions,
based on the novel mathematical foundation of discrete signal processing on set functions [1].
We provide functionalities for:Initializing a set function object from a full set of function evaluations.Inititalizing a set function object from a queryable python function.Applying the fast Fourier transform algorithm [1]Applying sparse Fourier transform algorithm [2]Set function minimization algorithms [3]Shapley Values Calculation1 DocumentationFull documentation of the setfunctions and plotting modules can be found at:https://ebners.github.io/setFTs_docs/or in the Documentation_setFTs.pdf provided in the repositors2 RequirementssetFTs uses the python library pySCIPOpt for the implementation of the MIP-based minimization algorithm.
pySCIPOpt requires a working installation of the SCIP Optimization Suite. The creators of pySCIPOpt recommend using conda as it installs SCIP automatically. And allows the installation of pySCIPOpt in one command:conda install --channel conda-forge pyscipoptMore information about installing pySCIPOpt can be found at:https://github.com/scipopt/PySCIPOpt/blob/master/INSTALL.md3 InstallationThe installation of our package works over pypi and therefore a working installation of pip is needed. The pip command to install setFTs is the following:pip install setFTsReferences[1]@article{Discrete_Signal_Proc, 
     title={Discrete signal processing with set functions},
     volume={69},
     DOI={10.1109/tsp.2020.3046972},
     journal={IEEE Transactions on Signal Processing},
     author={Puschel, Markus and Wendler, Chris},
     year={2021}, 
     pages={1039–1053}
 }[2]@article{Sparse,
    author    = {Chris Wendler and
               Andisheh Amrollahi and
               Bastian Seifert and
               Andreas Krause and
               Markus P{\"{u}}schel},
    title     = {Learning Set Functions that are Sparse in Non-Orthogonal Fourier Bases},
    journal   = {CoRR},
    volume    = {abs/2010.00439},
    year      = {2020},
    url       = {https://arxiv.org/abs/2010.00439},
}[3]@article{MIPS,
    author={Weissteiner,Jakob and Wendler, Chris and Seuken, Sven and Lubin,Ben and Püschel, Markus},
    title={Fourier analysis-based iterative combinatorial auctions},
    DOI={10.24963/ijcai.2022/78},
    journal={Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence},
    year={2022}
    }
Package: seth
===========Seth===========:Info: Seth is a smart set of utilities for Pyramid framework:Repository: https://github.com/jnosal/seth/:Author: Jacek Nosal:Maintainer: Jacek Nosal.. image:: https://travis-ci.org/jnosal/seth.svg?branch=master:target: https://travis-ci.org/jnosal/seth.. image:: https://coveralls.io/repos/jnosal/seth/badge.svg?branch=master:target: https://coveralls.io/r/jnosal/seth?branch=masterDocumentation=====http://seth.readthedocs.org/en/latest/Example=====https://github.com/jnosal/eventlog
Package: setip3
This DynDNS client script is posting your router’s public IP-Adress to enom.com
each time it is called. The post URL is configurable in the setip3.cfg file.A RequirementsDeveloped and tested on Windows 7 Home Premium (64 Bit) andDebian 7.0 Linux (64 Bit)Python 3.2.3 is required to run this script.Apple Computers and Apple OS are not supported. We do not support companieswho like to have an utility patent for a glass plate with round corners and a
thin aluminum chassis.B InstallationFor Windows download the correct .msi file, for Debian choose the python3
package. You can get help here:http://www.python.org/B.1 Windows InstallAt first install Python 3.3.0 from here:Windows X86-64 MSI Installer (3.3.0)Download and unpack SetIP3Create a link in Autostart that points to setip3.py to run the script eachtime you start your computer.Alternatively you can configure a scheduled task in windowsOn Windows the location for the setip3.cfg and setip3.log file is <C:Python33>.B.2 Debian InstallAs user root type at the console window to install the correct package:apt-getinstall python3Download and unpack SetIP3 to /usr/shareIn /etc/rc.local insert a line before theexit 0like this:python3 /usr/share/SetIP3/setip3.pyAlternatively you can configure a scheduled cron jobOn Debian Linux the location for the setip3.cfg and setip3.log file is
</usr/local>.C Configuration of setip3.cfgIn setip3.cfg you may set the log level and at least your domain name and your
password to update the IP-Address for your domain name.
Example:# Log levels are: DEBUG, INFO, WARNING, ERROR and CRITICAL
LogLevel = logging.DEBUG
# Set your domain here:
ZoneValue = <mydomain.com>
# Set your password here:
DomainPasswordValue = <passwd>
Package: setix
At its core setix provides a “set intersection index”, an inverted index data structure designed for storing sets
of symbols and fast querying of sets intersecting the given set, with sorting based on the number of intersections
or a similarity measure.Additionally, a wrapper for indexing strings is provided in setix.trgm, which implements a trigram index compatible
with the PostgreSQL extension pg_trgm.ExamplesUsing a set index:importsetixix=setix.SetIntersectionIndex()ix.add((1,2,3))ix.add((1,2,4))ix.add((2,3,4))ix.find((1,2),1).get_list()# returns [(2, [(1, 2, 3)]),#          (2, [(1, 2, 4)]),#          (1, [(2, 3, 4)])]# (the order of the first two results can change as they have equal scores)Using a trigram index:importsetix.trgmix=setix.trgm.TrigramIndex()ix.add("strength")ix.add("strenght")ix.add("strength and honor")ix.find("stremgth",threshold=1).get_list()# returns [(6, ["strength and honor"])#          (6, ["strength"]),#          (4, ["strenght"])]ix.find_similar("stremgth",threshold=0.1).get_list()# returns [(0.5,  ["strength"]),           # 6 intersections / (9 total + 9 total - 6)#          (0.29, ["strenght"]),           # 4 intersections / (9 total + 9 total - 4)#          (0.27, ["strength and honor"])] # 6 intersections / (9 total + 19 total - 6)In general, to search for phrases containing a misspelt word, a threshold of -3*N can be given where N is the number
of misspellings.ix.find("stremgth",threshold=-3).get_list()# returns [(6, ["strength and honor"]),#          (6, ["strength"])]BenchmarksA benchmark is included in tests/dvd_db_test.pyResults from an Athlon II running at 2.6GHz:Python 2.7In [1]: import tests.dvd_db_test
Loading database...
Extracted 240577 titles
Memory used by data: 107.8MB
Building index...
CPU time used: 43.1s
Unique trigrams indexed: 11352
Unique phrases indexed: 228620
Memory used by index: 80.9MB

In [2]: %timeit list (tests.dvd_db_test.titles.find("daft punk", 8))
10 loops, best of 3: 27.8 ms per loop

In [3]: %timeit list (tests.dvd_db_test.titles.find("daft punk", 1))
10 loops, best of 3: 86.4 ms per loopPython 3.2In [1]: import tests.dvd_db_test
Loading database...
Extracted 240577 titles
Memory used by data: 108.8MB
Building index...
CPU time used: 45.8s
Unique trigrams indexed: 11352
Unique phrases indexed: 228620
Memory used by index: 86.2MB

In [2]: %timeit list (tests.dvd_db_test.titles.find("daft punk", 8))
10 loops, best of 3: 27.9 ms per loop

In [3]: %timeit list (tests.dvd_db_test.titles.find("daft punk", 1))
10 loops, best of 3: 86.3 ms per loopDVD title list used in the benchmark was obtained fromhttp://www.hometheaterinfo.com/dvdlist.htmThanks for making it available.
Package: setl
Setl (pronounced likesettle) is a simple way to work with PEP 518 projects
with Setuptools as the backend.The interface is strongly influenced byFlit.InstallThe recommended install method ispipx:pipx install setlSetl needs to be installed with Python 3.7 or later, butcan be used to build
projects using older Pythonwith the--pythonoption.Quickstart for Setuptools VeteransAside from the usual Setuptools configurations, you need to create a filepyproject.tomlbesidesetup.py, with the following content:[build-system]
requires = ["setuptools>=43", "wheel"]Command comparisons to Setuptools:SetlSetuptools approximationsetl developsetup.py developsetl buildsetup.py egg_info buildsetl publishsetup.py egg_info build sdist bdist_wheeltwine uploadBut Why?The main difference is how build and runtime dependencies are installed.Traditionally Setuptools projects usesetup_requires, but that hasvarious problemsand is
discouraged in favour of using PEP 518 to specify build time dependencies
instead. But Setuptools’s project management commands do not handle PEP 518
declarations, leaving the user to install those build dependencies manually
before usingsetup.py. Setl commands mimic pip’s build setup before calling
theirsetup.pycounterparts, so the build environment stays up-to-date.Similarly,setup.py developinstallsruntimedependencies witheasy_install, instead of pip. It therefore does not respect PEP 518
declarations in those dependencies, and may even fail if one of the
dependencies does not support the “legacy mode” build process.setl developworks around this bypip install-ing runtime dependencies
before callingsetup.py develop--no-deps, so dependencies are installed
in the modern format.The rest are more about providing more useful defaults. It is easy to forget
to re-buildegg-infowhen you modify metadata, so Setl tries to be
helpful. Nowadays people almost always want to build both sdist and wheel, so
Setl does it by default. The PyPA recommends against usingsetup.py upload,
so Setl bundles Twine for uploading instead. Nothing rocket science.Next StepsRead thedocumentationfor detailed command descriptions and inner workings.View thesourceand help contribute to the project.
Package: setlipy
SetlipyA simple Python wrapper for the setlist.fm APIInstallationpipinstallsetlipyQuick StartTo get started, install setlipy, register a free account onhttps://www.setlist.fm/signupand apply for an API key onhttps://www.setlist.fm/settings/apiAdd your API Key to your environment:# Get all setlists from an artist and a specific year.# Default as JSON file format.fromsetlipyimportclientsfm=client.Setlipy(auth="YOUR_API_KEY")results=sfm.setlists(artist_name="The Rolling Stones",year="2022")json_dump=(results.json())foridx,setlistsinenumerate(json_dump["setlist"]):print(idx,setlists)Default file format is JSON. Use the following to request the data as XML:# Get all setlists from an artist and a specific year.# As XML file format.importxmlimportxml.etree.ElementTreeasETfromsetlipyimportclientsfm=client.Setlipy(file_format="xml",auth="YOUR_API_KEY")results=sfm.setlists(artist_name="The Rolling Stones",year="2022")string_xml=results.contenttree=xml.etree.ElementTree.fromstring(results.content)print(xml.etree.ElementTree.dump(tree))Reporting IssuesI'm happy about any suggestions you might have. If you find bugs or other issues specific to this library, file them here. Or just send a pull request.LicenseMIT © Setlipy Project
Package: setlist-fm-client
setlist-fm-clientsetlist-fm-clientis a python client for thesetlist.fm REST API.Installationpippip install setlist-fm-clientpoetrypoetry add setlist-fm-clientHelpSee thedocumentationfor more details.AuthenticationIn order to authenticate to the setlist.fm REST API, you mustapply for an API key(link for logged-in users only) - if you're not registered user yet, thenregister first(it's free).Once you have your key, you can use it in thesetlist-fm-clientby setting theSETLIST_FM_API_KEYenvironment
variable or by passingapi_key="xxx"as a kwarg to any function (seedocs).Simple Examplesetlist-fm-clientis extremely easy to use.  By settingserialize=True, you get a pydantic model returned to you instead of
ahttpx.Responseobject.Below are examples of what the code looks like for both the sync and async apis.syncimportsetlist_fm_clientsetlists=setlist_fm_client.get_artist_setlists("0bfba3d3-6a04-4779-bb0a-df07df5b0558",api_key="xxx",serialize=True)print(setlists)asyncimportasyncioimportsetlist_fm_clientasyncdefmain():setlists=awaitsetlist_fm_client.get_artist_setlists("0bfba3d3-6a04-4779-bb0a-df07df5b0558",api_key="xxx",serialize=True)print(setlists)asyncio.run(main())This will give you anArtistSetListResponseobject.Buy me a coffeeIf you find this project useful, consider buying me a coffee!
Package: set-loglevel
set-loglevelReturn a loglevel taking ENV LOGLEVEL into accountInstall itpipinstallset-loglevel# poetry add set-loglevel# git clone https://github.com/ffreemt/set-loglevel && cd set-loglevelUse itfromset_loglevelimportset_loglevelset_loglevel()# 10/20/etc# orset_loglevel(20,force=True)# 20
Package: setman
Settings manager for Python web-apps and projects. Another?The Great IdeaSome time ago we at oDesk PS developeddjango-setmanapp, which is the answer if you
need to specify custom settings in your Django project and add ability to setup
these settings from UI (like Django admin CRUD).But later, we thought, what if modify this app and make it universal? We mean,
not to use only with Django, but for example with Flask as well.So please welcomesetman- universal Python app to work with settings
that could be customized via UI.RequirementsPython2.6 or 2.7Supported frontends (frameworks)Django1.3 or higherFlask0.8 or higherSupported backends (ORM)Django ORMFile-based backend (supported formats: ini, json or pickle)InstallationOn most UNIX-like systems, you’ll probably need to run these commands as root
or using sudo.To install use:$ pip install setmanOr:$ python setup.py installAlso, you can retrieve fresh version ofsetmanfromGitHub:$ git clone git://github.com/playpauseandstop/setman.gitand placesetmandirectory somewhere toPYTHONPATH(orsys.path).Licensesetmanis licensed under theBSD License.Usage. More informationSee full documentation atdocs/directory or browse onlinehere.Bugs, feature requests?If you found some bug insetmanlibrary, please, add new issue to the
project’sGitHub issues.
Package: setmlvis
setmlvisA new visualization method for comparing different models for bounding box detection.InstallationYou can install usingpip:pipinstallsetmlvisIf you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:jupyternbextensionenable--py[--sys-prefix|--user|--system]setmlvisDevelopment InstallationCreate a dev environment:Condacondacreate-nsetmlvis-dev-cconda-forgenodejsyarnpythonjupyterlab
condaactivatesetmlvis-devvenvpy-mvenvenv
.\env\Scripts\activateInstall the python. This will also build the TS package.pipinstall-e".[test, examples]"You will needjupyter lab3.x orjupyter notebookinstalled. If you don't have it, run, e.g.:pipinstalljupyterlab<4When developing your extensions, you need to manually enable your extensions with the
notebook / lab frontend. You needyarninstalled first. If you don't, run:npminstallyarnThen, to enable the extensions for lab, run the command:jupyterlabextensiondevelop--overwrite.andyarnrunbuildor.\node_modules\yarn\bin\yarnrunbuildFor classic notebook, you need to run:jupyternbextensioninstall--sys-prefix--symlink--overwrite--pysetmlvis
jupyternbextensionenable--sys-prefix--pysetmlvisNote that the--symlinkflag doesn't work on Windows, so you will here have to run
theinstallcommand every time that you rebuild your extension. For certain installations
you might also need another flag instead of--sys-prefix, but we won't cover the meaning
of those flags here.How to see your changesTypescript:If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different
terminals to watch for changes in the extension's source and automatically rebuild the widget.# Watch the source directory in one terminal, automatically rebuilding when neededyarnrunwatch# Run JupyterLab in another terminaljupyterlabAfter a change wait for the build to finish and then refresh your browser and the changes should take effect.Python:If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.Updating the versionTo update the version, install tbump and use it to bump the version.
By default it will also create a tag.pipinstalltbump
tbump<new-version>
Package: set-nested-iters
Finds intersections/differences in nested iterables# Tested with:# Python 3.9.13# Windows 10$pipinstallset-nested-itersfromset_nested_itersimport(present_in_L1_and_L2,present_in_all_lists_reduce,unique_in_L1_and_L2,unique_in_each_list_reduce,present_only_in_L1,present_only_in_L1_reduce,)L0=[{2,5},"a",44,"jojjo","xxx",{77:100}]L1=[{2,5},"a",["bb",["ccc","ddd"],"ee","ff"],"g","h","g","h",3,4,5,0.0,1,]L2=[{2,5},"ac",(98,11),["bb",["ccc","ddd"],"ee","ff"],"gc","h","gc","h",11,2,3,1.0,0.0,]L3=[{2,5},"a",44,["bb",["ccc","ddd"],"ee","ff"],"g","h","g","h",3,4,5,0.0,1,]L4=[{2,5},"ac",111112,(98,11),["bb",["ccc","ddd"],"ee","ff"],"gc","a","h","gc","h",11,2,3,1.0,0.0,]erg0=present_only_in_L1(L1,L2,withindex=False)print(erg0)erg1=present_only_in_L1(L2,L1,withindex=False)print(erg1)erg2=unique_in_L1_and_L2(L1,L2,withindex=False)print(erg2)erg3=present_in_L1_and_L2(L1,L2,withindex=False)print(erg3)erg0=present_only_in_L1(L1,L2,withindex=True)print(erg0)erg1=present_only_in_L1(L2,L1,withindex=True)print(erg1)erg2=unique_in_L1_and_L2(L1,L2,withindex=True)print(erg2)erg3=present_in_L1_and_L2(L1,L2,withindex=True)print(erg3)print(present_in_all_lists_reduce(L1,[L2,L3,L4]))print(unique_in_each_list_reduce(L1,[L2,L3,L4,L0]))print(present_only_in_L1_reduce(L0,[L2,L3,L4,L1]))['a','g',4,5]['ac',(98,11),'gc',11,2]['a','g',4,5,'ac',(98,11),'gc',11,2][{2,5},['bb',['ccc','ddd'],'ee','ff'],'h',3,0.0,1][(1,'a'),(3,'g'),(6,4),(7,5)][(1,'ac'),(2,(98,11)),(4,'gc'),(6,11),(7,2)][(1,'a'),(3,'g'),(6,4),(7,5),(1,'ac'),(2,(98,11)),(4,'gc'),(6,11),(7,2)][(0,{2,5}),(2,['bb',['ccc','ddd'],'ee','ff']),(4,'h'),(5,3),(8,0.0),(9,1)][{2,5},['bb',['ccc','ddd'],'ee','ff'],'h',3,0.0,1][111112,{2,5},'jojjo','xxx',{77:100}]['jojjo','xxx',{77:100}]
Package: setofmark
set-of-mark👋 helloVisual Prompting for Large Multimodal Models (LMMs).https://github.com/roboflow/set-of-mark/assets/26109316/4b8a2eab-0f3d-454b-8649-61f6c2f78119💻 installpipinstallsetofmark💜 acknowledgementThis project is based onSet-of-Mark Prompting Unleashes Extraordinary Visual Grounding
in GPT-4Vby Jianwei Yang, Hao Zhang, Feng Li, Xueyan
Zou, Chunyuan Li, Jianfeng Gao. We thank the authors for their work and for releasing
theircode.🦸 contributionWe would love your help in making this repository even better! If you noticed any bug,
or if you have any suggestions for improvement, feel free to open anissueor submit apull request.
Package: setOp
IntroductionCompared files with through python set operations.

Support operations:
    &   intersection
    |   union
    -   difference
    ^   symmetric difference
    <   Test whether the set is a proper subset of other, that is, set <= other and set != other.
    <=  Test whether every element in the set is in other.
    >   Test whether every element in the set is in other.
    >=  Test whether every element in other is in the set.

Features:
    1. Auto strip space for each line in file.
    2. Auto sorted the result.

Examples:
    1. compared from files
        setop fpath1 - fpath2
        setop 'fpath1 & fpath2'
        setop '( fpath1 & fpath2 ) <= fpath3'

    2. compared from variables
    fish
        ❯ setop  (seq 1 3|psub) '&' (seq 2 4|psub)
            2
            3
    bash
        ❯ setop  <(seq 1 3) '&' <(seq 2 4)
            2
            3Installpip install setop