semvec/pypi-packages huggingface dataset:
drilsdown 2.4.91
A collection of tools for jupyter notebooks
License: MIT

[![Build Status](https://travis-ci.org/Unidata/drilsdown.svg?branch=master)](https://travis-ci.org/Unidata/drilsdown)
## Consolidated repo of the [DRILSDOWN](https://unidata.github.io/drilsdown/) project 
### an NSF Earthcube supported effort

DRILSDOWN (Drawing Rich Integrated Lat-lon-time Subsets from Dataservers Online into Working Notebooks) is a project to facilitate access ro detailed visualizations (in the Integrated Data Viewer, [IDV](http://unidata.ucar.edu/idv)) of Cases of Interest (user-defined) within a Python-based geo-space x time statistical data analyses -- if the data for such visulaizations are available online in nice aggregated repositories. 

--------------
#### The basic capabilities

1. Jupyter notebook interactions with an IDV session on the local machine: **ipython_IDV extension**. 

2. IDV enhancements (analysis codes, color scales, templates visible in favorites folders): the **Mapes IDV Collection**. 

3. Jupyter-based mechanisms (an IDV kernel) for writing new IDV Jython analysis codes: **JyIDV or iJython**. 

4. Ways to "teleport" a template visualization to Places & Times of Interest: [**idv_teleport**](https://suvarchal.github.io/IDV_teleport/), a Python command line tool.

5. Ways to publish template IDV bundles, template notebooks, and final results to a RAMADDA repository, where they are viewable via browser as well as accessible digitally: **ramadda_publish, RAMADDA plugin**.

------------
#### How to get the goodness

       pip install drilsdown 

See the examples, and documentation for the parts. These capabilities are in different languages and forms, and can be useful individually, but are especially powerful together.
colour-printing 0.3.19
colour-printing
License: MIT
Keywords: python package print

Colour-printing
===============

开发者小工具：用颜色,等级区分终端输出信息类型，自定义输出模板，标识出重要信息，日志输入到文件

::

   pip install colour-printing

..

   Support:Python 3.+ - 内置： - info - success - error - warning -
   debug

示例默认模板
^^^^^^^^^^^^

::

       from colour_printing.default import log
       
       log.info("hello world!")
       log.error("hello world!")
       log.success("hello world!")
       log.warning("hello world!")
       log.debug("hello world!")
       
       

小工具
^^^^^^

::

       from colour_printing import cprint,cword

       # 打印色彩字符
       cprint('default')
       cprint('hello', fore=Fore.RED)
       
       #或者只要色彩字符
       s1 = cword('I', fore=Fore.YELLOW)
       s2 = cword('LOVE','China', fore=Fore.RED)
       
       print(s1, s2[0], s2[1])

.. figure:: https://github.com/Faithforus/Colour-printing/blob/master/default.png
   :alt: image

   image

创建配置模板文件
~~~~~~~~~~~~~~~~

      cprint -h # 查看帮助

::

   >> cd /home/faith/GIT/Colour-printing

   >> cprint (-t template) [-n config_filename]

..

   需要注意 - template (模板): 具体由format实现，所以格式要求
   “{}{}{}{}”且需包含{**message**}字段

自定义模板/样式/新增level
^^^^^^^^^^^^^^^^^^^^^^^^^

::

       from colour_printing.custom import PrintMe,level_wrap

       p = PrintMe(cp_config:CPConfig, my_var1='',my_var2='') 
       # 可另外载入自定义变量(可选) 
       
       p.log_handler.run(log_name='',log_path='')  
       # 日志输出到文件，参数可选
       
       p.set_default(set_level='info',time='2019')
       # 设置默认值，将会覆盖配置文件值，其中set_level：指定设置的level.不指定则所有

       # p.close()
       # p.print_filter=['info','error']

       p.info('hello')
       p.error('hello')
       p.warning('hello')
       p.success('hello')

       #新增level
       >>> cprint -l critical;other1;other2
       
       class NewOne(PrintMe):
           #装饰新增level func
           @level_wrap
           def critical(self, data:dict):
               """最高优先级,对data的操作会影响后续操作(日志,打印)的输出内容"""

       n = NewOne(cp_config)

输出信息
^^^^^^^^

::

       class VLog(PrintMe):
           def handler_record(self,record: dict):
           """record不受level函数影响,处理日志信息 重写此函数以应用每个不同的使用场景 """
               print("handler_record: ",record)
       
       vlog = Vlog(cp_config)