Saravanan666/pypi-org huggingface dataset:
Package: up2b
English命令行管理太麻烦？试试up2b-gui吧！UP2B一个能在终端中将图片上传到图床的包。支持 Linux、macOS 和 Windows。特点支持以下图床自动上传:sm.msimgse.com(原imgtu.com)github.comimgtg.com成功上传到github后会返回jsdelivr的CDN链接，加快在中国境内对图片的访问速度。支持jpeg/jpg和png图片的自动压缩，但仅在测试阶段，可能有些小问题，如果你不想在使用此功能时出现错误或达不到预期则不建议使用。怎么用安装up2b包:pipinstallup2b安装后，会多出一条up2b命令：Usage: python -m up2b [OPTIONS] COMMAND [ARGS]...

Options:
	-h, --help     显示本帮助信息
	-v, --version  显示版本信息
Commands:
	choose            选择图床
	config-watermark  配置文字水印
	current           显示正在使用的图床
	list              列出支持的所有图床
	login             保存图床登录信息
	login-git         保存 git 登录信息
	upload            上传图片1 选择图床第一次使用时，必须先选择图床。up2b的choose命令的可选值为：0sm.ms1imgse.com2github.com4imgtg.com# 如果你想选择sm.msup2bchoose0你可能也注意到了，图床的 code 不连续，这是因为最初写这个项目的时候没有考虑到一些图床挂掉的可能性，删掉一些挂掉的图床后，为了使配置文件不冲突，所以图床 code 无法连续。在 1.0 版本中，将不会再使用数字作为图床的 code，这个问题将会解决，同时会启用全新的配置文件，与 0.X.X 版本的配置文件将不通用。2 保存认证信息普通图床：git仓库本身并不算是图床，所以git仓库之外的图床都是普通图床。使用普通图床时，用login命令进行认证信息的配置，如：up2bloginusernamepasswordgit仓库：此包所指的git仓库包括github。使用git仓库作为图床，需要用或login-git命令进行认证信息的配置。认证信息需要四个参数：ACCESS_TOKEN私密令牌USERNAME用户名REPO仓库名FOLDER想要保存在仓库里的哪个文件夹中，会自动创建不存在的文件夹比如，我想将图片保存在image-bed仓库里的md文件夹内，输入此命令：up2blogin-gitaccess_tokenusernameimage-bedmd3 (可选) 在 typora 内填写命令最重要的上传功能：Usage: up2b upload [OPTIONS] [IMAGE_PATH]...

	上传图片

Options:
	-aw, --add-watermark  对要上传的图片添加文字水印
	-ac, --auto-compress  允许自动压缩图片
	-ic, --ignore-cache   忽略数据库缓存，强制上传图片
	-h, --help            Show this message and exit.将up2b upload命令填到Typora里，命令里有个参数-ac为可选参数，其作用为开启自动压缩功能，如果不加此参数，上传图片时不会自动压缩，超出图床限制大小就会报错。而添加此参数，则会自动将超限图片压缩到限制图片大小或以下，保证顺利上传。但自动压缩功能当前没有经过严谨地测试，所以不能保证不出问题，有问题请将异常的截图发在电报群里。开启自动压缩功能：up2bupload-ac不开启自动压缩功能：up2bupload你也可以添加文字水印：up2bupload-aw但需先配置文字水印的相关信息：up2bconfig-watermark-50-5050'test watermark''/path/of/font/font.ttf'48自行打包如果此项目中更新了某些特性对你来说很有用，但尚未发布新的 release，那么你可以自行打包安装。创建虚拟环境如果你不担心对环境中的其他包产生影响，也不介意自己的 Python 库中多一些可能永远用不到的包，则可以忽略此步。如果你使用的环境管理工具为 pthon 内置的 venv，请自行创建环境，这里不多介绍。condacreate-nup2b-temppython=3.10
condaactivateup2b-temp安装依赖pipinstallbuild打包python-mbuild会在项目的根目录创建dist目录，里面就有打包好的whl文件，安装即可：pip install -U dist/up2b-*-py3-none-any.whlTODO鉴于图床网站凉的速度超乎想象，所以在下个大版本中我不打算再对任何图床进行支持，而是使用配置文件的方式由用户自行添加图床，并添加检测图床可用性的功能。以下是 v1 版本的初步功能设计。设计通用配置文件规则图床类型gitapi非api图床可用性检测及无效标记对配置文件中的图床进行可达（超时）检测对不可达（超时）的图床添加一个无效标记，并记录检测时间用户可设置检测周期，在检测周期内不会检测无效图床以节约时间用户可设置删除（软删除）无效图床配置的周期次数，当达到或超过此次数的检测周期后，将在配置文件中将此图床标记为永久失效（软删除）用户可在配置文件中删除无效标记本地网页配置配置文件规则复杂，为了降低用户的使用成本，为用户提供网页版可视化配置项。可配置规则可检测可用性可设置无效性检测周期可手动添加、删除无效标记v1 版本后将不再维护 up2b-gui 项目，将可视化配置转移动网页配置中。除以上功能外，仍需考虑的点有：技术栈的选择python 虽然简单，但是为了更好地支持网页配置和降低前后端维护成本，我也在考虑 node 实现。同时，使用图床的人中有一些普通用户，既不懂 node，也不懂 python，这种情况下需要使用可编译语言发布二进制可执行文件，所以 Go 也在考虑的范围内。当前我正在接触 rust，也不排除用 rust 实现。配置文件的类型当前的配置文件是 json，如果一旦规则复杂起来，json 可能就不太适合作为可编辑的配置文件了，故需在 yaml 和 toml 中作出选择。
Package: up2b2
这是基于sapic的一个小的扩展模块，用来将上传的图片保存到 BackBlazeB2安装正式版本$ pip install -U up2b2开发版本$ pip install -U git+https://github.com/sapicd/up2b2.git@master开始使用此扩展请在部署sapic图床后使用，需要
其管理员进行添加扩展、设置钩子等操作。添加：请在站点管理-钩子扩展中添加第三方钩子，输入模块名称：up2b2，
确认后提交即可加载这个模块（请在服务器先手动安装或Web上安装第三方包）。配置：在站点管理-网站设置底部的钩子配置区域配置 BackBlaze B2 相关信息。Bucket即桶名称，要求公开可读。在账户-应用密钥中，可以看到KeyID，生成新的主应用程序密钥即可获取应用密钥。访问域名请浏览档案，在桶中任意上传文件可获取友好URL或S3 URL，任选一种前缀即可：友好URL：https://f005.backblazeb2.com/file/<Bucket>/S3 URL：https://<Bucket>.s3.us-east-005.backblazeb2.com/使用：同样在站点管理-网站设置上传区域中选择存储后端为up2b2即可，
后续图片上传时将保存到B2。上传图片的sender名称是：up2b2
Package: up2cos
这是基于picbed的一个小的扩展模块，用来将上传的图片保存到腾讯云对象存储(COS)安装正式版本$ pip install -U up2cos开发版本$ pip install -U git+https://github.com/staugur/picbed-up2cos.git@master开始使用此扩展请在部署picbed图床后使用，需要
其管理员进行添加扩展、设置钩子等操作。添加：请在站点管理-钩子扩展中添加第三方钩子，输入模块名称：up2cos，
确认后提交即可加载这个模块（请在服务器先手动安装或Web上安装第三方包）。配置：在站点管理-网站设置底部的钩子配置区域配置腾讯云相关信息，
如加速域名、Bucket、SecretID及KEY等（请在腾讯云创建一个对象存储服务，并在
访问管理-访问密钥-API密钥管理中拿到SecretId、SecretKey；允许使用子用户
的密钥，要求拥有COS管理权限）。使用：同样在站点管理-网站设置上传区域中选择存储后端为up2cos即可，
后续图片上传时将保存到腾讯云。上传图片的sender名称是：up2cos
Package: up2oss
这是基于picbed的一个小的扩展模块，用来将上传的图片保存到阿里云对象存储(OSS)安装正式版本$ pip install -U up2oss开发版本$ pip install -U git+https://github.com/staugur/picbed-up2oss.git@master开始使用此扩展请在部署picbed图床后使用，需要
其管理员进行添加扩展、设置钩子等操作。添加：请在站点管理-钩子扩展中添加第三方钩子，输入模块名称：up2oss，
确认后提交即可加载这个模块（请在服务器先手动安装或Web上安装第三方包）。配置：在站点管理-网站设置底部的钩子配置区域配置阿里云相关信息，
如用户域名、Bucket、AK及SK等（请在阿里云创建一个对象存储服务，并在
AccessKey密钥管理中拿到AK、SK；允许使用RAM子用户的密钥（允许编程访问），
要求拥有OSS管理权限）。使用：同样在站点管理-网站设置上传区域中选择存储后端为up2oss即可，
后续图片上传时将保存到阿里云。上传图片的sender名称是：up2oss
Package: up2s3
这是基于sapic的一个小的扩展模块，用来将上传的图片保存到AWSS3安装正式版本$ pip install -U up2s3开发版本$ pip install -U git+https://github.com/sapicd/up2s3.git@master开始使用此扩展请在部署sapic图床后使用，需要
其管理员进行添加扩展、设置钩子等操作。添加：请在站点管理-钩子扩展中添加第三方钩子，输入模块名称：up2s3，
确认后提交即可加载这个模块（请在服务器先手动安装或Web上安装第三方包）。配置：在站点管理-网站设置底部的钩子配置区域配置S3相关信息，
如Bucket、访问密钥ID和Secret等（请在AWS创建一个S3服务，并在
用户-我的安全凭证-访问密钥，创建新的访问密钥，拿到密钥ID（AccessKey）、SecretKey；
允许使用子用户IAM的密钥，要求拥有S3管理权限）。目前要求s3配置为公开访问，钩子上传的图片、视频其ACL也是公共可读。使用：同样在站点管理-网站设置上传区域中选择存储后端为up2s3即可，
后续图片上传时将保存到S3。上传图片的sender名称是：up2s3
Package: up2smms
这是基于picbed的一个小的扩展模块，用来将上传的图片保存到sm.ms公共图床安装正式版本$ pip install -U up2smms开发版本$ pip install -U git+https://github.com/staugur/picbed-up2smms.git@master开始使用此扩展请在部署picbed图床后使用，需要
其管理员进行添加扩展、设置钩子等操作。添加：请在站点管理-钩子扩展中添加第三方钩子，输入名称：up2smms，
确认后提交即可加载这个模块（请先手动安装好此模块）。配置：在站点管理-网站设置底部的钩子配置区域配置sm.ms的API Secret Token，
若不配置，那么则会匿名上传sm.ms！使用：同样在站点管理-网站设置上传区域中选择存储后端为up2smms即可，
后续图片上传时将保存到sm.ms！
Package: up2superbed
这是基于picbed的一个小的扩展模块，用来将上传的图片保存到聚合图床安装正式版本$ pip install -U up2superbed开发版本$ pip install -U git+https://github.com/staugur/picbed-up2superbed.git@master开始使用此扩展请在部署picbed图床后使用，需要
其管理员进行添加扩展、设置钩子等操作。添加：请在站点管理-钩子扩展中添加第三方钩子，输入名称：up2superbed，
确认后提交即可加载这个模块（请先手动安装好此模块）。配置：在站点管理-网站设置底部的钩子配置区域配置superbed.cn的API Token（需要是聚合图床的付费用户才有token）！使用：同样在站点管理-网站设置上传区域中选择存储后端为up2superbed即可，
后续图片上传时将保存到superbed.cn！
Package: up2ynab
💰⚡️ up2ynabA command-line interface for integrating the Australian neobankUpwith
the budgeting platformYou Need A Budget.For now it is capable of importing transactions from Up into YNAB. Future plans include the ability to synchronise the balances of Up Savers with YNAB categories.Any other feature you'd find useful?Create an issue!💽 InstallationFirst, make sure you have Python 3 installed. Then, install this tool from PyPI:$pipinstallup2ynabIf you get a SSLError when you try to use the program, you might need to also run$pipinstallcertifibut thisshouldbe done automatically as part of the above command.🛠 ConfigurationYou'll need your API tokens for both Up and YNAB for this program to work.Although you can use the command-line flags--up-api-tokenand--ynab-api-tokento pass your tokens to each command (seeup2ynab --helpfor info), the recommended way to use this CLI is to configure it via environment variables – this goes for some other configuration options also.Get your Up API tokenhereGet your YNAB API tokenhereAdd the following configuration to your~/.bash_profile,~/.zshenv, or similar, changing the values to ones appropriate to you – or configure your system environment variables as follows:# Your API tokensexportUP_API_TOKEN=up:yeah:xxxxxxxxexportYNAB_API_TOKEN=xxxxxxxx# The name of your Up transactional account in YNAB# The default is "Up Spending" – if this is what yours is called, remove the following line:exportYNAB_ACCOUNT_NAME="Up Transactional"# The coloured flag in YNAB you wish to apply to transactions in a foreign currency# If you don't wish to apply any, remove the following line:exportYNAB_FOREIGN_TRANSACTION_FLAG=yellowNote:It isCRITICALthat you do not make your API keys publicly available. If you version control your config files, consider exporting your tokens in a separate file (e.g.~/.up2ynab) ignored by version control that you source as part of your shell configuration.Restart your shell and runup2ynab checkto confirm that your API tokens are set up properly.💸 UsageAll of the information required to use this tool can be found in the tool's help pages, i.e.$up2ynab--help
$up2ynabcheck--help
$up2ynabtransactions--helpWhat follows is a summary of key tasks.Importing TransactionsTo import your transactions, run the command:$up2ynabtransactionsBy default it will upload all transactions from the past 14 days, but this can be configured via the--days/-doption. For example, to instead search for transactions within the last month:$up2ynabtransactions-d30YNAB (and this CLI) is smart about duplicate imports, so you can safely runup2ynab transactionsas many times as you wish and only new transactions (as determined by their internal ID from Up) will appear. Note that this doesnotdetect duplicates from file-based uploading, so if you were using that prior to using this tool, you might want to limit the number of days of transactions to import for the next two weeks.
Package: up42-blockutils
Block development toolkit for UP42.Documentation•UP42.com•SupportHighlightsPython package with utilities to build blocks in UP42.For UP42 partners and customers interested in creating blocks!Base classes for data and processing blocks.Facilities to easily create tests, ensuring production ready blocks.OverviewThe UP42blockutilspackage provides several modules with specific concerns:Blocks: Base classes for data and processing blocks.Common: Directory and query/parameter input handling.Logging: Standard logging facility.Data Path: Input and output file handling.E2E: Utility class to create end-to-end tests.Exceptions: Shared exceptions between blocks.Format: Exotic file handling (DIMAP and NETCDF).Raster: Raster handling methods.Geometry: Generic recurrent geometry operations.Windows: Raster windowed read and write helper, useful for large file handling.STAC: Handling STAC type queries.WMTS: Helper for downloading, processing and merging tiles.See the full code referencehere.Docker imageIn order to make development of blocks easier, we have made available a publicblockutilsbase image that you can use in yourDockerfile. Check out theDockerHub pagefor theup42/up42-blockutils-py37image.Template repositoriesFor your convenience, we have created two template repositories hosted on GitHub
that include this package and genericmakeutilities for building and pushing blocks:Data block templateProcessing block templateInstallThe package requires Python > 3.6.pipinstallup42-blockutilsQuickstartThe example below shows a minimal processing block that takes a raster file and returns
the raster values to the power of 2. In this example we make use of thelogging,blocks,exceptions,datapathandwindowsmodules.frompathlibimportPathimportrasterioasriofromgeojsonimportFeatureCollection,Featureimportblockutilslogger=blockutils.logging.get_logger(__name__)classAProcessingBlock(blockutils.blocks.ProcessingBlock):defprocess(self,input_fc:FeatureCollection)->FeatureCollection:output_fc=FeatureCollection([])ifnotinput_fc.features:raiseblockutils.exceptions.UP42Error(blockutils.exceptions.SupportedErrors.NO_INPUT_ERROR)forfeatininput_fc["features"]:logger.info(f"Processing{feat}...")input_path=Path("/tmp/input/")/Path(blockutils.datapath.get_data_path(feat))withrio.open(input_path)assrc:src_win=blockutils.windows.WindowsUtil(src)(output_name,output_path,)=blockutils.datapath.get_output_filename_and_path(input_path.name,postfix="processed")dst_meta=src.meta.copy()withrio.open(output_path,"w",**dst_meta)asdst:forwininsrc_win.windows_regular():exp=src.read(window=win)**2dst.write(exp,window=win)out_feat=Feature(bbox=feat.bbox,geometry=feat.geometry)out_feat["properties"]=self.get_metadata(feat)out_feat=blockutils.datapath.set_data_path(out_feat,output_name)logger.info(f"Processed{out_feat}...")output_fc.features.append(out_feat)returnoutput_fcAProcessingBlock().run()SupportFor any issues or help please contact us via Emailsupport@up42.com.
Package: up42-py
Python SDK for UP42, the geospatial marketplace and developer platform.Documentation•UP42.com•SupportHighlightsPython package for easy access toUP42'sgeospatial collections and analytics workflowsUse UP42 functionality together with your preferred Python libraries!Installation & DocumentationSee thedocumentationfor getting started guides, examples and the code
reference.Install via pip or conda. The package requires Python > 3.6.pipinstallup42-pycondainstall-cconda-forgeup42-pyUse cloud-native geospatial data for your use cases in less than 25 lines of code!Search & order satellite images from the UP42 catalog.importup42up42.authenticate(username="<your-email-address>",password="<your-password>",)# Identify the right data product for your use-casecatalog=up42.initialize_catalog()data_product_id=catalog.get_data_products(basic=True).get("Sentinel-2").get("data_products").get("Level-2A")data_products=catalog.get_data_products(basic=True)# Search and select the right scene for your use-casesearch_results=catalog.search(search_parameters=catalog.construct_search_parameters(geometry=[13.488775,52.49356,13.491544,52.495167],start_date="2022-01-01",end_date="2023-11-01",collections=[data_products.get("Sentinel-2").get("collection")],max_cloudcover=10,limit=10))# Place and track the order of your selected sceneorder_parameters=catalog.construct_order_parameters(data_product_id=data_product_id,image_id=search_results.id[0])catalog.estimate_order(order_parameters)order=catalog.place_order(order_parameters,track_status=True)# Stream cloud-native files directly for your use caseasset=up42.initialize_order(order_id=order.order_id).get_assets()[0]stac_items=asset.stac_itemsasset.get_stac_asset_url(stac_asset=stac_items[0].assets.get("b02.tiff"))SupportFor any kind of issues or suggestions please see thedocumentation, open aGitHub issueorcontact support.
Package: upackage
upackageAboutupackage is a python module for generating *.unitypackage from source assets without unity.InstallpipinstallupackageHow to useGiven the following setup:some/path/to/my/content/
some/path/to/my/content/code.dll
some/path/to/my/content/object.prefab
some/path/to/my/content/code.dll.mbdThe command will generate a package that installs the content of "some/path/to/my/content/" into "Assets/content/".
It uses the last folder name in the path as the containing folder for the assets.UPackage.preprocess_assets("some/path/to/my/content")UPackage.generate_package("some/path/to/my/content","output.unitypackage")Command Line AccessThe tool also supports CLI access:upackagesome/path/to/my/contentoutput.unitypackageMetaFiles*.meta files will be generated if they do not exist for files & folders.
Package: upadup
upadup!upadup-- Utility for Pythonadditional_dependenciesUpdates in Pre-CommitWhy?pre-commitis great, andpre-commit autoupdateis also great.
However, what's not great is thatpre-commit autoupdatecannot update youradditional_dependencieslists.upadupis a supplemental tool which knows how to handle specific common cases.Usageupadupwill only updateadditional_dependenciesitems which are pinned to
specific versions, and only for known python hooks and their dependencies.Simplycd myrepo; upadup!upadupcan also be configured with information about hooks which are unknown
to it. More on this below.Config Loading and FormatIf you have hooks outside of the defaults which you wantupadupto examine,
drop a.upadup.yamlfile into your repo to configure which hooks to update.upaduptakes no arguments and automatically reads.upadup.yamlfrom the current
directory if available.
Otherwise, it uses its default configuration.upadupneeds to know what hook repos you want it to examine, and within those
which dependencies you want it to keep updated.
The config format intentionally mirrors your pre-commit config. Specify a list
of repos, and in each repo, specify a list of hooks to update. Hooks are a
combination ofid(the hook ID) andadditional_dependencies.For example:# .upadup.yamlrepos:-repo:https://github.com/pycqa/flake8hooks:-id:flake8additional_dependencies:-flake8_bugbearThis configuration would match the following pre-commit config:# .pre-commit-config.yamlrepos:-repo:https://github.com/PyCQA/flake8rev:5.0.4hooks:-id:flake8additional_dependencies:-'flake8-bugbear==22.7.1'Note that matching is case insensitive for repo names andadditional_dependencies, and that we normalize-and_to match, as
pypi.org does. But the overall structure of the config is intended to be a
mirror image.Default ConfigThe following config is theupadupdefault. Note that missing dependencies are
ignored.repos:-repo:https://github.com/pycqa/flake8hooks:-id:flake8additional_dependencies:-flake8-bandit-flake8-bugbear-flake8-builtins-flake8-comprehensions-flake8-docstrings-flake8-implicit-str-concat-flake8-logging-format-flake8-pyi-flake8-typing-as-t-flake8-typing-imports-repo:https://github.com/asottile/blacken-docshooks:-id:blacken-docsadditional_dependencies:-blackextends_defaultUnless otherwise specified, the default config will be merged with your.upadup.yamlconfiguration, effectively a union.You can disable this behavior by settingextends_default: false, as inextends_default:falserepos:-repo:https://github.com/pycqa/flake8hooks:-id:flake8additional_dependencies:-flake8-bugbearThe Meaning of "upadup"Update python additional depenedencies uh... pre-commit!Unacceptable puns accosting durable urban pachydermsUnbelievably playful, awesome, deterministic update program
Package: upagekite
NOTE: This ALPHA code - a work in progress! Testing uploads to PyPI.A minimalistic HTTP server and web “micro-framework” for developing Internet
accessible (not just local/LAN) dynamic web apps. The app is exposed to the
web automatically using the PageKite relay protocol.uPagekite supports HTTP, streaming file up/downloads and websockets. It is
compatible with asyncio and uasyncio event loops.See the Tutorial for examples:https://github.com/pagekite/upagekite-tutorialDeveloped and tested on CPython 3.x on Linux, and MicroPython on the ESP32.Licensed under the GPLv3+ by default, proprietary licenses are available
from the author.
Package: upandas
upandasupandas makes it easy to use quantities with uncertainties in pandas DataFrames and Series.upandas relies on the excellentuncertaintiespackage, and of coursepandas.# A dataframe with nominal values in columns x and y,# and their respective uncertainties in u_x, u_yIn[1]:n=3;df=pd.DataFrame({'x':randn(n),'u_x':0.1*rand(n),...:'y':randn(n),'u_y':0.1*rand(n)})In[2]:dfOut[2]:xu_xyu_y0-1.7352880.014020-1.4264110.0938791-0.6777560.084329-1.2542120.03460122.4101810.054435-1.6113070.020315# Convert col/u_col pairs to uarray columnsIn[3]:uf=separate_to_u(df)In[4]:ufOut[4]:xy0-1.735+/-0.014-1.43+/-0.091-0.68+/-0.08-1.254+/-0.03522.41+/-0.05-1.611+/-0.020# Operate on columns in the DataFrame as usual,# but propagate the uncertaintiesIn[5]:uf['xy2']=uf['x']*uf['y']**2In[6]:ufOut[6]:xyxy20-1.735+/-0.014-1.43+/-0.09-3.5+/-0.51-0.68+/-0.08-1.254+/-0.035-1.07+/-0.1522.41+/-0.05-1.611+/-0.0206.26+/-0.21# Convert back to a conventional dataframe# for e.g. storage to HDF5.In[17]:u_to_separate(uf)Out[17]:xu_xyu_yxy2u_xy20-1.7352880.014020-1.4264110.093879-3.5306980.4656201-0.6777560.084329-1.2542120.034601-1.0661430.14511222.4101810.054435-1.6113070.0203156.2575760.211830Getting StartedPrerequisitesupandas relies on uncertainties and pandas,
but pip will install these if needed.Installingpip install upandasRunning the testsBasic tests are included, usingpytest. In the base directory:pytest testsor justmake test.Usageupandas so far provides only two functions:separate_to_u(df): converts col, u_col pairs to a uarray column col.u_to_separate(df): converts a uarray column col to a pair col, u_col.If applied to a Series, these functions look at the 'row' index rather than columns.Built WithpoetryNote that as a 'modern' python project and usespyproject.tomlrather than setuptoolssetup.py.If you want to develop locally, pull this repository and execute... TBC.ContributingPlease do send me pull requests!VersioningWe useSemVerfor versioning.AuthorsLincoln Turner-lincolndturnerTODOMultiIndex support.Make ufloats a pandasextensions type, although not clear this is needed.Make uarrays a pandas [https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.api.extensions.ExtensionArray.html#pandas.api.extensions.ExtensionArray] extension array, although again not clear if this is needed.Register pandascustom accessors, so that we can be a bit more pythonic about the conversion:df.u.from_separate()...,... anddf.u.nomnal_values,df.u.std_devs.More testsLicenseThis project is licensed under the Monash/BSD 2-Clause License - see theLICENSEfile for details.AcknowledgmentsInspired by the extensive support of uncertainties
inlyse,
as part of thelabscript suite.
Package: uparallel
# uparallelμparallel - oversimplified helper for easy parallel functions executionYes, it's oversimplified:```pythonfrom uparallel import uparallelimport requests@uparallel(3)def wikipedia(word):return requests.get(f"https://www.wikiwand.com/en/{word.capitalize()}")results = [wikipedia(word) for word in 'fork spoon spork knife cup home'.split()]for line in results:print(line.url, line.status_code)```So, `unparallel(num)` is a wrapper for any function to execute `num` of them in parallel.There's three limitations:1. It will wait until last of calls finish their execution2. It will break on any execption, so catch it inside the function3. Returned result is a thin wrapper, not result of function itself.Last one need more explanation. Instead of result of function you will got a special proxy object. It will behave more or less like your normal object (like in this example with `requests`). If it's not, call `result.wait()` or even just `result()` instead of just `result`.```python@uparallel(2)def add2(x):return x+2results = [add2(x) for x in range(10)]for y in results:print(y()-2, y)```And don't afread to read the code, it's less than 100 lines long.
Package: upass
============================upass.  Console UI for pass.============================:Info: This is the README file for upass.:Author: Chris Warrick <chris@chriswarrick.com>:Copyright: © 2015-2018, Chris Warrick.:Date: 2018-08-28:Version: 0.3.0.. image:: https://chriswarrick.com/galleries/upass/directory-listing.pngINSTALLATION------------::pip install upassThere are also AUR packages available.USAGE-----Run ``upass`` and use the friendly console interface.CONFIGURATION-------------upass stores its config in ``~/.config/kwpolska/upass/upass.ini`` (but itrespects ``XDG_CONFIG_HOME`` if you changed it). Available options:* keys — keybinding configuration.* help, display, copy, refresh, search, quit — set key bindings for commands,space-separated (eg. ``quit=q f10`` will make ``q`` and ``f10`` keybindingsfor ``quit``)* ``uplevel_h`` — on/off, use the ``h`` key as a back button, make sure to changeyour ``help`` key bindings* ``downlevel_l`` — on/off, use the ``l`` key to open directory/passwordCOPYRIGHT---------Copyright © 2015-2018, Chris Warrick.All rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet:1. Redistributions of source code must retain the above copyrightnotice, this list of conditions, and the following disclaimer.2. Redistributions in binary form must reproduce the above copyrightnotice, this list of conditions, and the following disclaimer in thedocumentation and/or other materials provided with the distribution.3. Neither the name of the author of this software nor the names ofcontributors to this software may be used to endorse or promoteproducts derived from this software without specific prior writtenconsent.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHTOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.