Saravanan666/pypi-org huggingface dataset:
Package: semaphore-win-ctypes
Windows Semaphore ctypesA ctypes wrapper for Windows Semaphore ObjectsFree software: MIT licenseDocumentation:https://semaphore-win-ctypes.readthedocs.io.Use CaseThis module was created to overcome limitations of Python’sbuilt-in semaphore support.
Specifically, the built-in semaphores:Can only beshared between python processesif a common parent python process coordinatesCannot be acquired by code written in other programming languagesInstead, this module provides wrappers for these low level Windows Semaphore APIs:CreateSemaphoreExWOpenSemaphoreWWaitForSingleObjectReleaseSemaphoreCloseHandleSince the Windows Semaphore API uses named semaphores to permit sharing between processes, you can now share your semaphore more freely.
Check the documentation of those APIs for details about how semaphores behave on Windows.DependenciesThis module requires no runtime dependencies.See AlsoDocumentation:https://semaphore-win-ctypes.readthedocs.io/Related Python standard library code:Python threading.SemaphorePython multiprocessing.SemaphorePython asyncio.SemaphoreSimilar work on other platforms:POSIX IPCfor better semaphores on POSIX (I.E. Linux, UNIX-like, etc.) OSes.Other items:windows semaphore helper– C++ demo of working with Windows Semaphore APIsCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.2 (2021-03-14)Minor bug fixes0.1.1 (2021-03-14)First release on PyPI.
Package: semaver
SemaVerSemaVer is a simple library for Python that helps to work with versions usingsemantic versioning notation.Build statusRequirementsPython>=3.5InstallationpipinstallsemaverUsageVersion objectsTo create version, instantiateVersionclass passing version identifier as a
constructor argument:fromsemaverimportVersionv1_0_0=Version('1.0.0')Valid version identifiers can be found as [https://semver.org/] except that
currentlySemaVerdoes not supportpre-releaseand [build metadata] specs.All non-specified parts of the version identifier counted as zeroes, i. e.'1' == '1.0' == '1.0.0'.Compare versionsYou may compare versions using regularPython comparison operators:fromsemaverimportVersionv1_0=Version('1.0')v1_0_0=Version('1.0.0')v1_0_1=Version('1.0.1')assertv1_0==v1_0_0# Trueassertv1_0!=v1_0_0# Falseassertv1_0<v1_0_1# Trueassertv1_0<=v1_0_1# Trueassertv1_0>v1_0_1# Falseassertv1_0>=v1_0_1# False# Or using plain stringsassertv1_0=='1'# Trueassertv1_0=='1.0'# Trueassertv1_0=='1.0.0'# TrueAlso it is possible to compare versions against strings:fromsemaverimportVersionv1_0=Version('1.0')v1_0_0=Version('1.0.0')v1_0_1=Version('1.0.1')Adding and subtracting versionsfromsemaverimportVersionprint(Version('1.0.0')+Version('0.1.1'))# '1.1.1'fromsemaverimportVersionprint(Version('2.0.1')-Version('1.0.1'))# '1.0.0'Version range objectsInstance ofVersionRangerepresents a version range. First argument of
constructor is a version range identifier.fromsemaverimportVersionRangeVersionRange('1.x')Following formats are supported.PEP-440 version specifiersexcept~=and===clauses.NPM version range syntax.For example, each item of the following list shows equal version range
identifiers:1.x,1.*,^1,>=1,<2.^1.1,>=1.1,<2.1.0.x,1.0.*,~1,~1.0.Checking if a version is in a rangefromsemaverimportVersion,VersionRangev1_2_3=Version('1.2.3')v1_x=VersionRange('1.x')v2_x=VersionRange('2.x')assertv1_2_3inv1_x# Trueassertv1_2_3inv2_x# False# Or using plain stringsassert'1.2.3'inv1_x# Trueassert'1.2.3'inv2_x# FalseChecking if a range is in a rangefromsemaverimportVersionRangev1_to_3=VersionRange('>=1,<=3')v2_x=VersionRange('2.x')assertv2_xinv1_to_3# Trueassertv1_to_3inv2_x# False# Or using plain stringsassert'2.x'inv1_to_3# Trueassert'>=1,<=3'inv2_x# FalseTestingtoxContributingSee theCONTRIBUTING.mdfile for details.ChangelogSee theCHANGELOG.mdfile for details.SupportIf you have any issues or enhancement proposals feel free to report them via
project'sIssue Tracker.AuthorsOleksandr Shepetko-- initial work.LicenseThis project is licensed under the MIT License. See theLICENSE.mdfile for details.to-specify-update-types-your-package-can-accept
Package: semawal
SemaWal Is a semantic network resolver developed as a python library.
It allows the creation of networks through manual coding or a JSON file. It supports a variety of connection types between nodes.
SemaWal provides useful network defining functions and knowledge extraction functions, these functions allows for network browsing, path finding, pattern checking and more.Developper: Ali AOUFFeaturesvalueAuthorsAuthors.mdRelease0.1 (20.08)LicenseGPL 2.0Tracker40uf411/arrand/IssuesSourceGithubFeedbacksCommentsAccounts[@Twitter](https://twitter.com/40uf411))Features:Support for multi-relations(connections between nodes).Support for extend relation(inheritance).Support for positive and negative relations.Support for JSON files.Support for node properties.Support for Sub-networks.Relations extraction.Pattern checking.Advanced filtered search.Path finding.Static graph generation.Full documentation:https://40uf411.github.io/SemaWal/Changelog:0.2(20.10)New code (Node and Net classes rewritten from scratch)Allowing power value to be and integer between 0 and 10 (old: 0 or 1)Adding JSON supportAdding a function to look for pattern (Beta)Deprecating the CSV parserDeprecating the tkinter based GUI0.1(20.08)initial releaseIn progress featuresA GUI interfaceA web interfaceAn option to ignore certain relations
Package: sembed
sembedThis is a wrapper of discord.Embed ofdiscord.py.InstallationRun this:pipinstallsembedBasic UsageSimple Embedimportdiscordimportsembedclient=discord.Client()@client.eventasyncdefon_ready():print('We have logged in as{0.user}'.format(client))@client.eventasyncdefon_message(message):ifmessage.author==client.user:returnifmessage.content=="please test sembed":e=sembed.SEmbed("Did you know that:","This embed is made by sembed!")awaitmessage.channel.send(embed=e)client.run('your token here')All-in-one Embedimportdiscordimportsembedclient=discord.Client()@client.eventasyncdefon_ready():print('We have logged in as{0.user}'.format(client))@client.eventasyncdefon_message(message):ifmessage.author==client.user:returnifmessage.content=="please test sembed":e=sembed.SEmbed(title="Title",description="Description",color=0x7289da,fields=[sembed.SField("name1","value1 - inline",True),sembed.SField("name2","value2 - inline",True),sembed.SField("name3","value3 - not inline",False)],author=sembed.SAuthor("Author","https://cdn.discordapp.com/avatars/686547120534454315/a_14261e094afcbfe4ab3abde42ac86987.gif","https://discord.com"),footer=sembed.SFooter("Footer","https://cdn.discordapp.com/embed/avatars/2.png"),url="https://github.com",image_url="https://cdn.discordapp.com/embed/avatars/3.png",thumbnail_url="https://cdn.discordapp.com/embed/avatars/0.png")awaitmessage.channel.send(embed=e)client.run('your token here')Edit Embedimportdiscordimportsembedclient=discord.Client()@client.eventasyncdefon_ready():print('We have logged in as{0.user}'.format(client))@client.eventasyncdefon_message(message):ifmessage.author==client.user:returnifmessage.content=="please test sembed":e=sembed.SEmbed(title="Title",description="Description")awaitmessage.channel.send(embed=e)e.author=sembed.SAuthor("You can use SAuthor.")e.footer="And you can set str."e.fields.append(sembed.SField("But...","You must set SField to fields :("))awaitmessage.channel.send(embed=e)e.author.name="(Edited)"e.fields[0].value="(Edited)"e.footer.text="(Edited)"awaitmessage.channel.send(embed=e)client.run('your token here')PrerequisitesPython 3.8|3.9 (Please make GitHub issue if you can use this lib on different python version)discord.pyLicensePlease seeLICENSE.ContributingContributing is welcome!https://github.com/sevenc-nanashi/sembed/pulls
Package: semcluster
SemClusterUnsupervised Automatic Keyphrase Extraction Using Affinity PropagationInstallationClone this Repo and its submodules usinggitclone--recurse-submodulesgit@code.siemens.com:palle.klewitz/semcluster.gitInstall esa-wikicdESA-Wiki
python3setup.pysdistbdist_wheel
pip3installdist/wiki_esa-0.0.1-py3-none-any.whlcd..Install semclusterpython3setup.pysdistbdist_wheel
pip3installdist/semcluster-0.0.1-py3-none-any.whlUsagefromsemclusterimportSemClusterKeywordExtractortext="The quick brown fox jumps over the lazy dog."# Instantiate extractore=SemClusterKeywordExtractor()# Extract phraseskeyphrases=e.extract_keyphrases(text,seed_threshold=0.7,verbose=True)
Package: semeio
semeioSemeio is a collection of forward models and workflows used inERT. These are
exposing end points which is considered the API of semeio. If there are submodules that can be applied
more generally, or have use outside these forward models and workflows, please create an issue and it can be exposed in
the API.Installation and usageSemeio is available onpypiand can be installed usingpip install semeio.# InstallpipinstallsemeioUsageOnce installed semeio will automatically register its workflows and forward models withERT. Through the plugin hooks it will also add its own documentation to theERTdocumentation. See theERTdocumentation for examples on
how to run workflows and forward models, and build theERTdocumentation to get
documentation for the workflows and forward models.Run teststoxis used as the test facilitator,
to run the full test suite:pipinstalltox
toxor to run it for a particular Python version (in this case Python 3.10):pipinstalltox
tox-epy310or to run it for a the current Python version:pipinstalltox
tox-epypytestis used as the test runner, so for quicker
iteration it is possible to run:pytestthis requires that test-dependencies are installed:# Install test requirementspipinstall"semeio[test]"pre-commitis used to comply with the formatting standards.
The complete formatting tests can be run with:pipinstalltox
tox-estyleFormatting tests includeblack,flake8andpylint, See.pre-commit-config.yamlfor the
complete steps.pre-commitcan also provide git hooks to run on every commit
to avoid commiting with formatting errors. This will only run on the diff so is quite fast.
To configure this, run:pipinstall"semeio[test]"pipinstallpre-commit
pre-commitinstallAfter this the hook will run on every commit.If you would like to remove the hooks, run:pre-commituninstall
Package: sem-emergency-stop
sem-emergency-stopStop all Google Ads marketing. This utility will pause all marketing campaigns on Google Ads (presumably across many accounts) as fast as possible. The main use case is emergency response during incidents where all landing pages are temporarily unavailable, thereby incurring cost without revenue. Unpausing the paused campaigns (and only those) is also supported.UsageIn case of emergency, do this:sem-emergency-stoppause--no-dry-runA hash will be printed at the end of the process. Use this hash to unpause when the incident is over (the exact instructions are displayed when you run.)One-time setup (for end users)Install the tool (requires Python 3.7 or higher; on Ubuntu 18.04 installpython3.7-minimal):pip3install--usersem-emergency-stopYou can then runsem-emergency-stop setupto authenticate the tool against the API using your Google account. This will request two pieces of information from you:An organization token. How you get this token depends on your organization's process. See the next section if you are the person to set this up for your organization.A token specific to your Google account. Follow instructions on screen. Note that you need to have access to your Ads accounts with your Google account.Deployment at organizationsAuthentication uses Google's OAuth2 flow. This app doesnotcome with client secrets, so you will have to generate these and distribute them in your organization through a suitable channel (e.g. using password manager). The client id/secret together with your login customer id and your developer token are packaged in a compactorganization tokenfor distribution purposes.After installing the app, you can generate a token by runningses-create-org-token. It will ask the following information:Login customer id - this is the customer id (without dashes) of your root Google Ads account.Developer token - find it in your root account under "API Center".Client id/secret - followthis guidehow to obtain a pair.Development and contributingFor developmentpipenvis required on your system. Set up the development environment withmake develop, run withpipenv run sem-emergency-stop ...as needed.We welcome pull requests; if you are planning to perform bigger changes then it makes sense to file an issue first. Make suremake lintcomes back clean.SecurityFor sensitive security matters please contactsecurity@getyourguide.com.LegalCopyright 2021 GetYourGuide GmbH.sem-emergency-stop is licensed under the Apache License, Version 2.0. SeeLICENSEfor the full text.
Package: semester-planner
Semester PlannerUtility to plan your semester in different apps.InstallationTo install semester-planner type the following in the terminal:pipinstallsemester-plannerUsageBefore planning your semester in different apps you should.Semester configurationThe configuration has the following structure:{"semester":{"number":6,"start":"01/27/2020","end":"05/17/2020"},"classes":{"labs":[...],"practical":[...],"lectures":[...]}}semester- meta-information about the semester.classes- list of classes.Where each class has the following structure:{"subject":"History","schedule":{"0":[{"start":"01/27/2020","end":"05/17/2020","interval":7}],"1":[],"2":[],"3":[{"start":"04/02/2020","end":"05/17/2020","interval":7}],"4":[],"5":[],"6":[]}}subject- is the name of the subject."0".."6"- the days of week.Todoist plannerTo configure todoist token use the following command:semester-plannerconfigtodoist--token<todoist-api-token>You can find<todoist-api-token>here.To setup everything in Todoist type this in your terminal:semester-plannertodoist--allIt will create project ("University" by default) and subprojects for labs, lectures and
practical classes.ContributingSeeCONTRIBUTING.md.LicenseMIT
Package: semeval-8-2022-ia-downloader
semeval 2022 task 8 downloaderScript that scrapes news articles in the 2022 Semeval Task 8 format from the Internet Archive.Details about the data and the task in the projecthomepage.A pair of articles with id0123456789_9876543210will be stored inoutput_dir/89/0123456789.{html|json}andoutput_dir/10/9876543210.{html|json}respectively.The HTML file contains the web page of the article as obtained from the internet archive.
The json file contains additional information extracted from the page using the package newspaper3k.The code is available ongithub, together withsampleinput data (sample_data.csv)Usagepython3 -m venv venv
source venv/bin/activate
pip install semeval_8_2022_ia_downloader
python -m semeval_8_2022_ia_downloader.cli --links_file=input.csv --dump_dir=output_dirCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-07-30)First release on PyPI.
Package: semfio-mist
semfio-mistThis package stores a list of functions and modules that can be used to interact
with the Mist/Juniper Cloud.The full list of modules will be documented shortly.UsageThis library can be installed using the following pip command:pip install semfio-mistIn order to start using the library in your Python scripts, please import the modules
at the beginning of your scripts as follow:fromsemfio_mistimportConfigfromsemfio_mistimportloggerfromsemfio_mistimportAPI
Package: semgrep-discovery
IntroTool for discovery sensitive objects in codeInstallpip3 install semgrep-discoveryRunsemgrep-discovery --wd ./django-realworld-example-app/ --langs python --objects dto --keywords email,password --outfile ./result.json --format json
Starting scan....
     workdir: /home/kali/django-realworld-example-app
     langs: ['python']
     objects: ['dtos']
     keywords: ['email', 'password']
     ruledir: /home/kali/.local/lib/python3.11/site-packages/semgrep_discovery/rules
Add rule /home/kali/.local/lib/python3.11/site-packages/semgrep_discovery/rules/python/dto.yaml for scan
Run scan /home/kali/django-realworld-example-app with rule /home/kali/.local/lib/python3.11/site-packages/semgrep_discovery/rules/python/dtos.yaml
    [ lib.python3.11.site-packages.semgrep_discovery.rules.python.django-data-object ]
        Article
            fields:    ['slug', 'title', 'description', 'body', 'author', 'tags']
            path:      conduit/apps/articles/models.py:6
        Comment
            fields:    ['body', 'article', 'author']
            path:      conduit/apps/articles/models.py:30
        Tag
            fields:    ['tag', 'slug']
            path:      conduit/apps/articles/models.py:42
        User
            fields:    ['username', 'email', 'is_active', 'is_staff']
            path:      conduit/apps/authentication/models.py:56
            sensitive!!!
        TimestampedModel
            fields:    ['created_at', 'updated_at']
            path:      conduit/apps/core/models.py:4
        Profile
            fields:    ['user', 'bio', 'image', 'follows', 'favorites']
            path:      conduit/apps/profiles/models.py:6
Got 6 objects
6 written to result.jsonResult:{"path": "conduit/apps/articles/models.py", "line": 6, "object_type": "lib.python3.11.site-packages.semgrep_discovery.rules.python.django-data-object", "object": "Article", "fields": ["slug", "title", "description", "body", "author", "tags"], "sensitive": false}
{"path": "conduit/apps/articles/models.py", "line": 30, "object_type": "lib.python3.11.site-packages.semgrep_discovery.rules.python.django-data-object", "object": "Comment", "fields": ["body", "article", "author"], "sensitive": false}
{"path": "conduit/apps/articles/models.py", "line": 42, "object_type": "lib.python3.11.site-packages.semgrep_discovery.rules.python.django-data-object", "object": "Tag", "fields": ["tag", "slug"], "sensitive": false}
{"path": "conduit/apps/authentication/models.py", "line": 56, "object_type": "lib.python3.11.site-packages.semgrep_discovery.rules.python.django-data-object", "object": "User", "fields": ["username", "email", "is_active", "is_staff"], "sensitive": true}
{"path": "conduit/apps/core/models.py", "line": 4, "object_type": "lib.python3.11.site-packages.semgrep_discovery.rules.python.django-data-object", "object": "TimestampedModel", "fields": ["created_at", "updated_at"], "sensitive": false}
{"path": "conduit/apps/profiles/models.py", "line": 6, "object_type": "lib.python3.11.site-packages.semgrep_discovery.rules.python.django-data-object", "object": "Profile", "fields": ["user", "bio", "image", "follows", "favorites"], "sensitive": false}
Package: semgrep_rules_manager
DescriptionDespite the fact that there is an open source repository containing community rules, some Semgrep users prefer to keep their custom rules in repositories that they manage.The goal ofsemgrep-rules-manageris to collecthigh-quality Semgrep rules from third-party sources. It allows you to examine information about a source, download it, and check for and retrieve remote updates. If a downloaded source no longer meets your requirements,semgrep-rules-managercan handle deletion procedures.Included rulesThis online search engineallows you to explore the rules included insemgrep-rules-manager.Included sourcesIdentifierRules per LanguageAuthorLicensecommunity396 for Python, 364 for Terraform, 341 for JavaScript, 229 for TypeScript, 228 for Regex, 140 for Java, 105 for Generic, 104 for YAML, 100 for Ruby, 90 for Go, 59 for PHP, 49 for Solidity, 48 for C#, 39 for Dockerfile, 34 for OCaml, 25 for Scala, 24 for JSON, 17 for Kotlin, 17 for C, 12 for Apex, 11 for Rust, 9 for Bash, 7 for Elixir, 5 for Clojure, 5 for Swift, 3 for HTML, 1 for LuaSemgrepLGPL 2.1gitlab93 for Scala, 75 for Python, 66 for Java, 64 for C, 31 for Go, 20 for C#, 11 for JavaScript, 10 for TypeScriptGitLabMITtrailofbits19 for Python, 15 for Go, 9 for JavaScript, 9 for TypeScript, 1 for RustTrail of BitsAGPL-3.00xdea47 for C++, 46 for C, 1 for GenericMarco IvaldiMITelttam40 for Java, 15 for Generic, 7 for YAML, 3 for JavaScript, 3 for Go, 2 for TypeScript, 1 for C#, 1 for Kotlin, 1 for Python, 1 for C, 1 for PHPelttamMITkondukto5 for Dockerfile, 5 for PHP, 3 for Go, 3 for JavaKonduktodgryski65 for GoDamian GryskiMITdotta7 for PHP, 3 for Kotlin, 1 for JavaFederico DottaMIThashicorp4 for Terraform, 1 for GenericHashicorpMPL-2.0Read moreThis is only an excerpt from theREADME.mdhosted on GitHub.
Package: semhue
semhuePython package for Phillips Hue lightsInstallationWindowspip install semhueLinux/MacOSpip3 install semhueUsageimportsemhuefromsemhueimport*Available commandssemhue.turn_lights_on(room_name, IP_ADDRESS): switch on the lights of a roomsemhue.turn_lights_off(room_name, IP_ADDRESS): switch off the lights of a roomsemhue.random_color(room_name, IP_ADDRESS): switch light color of a room to a random colorsemhue.change_color(room_name, color, IP_ADDRESS): switch light colors of a room from available colorssemhue.loop_all_colors(room_name, IP_ADDRESS): loop through all the available colors in a roomsemhue.available_colors(): prints all available colorssemhue.set_brightness(room_name, brightness, IP_ADDRESS): set custom brightness for lights in a roomsemhue.get_rooms(IP_ADDRESS): get all the rooms associated to an IP addressLicenseMIT LICENSE
Package: semi-ate-apps-common
Semi-ATESemiconductorAutomatedTestEquipmentSemi-ATEis a tester- and instrumentsAGNOSTICframework forSemiconductorATEASIC testing projects.This means that the system isnotbuild around a specific instrument (let's consider an ATE tester for a moment as a super instrument), it rather focuses on
organizing semiconductor testing in such a way thatalluse- (and special) corner cases have their well known place. This enables the users (read: DE's, TCE's, TE's & PE's) to focus on theREALwork, being the writing of good, fast and stable tests. Organizing tests into test-programs and test-programs in to flows is handled by wizards, so the only code that needs writing is the actual test! (motto:Code is our enemy)TheSemi-ATEpackage is written purely in Python (noarch) and provides besides libraries also a plugin to theSpyderIDE.PackagesThe Semi-ATE project is maintained in this single repository, however it is released as a set of packages (all with the same version number) to accomodate the different use-cases.Package NamePyPI Versionconda VersionfeedstockSemi-ATE-commonSemi-ATE-project-databaseSemi-ATE-sammySemi-ATE-pluginsSemi-ATE-testersSemi-ATE-spyderSemi-ATE-apps-commonSemi-ATE-control-appSemi-ATE-master-appSemi-ATE-test-appSemi-ATE-installer3rd party packages needed:mosquitto:Installation (on a MiniSCT)login as sct/sctin the home directory there should be a directoryreposinreposthere is aSemi-ATEdirectory (holding the relevant Semi-ATE git repositories)TCC_actuators: git cloneRun (on a MiniSCT)Make sure you have a "test cell" configured as follows :===
Installation of the packages can be achieved viacondaorpip.Installation using pipEach package can be installed usingpython -m pip install <package-name>:python -m pip install semi-ate-commonpython -m pip install semi-ate-project-databasepython -m pip install semi-ate-sammypython -m pip install semi-ate-pluginspython -m pip install semi-ate-testerspython -m pip install semi-ate-spyderpython -m pip install semi-ate-apps-commonpython -m pip install semi-ate-control-apppython -m pip install semi-ate-master-apppython -m pip install semi-ate-test-appOr all at once:python -m pip install semi-ate-common semi-ate-project-database semi-ate-sammy semi-ate-plugins semi-ate-testers semi-ate-spyder semi-ate-apps-common semi-ate-control-app semi-ate-master-app semi-ate-test-appInstallation via CondaTo be definedDevelopment ProcessTest program development process documentation can be foundhereATE Apps Common PackageThis package provides helper and utility functions that are used by the other semit-ate applications. When writing this document the following semi-ate applications do exist:semi-ate-master-appsemi-ate-control-appsemi-ate-test-appsemi-ate-handler-app