Saravanan666/pypi-org huggingface dataset:
Package: idna_ssl
info:Patch ssl.match_hostname for Unicode(idna) domains supportInstallationpipinstallidna-sslUsagefromidna_sslimportpatch_match_hostname# noqa isort:skippatch_match_hostname()# noqa isort:skipimportasyncioimportaiohttpURL='https://цфоут.мвд.рф/news/item/8065038/'asyncdefmain():asyncwithaiohttp.ClientSession()assession:asyncwithsession.get(URL)asresponse:print(response)loop=asyncio.get_event_loop()loop.run_until_complete(main())MotivationHere is 100% backward capabilityRelated aiohttpissueRelated PythonbugRelated Pythonpull requestIt is fixed (by January 27 2018) in upcoming Python 3.7, butIDNA2008is still brokenThanksThe library was donated byOcean S.A.Thanks to the company for contribution.
Package: idncheck-old
# IDNCheckIDNcheck performs safety checks on international domain names.
This might be useful if you want to see how likely a given domain
is to be used for nefarious purposes such as phishing.
It returns the unicode restriction level passed by a string, as described
in Unicode Technical Standard #39, Unicode Security Mechanisms (see References).Note: On first run, it will automatically download a file if it doesn’t exist:http://www.unicode.org/Public/UNIDATA/Scripts.txt## How to useTypical usage might look something like this:python
>>> import idncheck
>>> idncheck.idncheck(“hello”)
1
>>> idncheck.idncheck(“φilosoφia”)
42
>>> idncheck.idncheck(“φilosoφia”, 3) # FIXME
True
>>> idncheck.idncheck(“paypal”)
1
>>> idncheck.idncheck(“paypаl”)
4
>>> idncheck.idncheck(“раура1”)
4or#!/usr/bin/env pythonimport idncheckidncheck.idencheck(“φilosoφia”, 3): # FIXMEprint(“I see what you’re doing there”)## ReferencesThis tool serves as an implementation of the Restriction-Level detection described
in Unicode Technical Standard #39, Unicode Security Mechanisms:[TR 39](http://www.unicode.org/reports/tr39/#Restriction_Level_Detection)Additional use cases and details are available in these blog posts:[Gmail post](http://googleonlinesecurity.blogspot.com/2014/08/protecting-gmail-in-global-world.html)[Another Google post](http://googleenterprise.blogspot.com/2014/08/protecting-gmail-in-global-world.html)## TODOCreate a web service on a Gandi Python Simple Hosting instance
Package: idn-data-models
IDUN Guardian data model libraryThis library includes the IDUN Guardian data model, which is used by both the frontend and the backend.FeaturesData modelIncludes mypy types.Development environment: devcontainerThis package is developed inside a devcontainer.
To develop, all you have to do is to use VSCode, install the "Remote: Containers" extension, and run the command "Open Folder in Container".
This will start an environment with all tools/dependencies already installed.Environment variablesAll the environment variables are documented in thedevcontainer docker compose.!!! note
The devcontainer startup script creates 2 dynamic environment variables and writes them to the file.env.
(their names are still visible in docker compose).
You need to export these variables in the VSCode terminal before running any command like tests:export $(cat .env | xargs)Running testsVSCode is configured to pick up all env variables (including.env) when you run the debugger or when you run tests from the UI.To run tests in the terminal, seethe command that CI runs.
Package: idn-eai
Email Address InternationalizationIDN-EAIAn internationalized domain name (IDN) is an Internet domain name that contains at least one label that is displayed in software applications, in whole or in part, in a language-specific script or alphabet, such as Arabic, Chinese, Cyrillic, Devanagari, Hebrew or the Latin alphabet-based characters with diacritics or ligatures, such as French. These writing systems are encoded by computers in multibyte Unicode. Internationalized domain names are stored in the Domain Name System (DNS) as ASCII strings using Punycode transcription.EAI is the protocol that allows email addresses with IDNs in the domain part and/or Unicode (non-ASCII) characters in the Local part of the Mailbox name. Email software and services need to make specific changes to support EAI, since EAI mail is conceptually a separate mail stream from legacy ASCII mail.InstallationYou can install the idn-eai module fromPyPI:pip install idn-eaiThe module is supported on Python 3.7FeaturesAPI for finding out whether remote mail server is supporting utf-8 or not.Based on the returned string, we will able to find out the SMTPUTF8 support
on remote mail server"TRUE" : SMTPUTF8 is supported on remote mail server"FALSE" : SMTPUTF8 is not supported on remote mail server"EXCEPTION" : When domain is invalid or unable to resolveThe internationalized domain name (IDN) homograph attack
is a way a malicious party may deceive computer users about what remote system they are communicating with, by
exploiting the fact that many different characters look alike in Hindi language (i.e., they are homographs, hence the term for the
attack, although technically homoglyph is the more accurate term for different characters that look alike).Phonics is a method for teaching people how to read and write an alphabetic language. It is done by demonstrating the
relationship between the sounds of the spoken language (phonemes), and the letters or groups of letters (graphemes) or
syllables of the written language. This is also known as the Alphabetic principle or the Alphabetic code.The overriding goal for this package is to provide
API for IDN & EAI related stuffs.API ModulesInstructions on how to use them in your own application are linked below.ModuleFunctionseai.eaicheckersmtputf8_check(domain)eai.idn_servicesgenerate_homograph_variants(word)eai.idn_servicesgenerate_similar_phonic_variants(word)Examplessmtputf8_check(gmail.com) will return TRUE stringsmtputf8_check(yahoo.com) will return FALSE stringsmtputf8_check(jsds.ins) will return EXCEPTION stringgenerate_homograph_variants(मुद्रा) will return मुद्गा,मुद्रा,मुद्ना as comma-separated stringgenerate_similar_phonic_variants(मुद्रा) will return मुद्रा,मूद्रा as comma-separated stringEnvironmentThis code is tested onpython 3.7# python -vPython3.7.3(default,Apr242020,18:51:23)[Clang11.0.3(clang-1103.0.32.62)]ondarwinDeveloper:Arpit Guptagupta.arpit03@gmail.comwww.arpitram.com,www.arpitram.inLicenseMIT
Package: idnits
idnitsThe idnits program inspects IETF Internet-Draft documents for a variety of
conditions that should be adjusted to bring the document into line with
policies from the IETF, the IETF Trust, and the RFC Editor.The determination of which issues are to be repored is based on:Requirements inhttps://www.ietf.org/id-info/1id-guidelines.txtRequirements inhttps://www.ietf.org/id-info/checklistAdditional requirements captured from ADs and authors over timeRequirements inhttps://iaoc.ietf.org/documents/idnits-SOW-00.pdfChangelogVersion 3.0.0 (31 Dec 2018)This introduces a re-implementation of the idnits tool in Python.The original idnits tool (versions 1.x and 2.x) grew from a 10-line awk
script to more than 3000 lines of mixed bash and awk code during a period of
17 years, and was over-ripe for re-implementation.  The new python code is
organised so as to make it easy to add new checks and features, without
becoming unwieldy.The re-implementation also introduces the ability to run idnits on IETF
draft and RFC source files in XML format, and adds new checks that looks for
problems with the XML source in particular.This release focuses on the ability to run idnits checks on XML source,
while still containing the TXT format checks.  Additional checks related to
both XML and TXT format input will be added in coming releases.
Package: idnow-responses
idnow_responsesA third-party pytest plugin that provides a fixture to mock the IdNow identification service.Installationpip install idnow-responsesUsageThis plugin makes theidnow_responsesfixture available. Typically the request
to IdNow would be within the tested code and not within the test. For
simplicity, it's here in the request:importrequestsimportidnow_responsesidnow_responses.company_id="Mandala"deftest_service(idnow_responses):company_id="Mandala"# Create identurl=f"https://gateway.test.idnow.de/api/v1/{company_id}/identifications/foo-123-ab/start"response=requests.post(url)assertresponse.status_code==200assertresponse.json()=={"id":"foo-123-ab"}# Get identurl=(f"https://gateway.test.idnow.de/api/v1/{company_id}/identifications/foo-123-ab")response=requests.get(url)assertresponse.status_code==200assertresponse.json()=={"id":"foo-123-ab"}# Get unknown identurl=f"https://gateway.test.idnow.de/api/v1/{company_id}/identifications/unknown-tx-id"response=requests.get(url)assertresponse.status_code==404assertresponse.json()=={"errors":[{"cause":"OBJECT_NOT_FOUND"}]}
Package: idoji
IDojiWhat if you could combine the magical fun of emojis and the unique uniqueness
power of UUIDs.What if you had a format to label objects, so powerful and elegant, that you
enjoy sending those over your favorite messenger.What if you had a small python package, providing you all of that and much more.Welcome toIDoji.InstallationInstallation can be done viapippip3installidojiUsageIDoji can be used as a superior alternative to UUIDs. Common
functionality provided by UUIDs can be found in IDojis, as well as facilities
to mix both types or convert between them.Instantiate themIt is possible to instantiate a completely random IDoji as well as using values
of the typestr,intor evenUUID.>>>fromidojiimportIDoji>>>idoj=IDoji()>>>print(idoj)🦟🦄😗😅-🥽🦄-🙌🦩-🥳🥱-🧊🥖-🤭🦝🦲😒It is also possible to use existing UUIDs in several forms.>>>fromuuidimportuuid4>>>uuidval=uuid4()>>>print(uuidval)e4f4d80c-01f4-4504-b18b-6061bb619aa3>>>idoj_from_uuid=IDoji(uuidval)>>>print(idoj_from_uuid)🦳🧃🦧😌-😁🧃-🙅😄-🦀🥙-🤜🤝-🦊🤝🥨🥱>>>repr(idoj_from_uuid)"IDoji('e4f4d80c-01f4-4504-b18b-6061bb619aa3')">>>idoj_from_uuid_str=IDoji("e4f4d80c-01f4-4504-b18b-6061bb619aa3")>>>print(idoj_from_uuid_str)🦳🧃🦧😌-😁🧃-🙅😄-🦀🥙-🤜🤝-🦊🤝🥨🥱And of course, if you get an IDoji string from somewhere, you can use that to
instantiate an object as well.>>>idoj=IDoji("🦳🧃🦧😌-😁🧃-🙅😄-🦀🥙-🤜🤝-🦊🤝🥨🥱")>>>print(idoj)🦳🧃🦧😌-😁🧃-🙅😄-🦀🥙-🤜🤝-🦊🤝🥨🥱>>>repr(idoj)"IDoji('e4f4d80c-01f4-4504-b18b-6061bb619aa3')"Compare themIDojis can be compared against each other as well as UUIDs.Comparison against IDoji objects as well as their string representation is
available.>>>idoj=IDoji()>>>idoj_same=IDoji(idoj.uuid)>>>idoj_diff=IDoji()>>>print("{}--{}--{}".format(idoj,idoj_same,idoj_diff))🤪🦞🤳🥔-🦏🥎-🙄🦣-🦌😶-😨😯-🦹🦣😄🥞--🤪🦞🤳🥔-🦏🥎-🙄🦣-🦌😶-😨😯-🦹🦣😄🥞--🦪🤜🦒🦵-🤏🧃-🙋🥓-🥟🥧-🦁🦹-🥪😎🧡🦗>>>idoj==idoj_sameTrue>>>idoj==idoj_diffFalse>>>idoj=="🤪🦞🤳🥔-🦏🥎-🙄🦣-🦌😶-😨😯-🦹🦣😄🥞"True>>>idoj=="🦪🤜🦒🦵-🤏🧃-🙋🥓-🥟🥧-🦁🦹-🥪😎🧡🦗"FalseAlso comparison against UUIDs and their string representation is possible as
well.>>>uuidval=uuid4()>>>print(uuidval)627adf41-739a-4b5a-b727-d8add4124884>>>idoj_from_uuid=IDoji(uuidval)>>>idoj_from_uuid==uuidvalTrue>>>idoj_from_uuid=="627adf41-739a-4b5a-b727-d8add4124884"True
Package: idom
IDOM ·IDOM connects your Python web framework of choice to a ReactJS frontend, allowing you to createinteractive websites without needing JavaScript!Following ReactJS styling, web elements are combined intoreusable "components". These components can utilizehooksandeventsto create infinitely complex web pages.When needed, IDOM canuse components directly from NPM. For additional flexibility, components can also befully developed in JavaScript.Any Python web framework with Websockets can support IDOM. See below for what frameworks are supported out of the box.Supported FrameworksSupported Frameworks (External)Flask,FastAPI,Sanic,TornadoDjango,Plotly-Dash,JupyterAt a GlanceTo get a rough idea of how to write apps in IDOM, take a look at this tinyHello Worldapplication.fromidomimportcomponent,html,run@componentdefHelloWorld():returnhtml.h1("Hello, World!")run(HelloWorld)ResourcesFollow the links below to find out more about this project.Try it Now- check out IDOM in a Jupyter Notebook.Documentation- learn how to install, run, and use IDOM.Community Forum- ask questions, share ideas, and show off projects.Contributor Guide- see how you can help develop this project.Code of Conduct- standards for interacting with this community.
Package: idom-jupyter
idom-jupyterA client forIDOMimplemented using Jupyter widgetsTry It Now!Check out some live examples by clicking the badge below:Getting StartedTo install usepip:pip install idom_jupyterThen, before anything else, do one of the following:At the top of your notebook runimportidom_jupyterRegisteridom_jupyteras a permanant IPython extension inyour config file:c.InteractiveShellApp.extensions=['idom_jupyter']UsageOnce you're donegetting started, you can author and display IDOM
layouts natively in your Jupyter Notebook:importidom@idom.componentdefClickCount():count,set_count=idom.hooks.use_state(0)returnidom.html.button({"onClick":lambdaevent:set_count(count+1)},[f"Click count:{count}"],)ClickCount()You can also turn anidomelement constructor into one that returns anipywidgetwith
theidom_juptyer.widgetizefunction. This is useful if you wish to use IDOM in combination
with other Jupyter Widgets as in the following example:ClickCountWidget=idom_jupyter.widgetize(ClickCount)ipywidgets.Box([ClickCountWidget(),ClickCountWidget(),])Alternatively just wrap anidomelement instance in anidom_jupyter.LayoutWidget:ipywidgets.Box([idom_jupyter.LayoutWidget(ClickCount()),idom_jupyter.LayoutWidget(ClickCount()),])For a more detailed introduction check out this live demo here:Development InstallationFor a development installation (requiresNode.jsandYarn version 1),$ git clone https://github.com/idom-team/idom-jupyter.git
$ cd idom-jupyter
$ pip install -e .
$ jupyter nbextension install --py --symlink --overwrite --sys-prefix idom_jupyter
$ jupyter nbextension enable --py --sys-prefix idom_jupyterWhen actively developing your extension for JupyterLab, run the command:$ jupyter labextension develop --overwrite idom_jupyterThen you need to rebuild the JS when you make a code change:$ cd js
$ yarn run buildYou then need to refresh the JupyterLab page when your javascript changes.
Package: idom-plotly
idom-plotlyPlotly figures as a custom component for IDOMInstallationUsepipto install this package:pipinstallidom-plotlyFor a developer installation from source be sure to installNPMbefore running:gitclonehttps://github.com/idom-team/idom-plotlycdidom-plotly
pipinstall-e.-rrequirements.txtReleasing This PackageTo release a new version of idom-plotly on PyPI:Installtwinewithpip install twineUpdate theversion = "x.y.z"variable inidom-plotly/__init__.pygitadd the changes to__init__.pyand create agit tag -a x.y.z -m 'comment'Build the Python package withpython setup.py sdist bdist_wheelCheck the build artifactstwine check --strict dist/*Upload the build artifacts toPyPItwine upload dist/*To release a new version ofidom-plotly-reactonNPM:Updatejs/package.jsonwith new npm package versionClean out prior buildsgit clean -fdxInstall and publishnpm install && npm publish
Package: idom-router
idom-routerA URL router for IDOMInstallationUsepipto install this package:pipinstallidom-routerFor a developer installation from source be sure to installNPMbefore running:gitclonehttps://github.com/idom-team/idom-routercdidom-router
pipinstall-e.-rrequirements.txtRunning the TestsTo run the tests you'll need to installChrome. Then you
can download theChromeDriverand add it to
yourPATH. Once that's done, simplypipinstall the requirements:pipinstall-rrequirements.txtAnd run the tests withpytest:pytesttestsYou can run the tests in headless mode (i.e. without opening the browser):pytesttestsYou'll need to run in headless mode to execute the suite in continuous integration systems
like GitHub Actions.Releasing This PackageTo release a new version of idom-router on PyPI:Installtwinewithpip install twineUpdate theversion = "x.y.z"variable inidom-router/__init__.pygitadd the changes to__init__.pyand create agit tag -a x.y.z -m 'comment'Build the Python package withpython setup.py sdist bdist_wheelCheck the build artifactstwine check --strict dist/*Upload the build artifacts toPyPItwine upload dist/*To release a new version ofidom-routeronNPM:Updatejs/package.jsonwith new npm package versionClean out prior buildsgit clean -fdxInstall and publishnpm install && npm publish
Package: idos-scraper
IDOS scraperThis package scrapes data from Czech public transport provided on pageidos.idnes.cz.You can search connections, page more connections (uses web contex from search connections and ajax queries) or search stations by name or location.
For more info, go take a look at sources in idos_scraper.scrapers:search_connections.py - Search connectionsSearches only from ../vlakyautobusymhdvse/..page_connections.py - Page connectionssearch_station.py - Finding stationsFor now the station scraper scrapes from ../ostrava/.. url - Only stations in Ostrava cityMore filtes (PID, ODIS, IDOL, ...) are comming later.TLDRYou will mainly use these 2 functions:defSearchConnectionsByStation(station_from:str="Horni polanka",station_to:str="VŠB-TUO",time:str|None=None,date:str|None=None)->dict:defSearchStation(station_short_str:str,number_of_hints_to_query:str|int=3):And theirasyncvariants:asyncdefasync_SearchConnectionsByStation(station_from:str="Horni polanka",station_to:str="VŠB-TUO",time:str|None=None,date:str|None=None)->dict:asyncdefasync_SearchStation(station_short_str:str,number_of_hints_to_query:str|int=3):Not yet fully implemented:defSearchConnectionsByLocation(station_from:str|None=None,station_to:str="VŠB-TUO",time:str|None=None,date:str|None=None)->dict:defasync_SearchConnectionsByLocation(station_from:str|None=None,station_to:str="VŠB-TUO",time:str|None=None,date:str|None=None)->dict:ExamplesFor examples how to use this module, run:python3-midos_scraper.examples.ui_search_stationorpython3-midos_scraper.examples.search_and_page_connection
Package: idp-authentication
IDP Authentication hexagonal architecture implementationPurposeThis project handles the authentication process of the Cardo platform. It is a hexagonal architecture implementation, which means that the business logic is independent of the framework used to implement the API.ArchitectureThe architecture is based on theHexagonal Architecture.The main idea is to separate the business logic from the framework and the infrastructure.The business logic is implemented in thedomainmodule. This module is independent of the infrastructure.The infrastructure is implementedinfrastructuremodule.Theappwhich uses this package itself is the entry point of the application. It is the only module that depends on the framework.Project layoutidp_authentication/
├── infrastructure
│   ├── custom_orm_column_types.py
│   ├── database.py
│   ├── orm.py
├── users
│   ├── adapters
│   │   ├── orm.py
│   │   ├── unit_of_work.py
│   │   ├── events
│   │   ├── repositories
│   ├── base_classes
│   │   ├── base_entity.py
│   │   ├── base_repository.py
│   ├── di
│   │   ├── containers.py
│   ├── domain
│   │   ├── entities
│   │   ├── ports
│   │   ├── use_cases
│   ├── infrastructure
│   │   ├── database
│   │   │   ├── sqlalchemy
│   │   ├── faust
│   │   │   ├── faust_app.py
│   ├── tests
│   │   ├── domain
│   │   │   ├── __init__.pyRequirementsPython 3.9+IDP Authentication requires the following to be implemented:Dependency InjectorInstallationSince this is a private repository, you need to install the package with the following command:pip install git+ssh://git@github.com/CardoAI/idp-authentication.git@mainExampleUsageInside your application container:fromdependency_injectorimportprovidersfromidp_authentication.users.di.containersimportUsersModuleDIContainerusers_module=providers.Container(UsersModuleDIContainer,config=config,database=database,)Extending default configfromidp_authentication.configimportConfigclassTestConfig(Config):APP_IDENTIFIER="test"TENANTS=["default"]ROLES=[TEST_ROLE_1,TEST_ROLE_2]APP_ENTITY_TYPES=["app_entity_1","app_entity_2"]classConfig:env_file_encoding="utf-8"use_enum_values=TrueConfiguration examplefromdependency_injectorimportcontainers,providersfromidp_authentication.users.di.containersimportUsersModuleDIContainerclassYourTestContainer(containers.DeclarativeContainer):config=providers.Configuration(pydantic_settings=[TestConfig()])url=get_test_memory_db_uri()database=providers.Singleton(Database,)users_module=providers.Container(UsersModuleDIContainer,config=config,database=database,)Usage exampledefcontainer():container=YourTestContainer()container.wire(packages=["idp_authentication"])# Wire IDPAuthenticationcontainer.users_module.start_mappers()# Start Users Module mapperyieldcontainerApp EntityTo declare a new AppEntity, the Entity class should:Inherit from the classAppEntityDeclare the propertiesidp_identifier,idp_labeland optionallyentity_typeExample:fromidp_authentication.users.domain.entities.app_entityimportAppEntityclassTestEntity(AppEntity):@propertydefidp_identifier(self):returnself.id@propertydefidp_label(self):returnself.name@propertydefentity_type(self):return"test"
Package: idp-engine
idp-engine is a reasoning engine for knowledge represented using the FO(.) language.
FO(.) (aka FO-dot) is First Order logic, with various extensions to make it more expressive:  types, equality, arithmetic, inductive definitions, aggregates, and intensional objects.
The idp-engine uses the Z3 SMT solver as a back-end.It is developed by the Knowledge Representation group at KU Leuven in Leuven, Belgium, and made available under theGNU LGPL v3 License.See more information atwww.IDP-Z3.be.Installationidp_enginecan be installed frompypi.org, e.g. usingpip:pip install idp_engineGet startedThe following code illustrates how to run inferences on a knowledge base.from idp_engine import IDP, model_expand
    kb = IDP.parse("path/to/file.idp")
    T, S = kb.get_blocks("T, S")
    for model in model_expand(T,S):
        print(model)For more information, please readthe documentation.ContributeContributions are welcome!  The repository ison GitLab.
Package: idpmodem
idpmodemPython library and samples for integrating with satellite Internet-of-Things
modems using theInmarsatIsatData Pro ("IDP")
network.DocumentationOverviewIDP is a store-and-forward satellite messaging technology with
messages up to 6400 bytes mobile-originated or 10000 bytes mobile-terminated.Messagesare sent from or to aMobileusing its globally unique ID,
transacted through aMailboxthat provides authentication, encryption and
data segregation for cloud-based or enterprise client applications via a
networkMessaging API.The first byte of the message is referred to as theService Identification Number(SIN) where values below 16 are reserved
for system use.  SIN is intended to capture the concept of embedded
microservices used by an application.The second byte of the message can optionally be defined as theMessage Identifier Number(MIN) intended to support remote operations
within each embedded microservice with defined binary formatting.
The MIN concept also supports the optionalMessage Definition Filefeature
allowing an XML file to be applied which presents a JSON-tagged message
structure on the network API.TerminologyMO =Mobile OriginatedakaReturnakaFrom-Mobilemessage sent from modem to cloud/enterprise applicationMT =Mobile TerminatedakaForward messageakaTo-Mobilemessage sent from cloud/enterprise application to modemModem operationUpon power-up or reset, the modem first acquires its location using
Global Navigation Satellite Systems (GNSS).
After getting its location, the modem tunes to the correct frequency, then
registers on the Inmarsat network.  Once registered it can communicate on the
network.
Prolonged obstruction of satellite signal will put the modem into a "blockage"
state from which it will automatically try to recover based on an algorithm
influenced by itspower modesetting.