Saravanan666/pypi-org huggingface dataset:
Package: uninews
uninewsa universal news feed api for all news providerInstallationpip install uninewsSupported providersTheNewsAppNewsCatcherApiNewsData.ioGoogleNewsUsageUsing thenewsapi providerfrom uninews import NewsFeed
from TheNewsApi import set_app_info

set_app_info(appkey=mykey)
nf = NewsFeet('TheNewsApp')
x = nf.last_news()
print(x)
x = nf.hist_news()
print(x)
x = nf.sources()
print(x)FeaturesNewsFeed provide four type news get methods:
last_news:
get last news from the specified providerhist_news:
get history news from the specified providersources:
get the provider's sources of newsif the provider do not provide the method, it will return NoneReturn data structureNews dataThe news data return by last_news() and hist_news() methods are the same, t is a dictionary data which contains:total
total record returnedarticles
a array contain all the articlesArticle dataarticle is a dict contains following keys:title
the article's titledescription
the summary descriptioncontent
the article bodylink
the url address to the articleimg_link
the article image url addressvideo_link
the video url address of articlepublish_date
the article publish datecountries
countries of the articlecategories
categories of the articleauthor
article's authorsource_id
source id of the articlelanguage
article's languagesources datatotalsourcessource dataidnamelinklanguagecategoriesdescriptioncountriesproviderthe following provider is testednewsdataioforhttps://newsdata.ionews_yapifornewsapithenewsapiforthenewsapiworking on providergoogle feed news provider
Package: uninhibited
Dead simple event handling for Python; minus the straight jacket.Tested with Python 2.7, 3.4, 3.5.PyPi:https://pypi.python.org/pypi/uninhibitedWhy should I use this?Simple, tiny, and straight forward to use.Prioritized based handlers. Orset. Orlist. Or anyiterable.Doctests.Extensible; Batteries included, not required.Replaceable container implementation.InstallationpipinstalluninhibitedRunning testsTox is used to handle testing multiple python versions.toxAsyncThis is a rough as of yet, asynchronous iterators just aren’t there yet
in Python3.5.1.Python3.5.2(rc1at time of writing) happens to fix most of my
grievances with them, however, so expect some changes here going
forward.
Package: uninstallable
uninstallable: The Uninstallable Python Wheel!If you got here from one of the following errors, the package you tried to
install is not intended for the platform you tried to install it on. Good day!$ pip install --user ...
...
Collecting uninstallable>0; platform_system == "..." (from ...)
  Downloading ...
Collecting pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "..."->...)
  Could not find a version that satisfies the requirement pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "Linux"->...) (from versions: )
No matching distribution found for pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "Linux"->...)$ pip install --user ...
...
Collecting uninstallable>0; platform_system != "..." (from ...)
  Could not find a version that satisfies the requirement uninstallable>0; platform_system != "..." (from ...) (from versions: )
No matching distribution found for uninstallable>0; platform_system != "..." (from ...)Why?????????The purpose of this package is to get around a limitation of the Python Wheel
specification. It exists to prevent the successful installation of pure Python
Wheels on platforms not compatible with one's package.How?PyPI doesn't allow uploading Python Wheels with unrecognized platform types, so
to force a conflict:We build only for themanylinux1_x86_64platformWe havesetup.pyinstall_requires=a Linux-incompatible package when the
platform is LinuxThis results in either a failure to locate an applicableuninstallablepackage file, or a realization that the package has a dependency that cannot be
installed.Buildingpythonsetup.pybdist_wheel-pmanylinux1_x86_64Usagefromsetuptoolsimportsetupsetup(name='...',version='1.0.0',description='...',long_description=open('README.md').read(),long_description_content_type='text/markdown',author='...',author_email='...',url='...',license='...',python_requires='...',install_requires=[...'uninstallable > 0;platform_system!="Linux"',],...FeaturesNone!
Package: uninstaller
uninstallerA library for uninstalling python packages. Inverse counterpart ofhttps://github.com/pypa/installer⚠General Warning⚠This project uses a bunch of lightly tested logic to decide how to callos.unlink()andos.rmdir()which make changes to your file system that probably can't be undone. I personally think it's safe (if you're okay with the empty folder warning below) and effective, but it comes with no warranty it won't destroy some data you wish it didn't. That said, I wouldn't run it with root permissions at this point.⚠Empty Folder WarningThis project readsThe RECORD fileto figure out how to remove a package. The RECORD file does not contain info on which folders were created during installation (only files), so we can't, with 100% certianty, know which folders should be removed when we try to uninstall a package. After removing all the files listed in RECORD, this project will remove allemptyfolders that were in the chain upwards of where each file in RECORD was. That means it's possible that an empty folder not created at install time will be removed by this tool.ScopeThe design intent here is that this project just undoes whathttps://github.com/pypa/installer(or a similar tool) does. This uninstaller can't uninstall all packages. A package to be uninstalled must at least have a RECORD file in its .dist-info directory for this to have a chance to work. The uninstall done by this tool can only be as complete and correct as that RECORD file allows for.Usage$ python -m uninstaller --help
usage: python -m uninstaller [-h] [--root path] [--base path] [--scheme scheme] [--not-pure-python] [--ignore-checksums] [--ignore-sizes] [--verbose] package [package ...]

uninstall python packages

positional arguments:
  package               name of the package to uninstall

options:
  -h, --help            show this help message and exit
  --root path, -r path  override package search root
  --base path, -b path  override base path (aka prefix)
  --scheme scheme, -s scheme
                        override the default installation scheme
  --not-pure-python, -n
                        you might need to use this if 'Root-is-Purelib' metadata parameter of the package you want to uninstall is false
  --ignore-checksums, -i
                        use this to skip checksum verification ☠️DANGEROUS☠️
  --ignore-sizes, -z    use this to skip file size verification ☠️DANGEROUS☠️
  --verbose, -v         print every file that's removed to stdout--ignore-sizesand--ignore-checksumsare particularly dangerous arguments to use because they bypass validation of files you're about to delete. These switches when paired with a maliciously crafted RECORD file can delete anything your user has the permissions to delete (although they don't completely protect you from a maliciously crafted RECORD file. If you avoid using these, you're pretty safe from a crafted RECORD file because an evil genius would need to know the checksum, size and location of the file(s) they want this tool to delete).
Package: uniohomeassistant
Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.Check outhome-assistant.iofora
demo,installation instructions,tutorialsanddocumentation.Featured integrationsThe system is built using a modular approach so support for other devices or actions can be implemented easily. See also thesection on architectureand thesection on creating your own
components.If you run into issues while using Home Assistant or during development
of a component, check theHome Assistant help sectionof our website for further help and information.
Package: unionai
UnionAIThe SDK forUnion.ai.Account CreationTo get started with Union serverless:Create an account ongithub.com.Go to the serverless tenant on your browser:https://serverless-gcp.cloud-staging.union.aiClickSign in with GitHub, and you should be taken to the Union serverless
console.Now you're ready to start using Union serverless!InstallationInstallunionai:pipinstallunionai
Package: uniondiff
uniondiff - Directory difference calculatoruniondiffis a simple tool for calculating the directory difference between two
directories or archives.uniondiffperforms the calculation below:upper = merged - lowerThis tool acts as the inverseunion mountfile systems. Whereas typically you combine alowerandupperdirectory to
produce amergeddirectory,uniondifftakes as input themergeddirectory
and subtracts out thelowerdirectory to produce theupperdirectory. In
particular, the resulting output can be mounted as theupperdirectory
along with thelowerto produce the originalmergeddirectory.uniondiffis intended for use with low level file system tools (e.g. container
systems) or for simply storing diffs of directories. Note that this tooldoes
notstore compact diffs of individual files; a file will appear in full in the
diff iff its content or metadata has changed between themergedandloweroperands.Installationuniondiffcan be installed throughpip. This installs both theuniondiffCLI utility and theuniondiffPython library.pipinstalltplbuilduniondiffis supported and tested on Python 3.8-3.10ExamplesCompute the directory difference between the directory "data-day10" and
"data-day9". By default the output will be written as a tar file.uniondiffdata-day10data-day9>diff.taruniondiffcan also write directly to the file system. Note that it will ignore
ownership changes unless you also pass the--preserve-ownersflag.uniondiffdata-day10data-day9--output-typefile-odiffYou can also use tar archives as the input paths.uniondiffdata-day10.tardata-day9.tgz>diff.tarContributingIf you want to contribute touniondiff, you can do so by creating a pull request.
lease make sure to include a detailed description of the changes you're proposing.
Package: unionfind
unionfindis a package for unionfind.from unionfind import unionfind
u = unionfind(3) # There are 3 items.
u.unite(0, 2) # Set 0 and 2 to same group.
u.issame(1, 2) # Ask "Are 1 and 2 same?"
u.groups() # Return groups.See alsohttps://pypi.org/project/ortoolpy/RequirementsPython 3FeaturesnothingSetup$ pip install unionfindHistory0.0.1 (2015-4-3)first release
Package: unionizer
unionizer: V1.8.5

Unionizer helps developers pair objects together.Installing# Linux/macOSpython3pipinstall-Uunionizer# Windowspy-3-mpipinstall-UunionizerLogicunionizer.assign(1,2)# 2 isinstance of 1 and 5unionizer.assign(1,5)# 5 is instance of 1 and 2unionizer.assign(5,7)# 7 is only instance of 5, not 1 or 2# Set:1,(2,5)# Subset:5,7# Architecture:1(2,5(7))Local Tied Memory / Pairsbond:unionizer.Bond=unionizer.Bond(size=10)# Limit bond memory to 10.bond.assign(object_1,object_2)# Tie object_1 and object_2 together.# bond.delete(object_1, object_2) # Untie object_1 and object_2 frombond.filter(object_2)# Filter all pairs that are tied to object_2.bond.groups()# Return all pairs.bond.isinstance(object_1,object_2)# Check if object_1 and object_2 are paired.Global Tied Memory / Pairsunionizer.core# (VARIABLE of backend core class object) Stored memory with no size limit unless changed# Changing core params#     unionizer.core(unique=True, size=10) # Limit core memory to 10 and make all keys be instance variables.#     unionizer.set(unique=True, size=10) # Limit core memory to 10 and make all keys be instance variables.unionizer.assign(object_1,object_2)# Tie object_1 and object_2 together.unionizer.get(object_1)# Get object_1's tied object.unionizer.delete(object_1)# Untie object_1 from its tied object.unionizer.filter(object_2)# Filter all pairs that are tied to object_2.# Properties#     unionizer.vars # Return all instance variables.#     unionizer.groups # Return all pairs.#     unionizer.rules # Return all rules.#     unionizer.memory # Return all memory.
Package: unionml
UnionMLThe easiest way to build and deploy machine learning microservicesUnionMLis an open source MLOps framework that aims to reduce the boilerplate and friction
that comes with building models and deploying them to production.You can createUnionML Appsby defining a few core methods that are automatically bundled
into ML microservices, starting with model training and offline and online prediction.Built on top ofFlyte, UnionML provides a high-level
interface for productionizing your ML models so that you can focus on curating a better dataset
and improving your models.To learn more, check out the 📖Documentation.InstallingInstall using conda:condainstall-cconda-forgeunionmlInstall using pip:pipinstallunionmlA Simple ExampleCreate aDatasetandModel, which together form aUnionML App:fromunionmlimportDataset,Modelfromsklearn.linear_modelimportLogisticRegressiondataset=Dataset(name="digits_dataset",test_size=0.2,shuffle=True,targets=["target"])model=Model(name="digits_classifier",init=LogisticRegression,dataset=dataset)DefineDatasetandModelmethods for training a hand-written digits classifier:fromtypingimportListimportpandasaspdfromsklearn.datasetsimportload_digitsfromsklearn.metricsimportaccuracy_score@dataset.readerdefreader()->pd.DataFrame:returnload_digits(as_frame=True).frame@model.trainerdeftrainer(estimator:LogisticRegression,features:pd.DataFrame,target:pd.DataFrame,)->LogisticRegression:returnestimator.fit(features,target.squeeze())@model.predictordefpredictor(estimator:LogisticRegression,features:pd.DataFrame)->List[float]:return[float(x)forxinestimator.predict(features)]@model.evaluatordefevaluator(estimator:LogisticRegression,features:pd.DataFrame,target:pd.DataFrame)->float:returnfloat(accuracy_score(target.squeeze(),predictor(estimator,features)))And that's all ⭐️!By defining these four methods, you've created a minimalUnionML Appthat you can:Execute locallyto debug and iterate on your code.Serve Seamlessly with FastAPIfor online prediction.Deploy on a Flyte Clusterto scale your model training and schedule offline prediction jobs.ContributingAll contributions are welcome 🤝 ! Check out thecontribution guideto learn more about how to contribute.Gitpod
Package: unions
Bravo!  You have received a Medical Diploma in "unions" fromthe Orbital Convergence University International Air and Water Embassy of the Tangerine Planet.You are now officially certified to include "unions" in your practice.unionsdescriptionThis is a module that can reliably
ascertain the health status of software.(It's like a testing framework)install[ZSH] pip install unionsdocumentation (this opens a server process that sends HTML)[ZSH] unions sharesinternal status tests of the module[ZSH] unions internal-statusThese checks are run with pypi "body_scan""unions" is built from a fork of "body_scan"("body_scan" checks are written with "unittest")TutorialChecks are started simultaneously, unless "--simultaneous no"Create a status file (glob pattern "**/status_*.py").(The glob pattern can be modified with the progammatic python3 interface)# status_1.py

def check_1 ():
	print ("check 1")
	
def check_2 ():
	print ("check 2")
	
def check_3 ():
	raise Exception ("not 110%")

checks = {
	"check 1": check_1,
	"check 2": check_2,
	"check 3": check_3
}from a directory deeper than the status file "status_1.py"[ZSH] unions statusThis is the equivalent of:[ZSH] unions status --glob-string "**/status_*.py"The report then should appear like thispaths: [
	{
		"path": "../status_1.py",
		"empty": false,
		"parsed": true,
		"stats": {
			"passes": 2,
			"alarms": 1
		},
		"checks": [
			{
				"check": "check 1",
				"passed": true,
				"elapsed": [
					4.054199962411076e-05,
					"seconds"
				]
			},
			{
				"check": "check 2",
				"passed": true,
				"elapsed": [
					1.72930003827787e-05,
					"seconds"
				]
			},
			{
				"check": "check 3",
				"passed": false,
				"exception": "Exception('not 110%')",
				"exception trace": [
					"Traceback (most recent call last):",
					"  File \"/home/veganecology/.local/lib/python3.11/site-packages/unions/processes/scan/process/keg/check.py\", line 68, in start",
					"    checks [ check ] ()",
					"  File \"<string>\", line 13, in check_3",
					"Exception: not 110%"
				]
			}
		]
	}
]
alarms: [
	{
		"path": "../status_1.py",
		"checks": [
			{
				"check": "check 3",
				"passed": false,
				"exception": "Exception('not 110%')",
				"exception trace": [
					"Traceback (most recent call last):",
					"  File \"/home/veganecology/.local/lib/python3.11/site-packages/unions/processes/scan/process/keg/check.py\", line 68, in start",
					"    checks [ check ] ()",
					"  File \"<string>\", line 13, in check_3",
					"Exception: not 110%"
				]
			}
		]
	}
]
stats: {
	"alarms": 0,
	"empty": 0,
	"checks": {
		"passes": 2,
		"alarms": 1
	}
}Advanced TutorialIt's recommended to run unions programmatilly.An example of this can be found in the "_book/advanced tutorial"section of the documentation.Contactsbgrace2468@pm.me
Package: uniontypes
``uniontypes 0.1``============|build status|Union types For python.These appear other languages like Haskell (``Either``) andScala (``Union`` or ``\/``).This extends to any arbirary set of types.Examples--------Creating a union type~~~~~~~~~~~~~~~~~~~~~.. code-block:: python>>> from uniontypes import Union>>> u = Union[list, tuple, str]>>> u<class 'uniontypes.Union[list, tuple, str]'>Creating boxed values~~~~~~~~~~~~~~~~~~~~~.. code-block:: python>>> u([1, 2, 3])Union[list, tuple, str][list] [1, 2, 3]>>> u((1, 2, 3))Union[list, tuple, str][tuple] (1, 2, 3)>>> u('123')Union[list, tuple, str][str] '123'Accessing the inner wrapper types~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.. code-block:: python>>> u[list]<class 'uniontypes.Union[list, tuple, str][list]'>>>> u[tuple]<class 'uniontypes.Union[list, tuple, str][tuple]'>>>> u[str]<class 'uniontypes.Union[list, tuple, str][str]'>Class heirarchy~~~~~~~~~~~~~~~.. code-block:: python>>> isinstance(u([1, 2, 3]), u)True>>> isinstance(u([1, 2, 3]), u[list])True>>> isinstance(u([1, 2, 3]), (u[tuple], u[str]))FalseOption Types------------.. code-block:: python>>> from uniontypes import Option>>> oint = Option[int]>>> oint<class 'uniontypes.Option[int]'>>>> oint(1)Option[int] 1>>> oint(None)Nothing>>> oint(None) is oint.nothingTrue.. |build status| image:: https://travis-ci.org/llllllllll/uniontypes.svg?branch=master:target: https://travis-ci.org/llllllllll/uniontypes
Package: uniout
UnioutIt makes Python print the object representation in readable chars instead of the
escaped string.Example>>> from pprint import pprint
>>> langs = [
...     'Hello, world!',
...     '你好，世界！',
...     'こんにちは世界',
...     u'Hello, world!',
...     u'你好，世界！',
...     u'こんにちは世界'
... ]
...Before:>>> pprint(langs)
['Hello, world!',
 '\xe4\xbd\xa0\xe5\xa5\xbd\xef\xbc\x8c\xe4\xb8\x96\xe7\x95\x8c\xef\xbc\x81',
 '\xe3\x81\x93\xe3\x82\x93\xe3\x81\xab\xe3\x81\xa1\xe3\x81\xaf\xe4\xb8\x96\xe7\x95\x8c',
 u'Hello, world!',
 u'\u4f60\u597d\uff0c\u4e16\u754c\uff01',
 u'\u3053\u3093\u306b\u3061\u306f\u4e16\u754c']After:>>> import uniout
>>> pprint(langs)
['Hello, world!',
 '你好，世界！',
 'こんにちは世界',
 u'Hello, world!',
 u'你好，世界！',
 u'こんにちは世界']InstallationYou can install it via PyPI,sudo pip install unioutor download it manually.Changelogv0.3.7Switch to long-string syntax ('''or""") automatically.v0.3.6Fixed the issue with empty string.v0.3.5Make it still works for files.v0.3.4A better fix for the previous bug.v0.3.3Fixed the problem that Uniout can’t be installed by PIP.v0.3.2Show the original string if the escaped string can’t be decoded properly.Use better way to find string literals.Print more correct unescaped string representation.v0.3.1Fixed a bug when Uniout works with IPython.v0.3Thanks for the pull requests#3and#4from@timtan, it nowworks well withIPython,and also supports stderr.
Package: unipad
Uni Pad🦄 Left pad a string with UnicornsScreenshotInstall$ pip install unipadUsageimportunipadunipad.pad('yoginth',10)#=> 🦄🦄🦄yoginthAPIunipad.pad(input, length)Padsinputwith unicorns on the left side if it's shorter thanlength. Padding unicorns are truncated if they exceedlength.inputType:stringString to pad.lengthType:numberDefault:0Padding length.LicenseMITYoginth
Package: uniparser-albanian
Albanian morphological analyzerThis is a rule-based morphological analyzer for Albanian (sqi). It is based on a formalized description of literary Albanian morphology, which also includes a number of dialectal (Gheg) elements, and usesuniparser-morphfor parsing. It performs full morphological analysis of Albanian words (lemmatization, POS tagging, grammatical tagging).How to usePython packageThe analyzer is available as a Python package. If you want to analyze Albanian texts in Python, install the module:pip3 install uniparser-albanianImport the module and create an instance ofAlbanianAnalyzerclass. Setmode='strict'if you are going to process text in standard orthography, ormode='nodiacritics'if you expect some words to lack the diacritics (cinstead ofçandeinstead ofë). After that, you can either parse tokens or lists of tokens withanalyze_words(), or parse a frequency list withanalyze_wordlist(). Here is a simple example:fromuniparser_albanianimportAlbanianAnalyzera=AlbanianAnalyzer(mode='strict')analyses=a.analyze_words('Morfologjinë')# The parser is initialized before first use, so expect# some delay here (usually several seconds)# You will get a list of Wordform objects# The analysis attributes are stored in its properties# as string values, e.g.:foranainanalyses:print(ana.wf,ana.lemma,ana.gramm)# You can also pass lists (even nested lists) and specify# output format ('xml', 'json' or 'conll')# If you pass a list, you will get a list of analyses# with the same structureanalyses=a.analyze_words([['i'],['Të','dua','.']],format='xml')analyses=a.analyze_words([['i'],['Të','dua','.']],format='conll')analyses=a.analyze_words(['Morfologjinë',[['i'],['Të','dua','.']]],format='json')Refer to theuniparser-morph documentationfor the full list of options.Word listsAlternatively, you can use a preprocessed word list. Thewordlistsdirectory contains a list of words from a 31-million-wordAlbanian corpus(wordlist.csv) with 456,000 unique tokens, list of analyzed tokens (wordlist_analyzed.txt; each line contains all possible analyses for one word in an XML format), and list of tokens the parser could not analyze (wordlist_unanalyzed.txt). The recall of the analyzer on the corpus texts is about 93% and the corpus is sufficiently large, so if you just use the analyzed word list, the recall on your texts will probably exceed 90%.Description formatThe description is carried out in theuniparser-morphformat and involves a description of the inflection (paradigms.txt), a grammatical dictionary (sqi_lexemes_XXX.txt files), a list of productive lemma-changing derivations (derivations.txt), and a short list of analyses that should be avoided (bad_analyses.txt). The dictionary contains descriptions of individual lexemes, each of which is accompanied by information about its stem, its part-of-speech tag and some other grammatical/dialectal information, its inflectional type (paradigm), and English translation. See more about the formatin the uniparser-morph documentation.