Saravanan666/pypi-org huggingface dataset:
Package: hucache
hucacheA Declarative Caching Library for HumanUsageConstruct a cache instance
>>> redis_client = fakeredis.FakeStrictRedis()
>>> cache = CacheFactory.from_store_conn("redis", redis_client)


Use the cache on function

>>> @cache("add:{a}:{b}")
... def add(a, b, c=1):
...    return a + b + c
>>> add(3, 2)
6

The third argument c is not used in the cache key "add:{a}:{b}",
so the result will not change.
>>> add(3, b=3)
7
>>> add(3, b=3, c=2)
7
>>> add.invalidate(3, 3)
>>> add(3, b=3, c=2)
8

You can use positional argument or keywords argument as you wish.
>>> @cache("mul:{a}:{b}:{c}")
... def mul(a, b, c=2):
...   return a * b * c
>>> mul(3, 4)
24
>>> mul(3, 4) == mul(3, c=2, b=4) == mul(c=2, a=3, b=4) == mul(3, 4, 2)
True

Use the cache on class

>>> class Example(object):
...   def __init__(self, incr):
...       self.incr = incr
...   @cache("example.add:{a}:{b}:{c}")
...   def add(self, a, b, c=1):
...       return a + b + c + self.incr
...   @cache("example.mul:{a}:{b}:{c}")
...   @classmethod
...   def mul(cls, a, b, c=2):
...       return a * b * c

>>> Example(1).add(2, 3)
7
>>> Example(2).add(a=2, b=3) == Example(3).add(b=3, c=1, a=2)
True
>>> Example.mul(3,4)
24
>>> Example.mul(3,4) == Example.mul(3, b=4, c=2) == Example.mul(b=4,c=2,a=3)
True

>>> @cache("add_ref:{a.id}:{b.id}")
... def add_ref(a, b, c=1):
...    return a.id + b.id + c
>>> from collections import namedtuple
>>> Point = namedtuple('Point', 'id')
>>> add_ref(Point(3), Point(4))
8
Package: hucitlib
HuCit Knowledge BaseStatusNB:hucitlibis currently being ported from Python 2 to 3. For legacy-related
reasons, the version available on PyPi (hucitlib 0.2.9) still supports only Python 2.
If you need Python 3 support you may want to install version0.3.0available in theissue-3/py3 branch(you will need to install
it from sources as it currently requires a forked version ofsurf, since the officialsurfdoes not support Python 3 yet).DescriptionThe HuCit KB is a knowledge base about classical (Greek and Latin) texts, developed with the precise aim of supporting the automatic extraction of bibliographic references to such texts.The data model of the HuCit KB is based on the following ontologies:CIDOC-CRMFRBRooHuCitIt builds upon and connects with the following resources:Classical Works Knowledge BasePerseus CatalogPerseus Digital LibraryWikidataVIAFInstallationgit clone https://github.com/mromanello/hucit_kb.git
cd hucit_kb
python setup.py installOr viapip:pip install hucitlibCommand LineThe library comes with a (development) Command Line Interface.To see the documentation, try running:hucit --helpFor example, you can search works by name:hucit find "Iliad"or look up authors/works by CTS URNs:hucit find urn:cts:greekLit:tlg0012.tlg001StatsBasic statsTotalMinMaxMeanVarianceAuthor names48421273.127919.81298Author abbreviations774020.50.26309Work titles103541311.991546.4174Work abbreviations2377030.4572030.574496LOD statslink to Perseus Catalog (%)link to CWKB (%)link to VIAF (%)link to Wikidata (%)Authors4.91100.005.884.91ExampleThis is an example of how to use the HuCit KB programmatically:>>>importpprint>>>importpkg_resources>>>fromknowledge_baseimportKnowledgeBase>>>virtuoso_cfg_file=pkg_resources.resource_filename('knowledge_base','config/virtuoso.ini')>>>kb=KnowledgeBase(virtuoso_cfg_file)>>>search_results=kb.search('Omero')>>>printresult.to_json(){"name_abbreviations":["Hom."],"urn":"urn:cts:greekLit:tlg0012","works":[{"urn":"urn:cts:greekLit:tlg0012.tlg001","titles":[{"language":"it","label":"Iliade"},{"language":"la","label":"Ilias"},{"language":"en","label":"Iliad"},{"language":"de","label":"Ilias"},{"language":"fr","label":"L'Iliade"}],"uri":"http://purl.org/hucit/kb/works/2815","title_abbreviations":["Il."]},{"urn":"urn:cts:greekLit:tlg0012.tlg002","titles":[{"language":"en","label":"Odyssey"},{"language":"de","label":"Odyssee"},{"language":"la","label":"Odyssea"},{"language":"fr","label":"l'Odyss\u00e9e"},{"language":"it","label":"Odissea"}],"uri":"http://purl.org/hucit/kb/works/2816","title_abbreviations":["Od.","Odyss."]},{"urn":"urn:cts:cwkb:927.2814","titles":[{"language":"la","label":"Epigrammata"}],"uri":"http://purl.org/hucit/kb/works/2814","title_abbreviations":["epigr."]}],"uri":"http://purl.org/hucit/kb/authors/927","names":[{"language":"fr","label":"Hom\u00e8re"},{"language":"la","label":"Homerus"},{"language":null,"label":"Homeros"},{"language":"en","label":"Homer"},{"language":"it","label":"Omero"}]}
Package: huDjango
h1. huDjangohuDjango contains a collection of small extensions th the [http://www.djangoproject.com/Django Web framework] we use at HUDORA.auth.backends.!EmailBackend -     Authenticate against django.contrib.auth.models.User the same way Django does by default except that the users can use their E-Mail address instead of the username to authenticate.auth.backends.!ZimbraBackend - Authenticate against a Zimbra Server via LDAP. Users have to use their full E-Mail adress and Zimbra Passwort to log in. The Backend creates a new entry in the Django User Database if authentication against Zimbra is successfull but no matching E-Mail in Django adress is found.fields.scalingimagefield - images with automatic scalingfields.defaulting - Django fields with more elaborate default valuestemplatetags.hudjango - format_address tag for formating the AddressProtocol, html_euro,html_cent,g2kgandlink_objecttags.PrinterChooser - selection of a printer which is stored in a cookie.serializers.queryset_to_xls - generate Excel/XLS file from a queryset.h2. DownloadYou can get huDjango at the “Python Cheeseshop”:http://pypi.python.org/pypi/huDjango/or at “GitHub”:http://github.com/hudora/huDjango.h2. Changes0.91: dedupingS3storage.DedupingS3storage.py dtores file in S3 merging duplicate files0.90: decorators.ajax_request(), New CouchDB stuff: CouchDBField and CouchDB template loader0.88: format_addressproto() now understands dicts0.86: added serializers.queryset_to_xls, fixes for require_login and ZimbraBackend0.85: deUmlaut template filter0.84: format_addressproto,  more robust clienttracking, don’t generate links for empty image IDs, fixed {% imageid … urlonly %} templatetag0.83: hudjango.auth.decorators.require_login implements a bridge between Apache HTTP authentication and Django sessions0.82: Storage Modules, huImage0.78: hudjango.!PrinterChooser() functionality and respective template tags.0.77: Django 1.0 compatibility0.74: template tags / filters now work with Djangos new [http://www.djangoproject.com/documentation/templates/#autoescapeautoescape] functionality. Needs Django version > r6844.0.73: Extracted templatetags from the internal MoftS codebase.0.72:  removed hudjango.fields.audit , support for Django Revision 7403.h2. Alternativeshttp://pypi.python.org/pypi/django-auth-ldap
Package: hudson
hudsonA minimal python project template that can be used for CLIs, APIs, GRPC, and other python applications.UsageClone this repository.Replace all instances ofhudsonacross the entire repository with the namespace of your project.Rename the directoryhudsonwith the same name too.Replacepyproject.tomlwith relevant values for your project.Usepyenvfor managing your python environment.Set up your virtual environment.Run./scripts/install.shRun./scripts/test.shYou're all set! Make this readme whatever you want now. The future is yours!
Package: hudsonthames-sphinx-theme
Hudson and Thames Sphinx ThemeThis is the Sphinx theme for Hudson and Thames packages documentation. It is based on thesphinx_rtd_themeproject, but uses a different style and links to connect all packages and
research articles.To use the Hudson and Thames Sphinx theme, addhudsonthames_sphinx_themeto the requirements list,
and change the following line in the documentation config file:html_theme = 'hudsonthames_sphinx_theme'Who is Hudson & Thames?Hudson and Thames Quantitative Research is a company with a focus on implementing the most cutting edge algorithms in
quantitative finance. We productionalize all our tools in the form of libraries and provide capability to our clients.Adding our libraries to your company’s pipeline is like adding a department of PhD researchers.WebsiteGithub GroupContact usThe best place to contact the team is via the Slack channel. Alternatively you can email us at:research@hudsonthames.org.Looking forward to hearing from you!LicenseThis project is licensed under an all rights reservedlicence.
Package: hudsucker
Generate MtG proxy sheets from mythicspoiler.com & other siteshudsuckertakes a text file specifying a list of MtG cards and generates a set of 3x3 PDF sheets.Unless otherwise specified, the source images are pulled frommythicspoiler.com.$ hudsucker cards.txt
./cards01.pdfcards.txt# Example input file, comments and blank lines are supported

# Cards names are listed one per line, misspellings are okay
Pia Nalaar              # Inline comments are also supported
Saheeli's Artistry      # Spaces, capitals, and punctuation are fine

# For multiples of the same card, list them multiple times
Strip Mine
Strip Mine

# The page for the card can be specified
http://mythicspoiler.com/kld/cards/wispweaverangel.html

# Or the image file can be listed explicitly
http://mythicspoiler.com/kld/cards/trinketmastercraft.jpg
http://www.mythicspoiler.com/kld/cards/gontilordofluxury.jpg

# Sites other than mythicspoiler.com can be specified
# A best attempt will be made to determine the card image
http://magiccards.info/vma/en/4.html # Black Lotus

# Image files from any site can also be listed explicitly
http://magiccards.info/scans/en/vma/1.jpg # Ancestral Recallcards01.pdfInstallationpip install hudsuckerIf it fails with the following error message:ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, abortingTry installinglibjpeg(or equivalent for your OS):# on OS X with homebrew
brew install libjpegHelpusage: hudsucker [-h] [-v] [-b N] [-o DIR] [-p N] [-q N] [-s URL] [-c DIR]
                 [-n] [-r]
                 FILE [FILE ...]

Hudsucker Proxy Generator - generate MtG proxy sheets

positional arguments:
  FILE                  each line of FILE should be a MtG card name, or a url

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         print verbose details

proxy sheet options:
  -b N, --border N      border width in inches, defaults to 0.072
  -o DIR, --output DIR  output dir, defaults to current dir
  -p N, --resolution N  print resolution of output PDF, defaults to 600
  -q N, --quality N     quality to use for JPEG encoding, defaults to 95
  -s URL, --site URL    site to search for card images, defaults to
                        mythicspoiler.com

caching options:
  NOTE: Careful turning off cache, search engines may ban your IP

  -c DIR, --cache DIR   cache dir, defaults to hudsucker_cache
  -n, --no-cache        don't cache any downloaded files
  -r, --refresh         force refresh of any cached downloadsContributingReport bugs or make pull requests onGitHub.
Package: hue
Python client for the Philips Hue lighting system. I figured out almost all of
this by monitoring the traffic on my router. I then foundhttps://github.com/alistairg/IndigoHue/blob/master/Hue.indigoPlugin/Contents/Server%20Plugin/plugin.pywhich gave some clues about RGB support and the magic strings (select, lselect)
to send alerts.Sample Usage is not docs:from hue import Hue;
h = Hue(); # Initialize the class
h.station_ip = "192.168.1.222"  # Your base station IP
h.get_state(); # Authenticate, bootstrap your lighting system
l = h.lights.get('l3') # get bulb #3
l.bri(0) # Dimmest
l.bri(255) # Brightest
l.rgb(120, 120, 0) # [0-255 rgb values]
l.rgb("#9af703") # Hex string
l.on()
l.off()
l.toggle()
l.alert() # short alert
l.alert("lselect") # long alert
l.setState({"bri": 220, "alert": "select"}) # Complex sendHave fun! Let me know how you’re using it.
Package: hue7jip8
Huē-ji̍p匯入語料專案，目前語料都放在Taiwanese-Corpus Github，各專案詳細內容請洽各專案README。會當參考服務的文件台語臺灣閩南語常用詞辭典-詞條形式：全漢、全羅句數：28830（2018/07/18）語料：Githubpython manage.py 教典詞條臺灣閩南語常用詞辭典-例句形式：全漢、全羅句數：13835（2018/07/05）語料：Githubpython manage.py 教典例句TGB通訊形式：漢羅、華語平行語料句數：35017（2018/07/05）語料：Githubpython manage.py TGB通訊iCorpus台華平行新聞語料庫形式：全羅、華語平行語料句數：83544（2018/07/05）語料：Githubpythonmanage.pyicorpus臺華平行新聞語料庫教育部詞彙分級計劃形式：全漢、全羅句數：61354句（2018/07/05）語料：APIpython manage.py 詞彙分級台語文語料庫蒐集及語料庫為本台語書面語音節詞頻統計形式：漢羅抑是全羅段數：193071段， 其中漢羅128505段、全羅64566段（2018/07/24）語料：Githubpython manage.py 台語文語料庫蒐集及語料庫為本台語書面語音節詞頻統計台語文數位典藏資料庫形式：漢羅、全羅段數：67005段，其中62246段對會齊，4759段無法度對齊就用羅馬字（2018/07/30）語料：Githubpython manage.py 台語文數位典藏資料庫教育部臺灣閩南語字詞頻調查工作形式：漢羅、全羅段數：59300段，其中53593段對會齊，5707段無法度對齊就用羅馬字（2018/07/24）語料：Githubpython manage.py 教育部臺灣閩南語字詞頻調查工作白話字文獻館形式：漢羅、全羅段數：43493段，其中31195段對會齊，12298段無法度對齊就用羅馬字（2018/07/31）語料：Githubpython manage.py 白話字文獻館台灣植物名彙形式：羅馬字、華語漢字句數：354詞（2018/07/24）語料：Githubpython manage.py 台灣植物名彙台灣白話基礎語句形式：羅馬字、華語漢字句數：61354詞翻譯對照（2018/07/24）語料：Githubpython manage.py 台灣白話基礎語句服務文件族語族語辭典python manage.py 族語辭典0下載 Pangcah # 完整匯入。較慢，愛五六工
# python manage.py 族語辭典0下載 Pangcah --下載幾筆 10 # 匯入10筆就好，試驗用
python manage.py 族語辭典1轉檔 Pangcah
python manage.py 族語辭典2匯入 Pangcah語言代碼請參考程式。下載好的音檔在這。台語教典詞條音檔形式：全漢、全羅詞數：語者：王秀容python manage.py 教典音檔0下載 dropbox # 20160926掠的版本
# python manage.py 教典音檔0下載 官網沓沓掠 # 較慢，愛一工
python manage.py 教典音檔1轉檔 # 轉全部mp3音檔做16000Hz的wav
# python manage.py 教典音檔1轉檔 --匯入幾筆 100 # 轉100筆就好，試驗用
python manage.py 教典音檔2匯入 # 完整匯入
# python manage.py 教典音檔2匯入 --匯入幾筆 100 # 匯入100筆就好，試驗用新北市900例句形式：全漢、全羅句數：150句語者：王秀容python manage.py 新北市900例句 --頻率 16000 # 原始音檔頻率44100Hz準做欲用秀容老師的聲，請配合教典做伙用，無訓練會產生錯誤台文/華文線頂辭典形式：台華英辭典
詞數：python manage.py 台華辭典臺灣閩南語卡拉OK正字字表pdf→純文字→臺灣言語資料庫yaml臺語→臺語pythonmanage.py匯入資料https://Taiwanese-Corpus.github.io/moe_minkalaok/閩南語卡拉OK正字字表.yamliCorpus台華平行新聞語料庫漢字臺羅版純文字→臺灣言語資料庫yaml白話字→全漢全羅pythonmanage.py匯入資料https://Taiwanese-Corpus.github.io/icorpus_ka1_han3-ji7/臺華平行新聞語料庫.yaml咱的字你敢捌－台語漢字html→臺灣言語資料庫yaml臺語→臺語988筆文本資料pythonmanage.py匯入資料https://Taiwanese-Corpus.github.io/Linya-Huang_2014_taiwanesecharacters/咱的字你敢捌.yaml臺語國校仔課本允言整理過的doc→json→臺灣言語資料庫yaml全漢全羅
0*https://taiwanese-corpus.github.io/kok4hau7-kho3pun2/臺語國校仔課本.yaml新約聖經語料允言整理過的doc→json→臺灣言語資料庫yaml全漢全羅https://Taiwanese-Corpus.github.io/Pakhelke-1916_KoTan-1975_hiantaiekpun-2008_taiwanese-bible/新約聖經語料.yaml猶未整理遮的語料攏猶未提供臺灣言語資料庫yaml格式，毋過大部份攏好處理。語料專案照處理方法排：%8F%E8%B3%87%E6%96%99%E5%BA%AB.yaml`荷華文語類參xls厦荷詞典xls駱嘉鵬老師華語臺語客語文件-字典、對應表xlsEmbree台英辭典xls廈英大辭典doc→csv台日大辭典台語譯本sql→csv吳守禮《國臺對照活用辭典》電子化專案內，有parser會當轉做jade格式華台語文對譯html+xls+pdf（華語→）臺語猶未整理的語料csv、xls…網路語料客家話教育部臺灣客家語常用詞辭典pythonmanage.py匯入資料https://Taiwanese-Corpus.github.io/moedict-data-hakka/臺灣客家語常用詞辭典網路版語料.yaml客語能力認證資料檔pythonmanage.py匯入資料https://Taiwanese-Corpus.github.io/hakka_elearning/臺灣客話詞彙資料庫語料.yaml猶未整理天光客語辭典族語族語E樂園pythonmanage.py匯入資料https://Taiwanese-Corpus.github.io/klokah_data_extract/族語E樂園.yaml阿美語方敏英字典Virginia Fey's Amis Dictionarypythonmanage.py匯入資料https://Taiwanese-Corpus.github.io/amis-data/dict-amis.yaml猶未整理原住民族語言線上詞典Dictionnaire Amis-Français蔡中涵委員阿美語字典噶哈巫語分類辭典
Package: hue-api
Hue APIAsync API and CLI tools for interacting with Hue LightsDocumentation:hue-api.nirantak.comSource:github.com/nirantak/hue-apiInstallationThis is an async client to interact with the Hue Bridge API.The minimum Python version required to run this is 3.8Install the package using pip:pipinstallhue-apiUsageFollowthis linkto create a Hue API user if not already known (API reference)Using the CLIhue--help# Get the version of hue-api installedhueversion# To find your Hue Bridge IP address go to discovery.meethue.com, or run:huebridgediscoverUsing the APIfromhueimportBridge,Light# Create a light object with the light id (number), Bridge IP and userlight=Light(1,ip="your-hue-bridge-ip",user="hue-api-user")# from an async functionasyncdefmain():awaitBridge.discover()awaitlight.power_on()# or from a sync contextimportasyncioasyncio.run(Bridge.discover())asyncio.run(light.power_on())ChangelogSee the fileCHANGELOG.mdLicenseThis project is licensed under the terms of theMIT license
Package: hueber
description.Hueber is a fully type-checked Python API for the Philips Hue lighting system. Tooling is also included which enables you to declare update statements (also type-checked) and which can then be safely and efficiently pushed to a Philips Hue Bridge. You are free to use either parts ofhuebertogether or seperately that is up to you (e.g. use the state builder tools with another API).please note!That as of now this does not cover the full Philips Hue API and only covers/lights,/groupsand/config. It would not take much work to add them but its just not a prioritiy for me now.prerequisites.Python 3.6 (re: static typing annotation)Philips Hue bridge ver2 (I have not tested this with the first generation) connected to your local networkgetting started.Open a REPL and start with instantiating aBridge()by passing it the local IP address:>>> hue = Bridge("192.168.0.5", "r3aLLy-L0nG-Us3RName-H3r3")
>>> print(Bridge)
Bridge(192.168.0.5, xxxxx...-H3r3)note:Philip’s providse documenation on how to find your bridge on your network. Please consulttheir documentation.From here all your lights and groups are accessible via the Bridge type (I have only shown an abridged version of the output below):>>> print(hue.lights)
{1: Light(1, Bedroom Dresser, ... ), 5: Light(5, Kitchen Cabinets, ... ) ... }
>>> print(hue.groups)
{1: Group(1, Kid's Bedroom, ...), 3: Group(3, Kitchen, ...) ... }As you can see above theBridge.lightsandBridge.groupsattributes are a collection. An individuallightorgroupcan be accesed via its index which is the ID given to it by the Philips Hue Bridge:>>> hue.lights[1]  # select light with id 1
Light(1, Coffee Station, Dimmable light)
>>> hue.lights[1].data  # return a dict of all its attributes
{'state': {'on': False, 'bri': 77, 'alert': 'select', 'reachable': True},
'type': 'Dimmable light', 'name': 'Coffee Station', 'modelid': 'LWB014',...
}This is all well and good but what if you want to change the state or your light or group? Use the Light-/GroupBuilders to easily construct update strings:>>> from hueber.lib import LightBuilder
>>> new_update = LightBuilder()
>>> new_update["on"] = True
>>> new_update["bri"] = 254
>>> hue.lights[1].push(new_update.update_str())
[{'success': {'/lights/1/state/on': True}}, {'success': {'/lights/1/state/bri': 254}}]All*Buildertypes are just adictunderneath so all of the methods and idioms you use for adictshould be available to aBuilder.going further.This code is particularly well documented (I think) so please dig into the source if you have any more questions or, if you think something really does need further explanation open an issue and I will do my best to updated the README.contributing.I am happy to accept a pull request, look into the TODO.rst file for gaps or features I am looking to implement down the road. Please make sure any PRs are off of thedevbranch otherwise it will just not be accepted and be sure to include your name/handle in the contributors file. Additionally, make sure you runmypyover the project directory.
Package: huechanger
### Hue Changer Package [![Build Status](https://travis-ci.org/guemues/hue-changer.svg?branch=master)](https://travis-ci.org/guemues/hue-changer)You have a colorful image and you want to make it red. This package is for you. There is many more method to turn images to grayscale but there is no other package to turn images to other colors. With this package you can turn images a specific HUE ranges.You can easily install the package via pip. This package only tested in python 3.6.```pip intall huechanger```**change_in_range** method is taking 3 channel numpy array as RGB image and return an RGB image with maximum hue and minumum hue```pythonurl = "https://snag.gy/uFPG2T.jpg"filename = url.split("/")[-1]r = requests.get(url, timeout=1)if r.status_code == 200:with open(filename, 'wb') as f:f.write(r.content)t = cv2.imread(filename)MIN_HUE = 10MAX_HUE = 30t = cv2.cvtColor(t, COLOR_BGR2RGB)new_image = change_in_range(t, MIN_HUE, MAX_HUE)```<img src="https://snag.gy/V25svq.jpg" width="200">will be turn in to<img src="https://snag.gy/kduXwj.jpg" width="200">Enjoy with colorsThis python package is implemented for an EPFL cognitive science semester course project.
Package: huecli
hueclihuecli is a cli application that can be used to control simple functions of philips hue lightsUsage:usage: hue [-h] ...

positional arguments:
  {list,switch,color}

optional arguments:
  -h, --help           show this help message and exit$ hue color --help
usage: hue color [-h] [-d] [-g] [-a ADDRESS] ID COLOR

Change color of lights

positional arguments:
  ID                    ID of the light or group to manipulate.
  COLOR                 Hex color to change light to.

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Add extended output.
  -g, --group           Switch group instead of individual light
  -a ADDRESS, --address ADDRESS
                        IP address of the Hue bridge$ hue switch --help
usage: hue switch [-h] [-d] [-g] [-a ADDRESS] SUBCOMMAND ID

Switch lights on and off. Supported subcommands are: off, on

positional arguments:
  SUBCOMMAND            Subcommand for switch command.
  ID                    ID of the light or group to manipulate.

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Add extended output.
  -g, --group           Switch group instead of individual light
  -a ADDRESS, --address ADDRESS
                        IP address of the Hue bridge$ hue list --help
usage: hue list [-h] [-d] [-a ADDRESS]

List available lights

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Add extended output.
  -a ADDRESS, --address ADDRESS
                        IP address of the Hue bridge
Package: hue-color-converter
Philips Hue Color Converter  (CIE xyY)Converts RGB to CIE xyY for Philips Huefromhue_color_converterimportConverterconverter=Converter()# optionally provide device id or "A", "B", "C" color gamut for more accurate colors(x,y),Y=converter.hex_to_xyy("ff00ff")# calculated brightness is on the scale of 0-1converter.xyy_to_hex((0.3209,0.1541),Y=0.2848)Clickhereto see which color gamuts are supported for your device.Installing hue-color-converterpipinstallhue-color-converterLicenseMIT
Package: huectl
A very simple Philips Hue command line tool and controller classBased on the phue python libraryhttps://github.com/studioimaginaire/phuePublished under the GWTFPL -http://www.wtfpl.net“Hue Personal Wireless Lighting” is a trademark owned by Koninklijke Philips
Electronics N.V., see www.meethue.com for more information.I am in no way affiliated with the Philips organization.
Package: huedominance
huedominanceProvidesHue Range Dominance Index (HRDI)algorithm — a new vegetation index proposed for PhenoCam plant phenology image analysis.For comparison with Green Chromatic Coordinate (GCC), agccfunction is available, too.To install:pip3 install huedominanceTo use from command line (example):python3-mhuedominance100170green_leaves.jpgTo use in your Python code:fromhuedominance.hrdiimporthrdifromhuedominance.gccimportgccfromPILimportImageimage=Image.open('/path/to/your/image')green_leaves_hrdi,hrdi_image=hrdi(image,100,170,make_illustration=True)green_leaves_gcc,gcc_image=gcc(image,make_illustration=True)hrdi_image.save('/path/to/hrdi/illustrative/signal/image','JPEG')gcc_image.save('/path/to/gcc/illustrative/signal/image','JPEG')red_leaves_hrdi,_=hrdi(image,-30,10)Please refer to Python help on functionhrdifor details about the algorithm.