Saravanan666/pypi-org huggingface dataset:
Package: ultimate-notion
Ultimate Notion is the ultimate Python client forNotion🚀 It allows you to access and modify your Notion databases and
pages in the most convenient and pythonic way.CI/CDPackageDetailsInstallationInstall the most recent release usingPyPIwith:pip install ultimate-notionor to install all additional dependencies, use:pip install 'ultimate-notion[all]'UsageMake sure you have set the environment variableNOTION_TOKENto your Notion
integration token. Then it's as simple as:importultimate_notionasunoPAGE_TITLE="Getting Started"withuno.Session()asnotion:page=notion.search_page(PAGE_TITLE).item()page.show()# Alternatively, without a context manager:notion=uno.Session()page=notion.search_page(PAGE_TITLE).item()page.show()notion.close()Check out the officialUltimate Notion documentationfor more details.
Especially the page aboutcreating a Notion integrationto get the token.
The documentation is made withMaterial for MkDocsand is hosted onGitHub Pages.ContributingAfter having cloned this repository:make surehatchin installed globally, e.g.pipx install hatch,make surepre-commitis installed globally, e.g. withpipx install pre-commit,optionally runhatch config set dirs.env.virtual .direnvto letVS Codefind your virtual environments,and then you are already set up to start hacking. Usehatch run testto run the unit tests orhatch run vcr-onlyto run the offline unit tests usingVCR.py. Regenerate the cassettes withhatch run vcr-rewrite.
Check out the environment setup of hatch inpyproject.tomlfor many more commands.If you are usingVS Code, it's quite convenient to create a file.vscode/.envwithNOTION_TOKEN=secret_YOUR_TOKEN_TO_YOUR_TEST_NOTION_ACCOUNTULTIMATE_NOTION_CONFIG=/path/to/repo/.ultimate-notion/config.tomlCheck out thispage about contributingfor more details.License & CreditsUltimate Notion is distributed under the terms of theMIT license.
To start this project off a lot of inspiration and code was taken fromhatchandnotional.
Ultimate Notion highly depends onnotion-sdk-py.
Package: ultimate-python-project-template
The Ultimate Python Project TemplateThis repo serves as the ultimate Python project template.
In addition to providing a Python project directory
structure, this repo also features some nice quality of
life features including automated testing and publishing
through GitHub Actions. Likewise, it includes automated
documentation through Read the Docs.Note: the pip package generated by this repo does nothing
and only serves as proof that the template works. That said,
you could theoretically use the functions in it.
Package: ultimate-sitemap-parser
Website sitemap parser for Python 3.5+.FeaturesSupports all sitemap formats:XML sitemapsGoogle News sitemapsplain text sitemapsRSS 2.0 / Atom 0.3 / Atom 1.0 sitemapsSitemaps linked from robots.txtField-tested with ~1 million URLs as part of theMedia Cloud projectError-tolerant with more common sitemap bugsTries to find sitemaps not listed inrobots.txtUses fast and memory efficient Expat XML parsingDoesn’t consume much memory even with massive sitemap hierarchiesProvides a generated sitemap tree as easy to use object treeSupports using a custom web clientUses a small number of actively maintained third-party modulesReasonably testedInstallationpipinstallultimate_sitemap_parserUsagefromusp.treeimportsitemap_tree_for_homepagetree=sitemap_tree_for_homepage('https://www.nytimes.com/')print(tree)sitemap_tree_for_homepage()will return a tree ofAbstractSitemapsubclass objects that represent the sitemap
hierarchy found on the website; see areference of AbstractSitemap subclasses.If you’d like to just list all the pages found in all of the sitemaps within the website, consider usingall_pages()method:# all_pages() returns an Iteratorforpageintree.all_pages():print(page)all_pages()method will return an iterator yieldingSitemapPageobjects; see areference of SitemapPage.
Package: ultimate-trimmer
ULTIMATE TRIMMERYoutube の動画コメントで指定された時間を CSV ファイルに保存し、指定された部分をトリミングするスクリプトです。インストール$ pip install ultimate-trimmer使い方１．動画コメントの取得Youtube のコメントを取得する場合は、youtube の動画 URL を引数に指定してください。$ ultcom https://www.youtube.com/watch?v=...
API KEY >{ここにGoogle CloudのAPIキーを入力}API キーは初回のみ入力が必要です。（設定ファイルは~/.ultrimrcに保存されます。API キーを再設定する場合は直接編集してください。）２．出力されたコメントファイルを編集出力されたコメントファイルを開いて動画ファイル名の項目と動画 ID の項目を設定してください。動画ファイル名: トリミングを行う動画のファイル名を相対パスで指定してください。動画 ID: トリミング後のファイル名の先頭に付ける文字列を指定してください。デフォルトで Youtube の動画 ID が指定されています。３．動画のトリミング以下のコマンドを実行してください$ ultrim csvfile1.csv csvfile2.csv ...実行後、trimフォルダに切り抜き動画が保存されます。CSV ファイルのフォーマットこのフォーマットはultcomコマンドを実行すると自動で生成されます。動画ファイル名動画 ID{ここに動画ファイル名}{ここに動画 ID}開始終了属性感想0:120:30free missよくできましたとしか言いようがない1:02:051:02:20runすげえ良い感じultcomコマンドのオプション--save：保存ファイル名を変更--saveオプションで保存するファイル名を変更できます。デフォルト値：comments.csv例：savedir/game1_comments.csvに保存$ ultcom https://www.youtube.com/watch?v=... --save savedir/game1_comments.csvultrimコマンドのオプション--save：保存ディレクトリを変更--saveオプションでクリップを保存するディレクトリを指定出来ます。デフォルト値：trim/例：savedir/に保存$ ultrim csvfile.csv --save savedir/--expand：クリップの領域を拡張--expandオプションでクリップの秒数を前後に拡張できます。デフォルト値：3 3例：前を 5 秒，後ろを 3 秒拡張する場合$ ultrim csvfile.csv --expand 5 3この例では，0:10-1:59 のクリップは 0:05-2:02 に拡張されて切り抜かれます。--altnum：タイトルを代用する際のオプション--saveオプションでファイル名に入れる感想の先頭文字数を指定出来ます。デフォルト値：10例：先頭文字数を 5 文字とする場合$ ultrim csvfile.csv --altnum 5この例では，感想が「よくできましたとしか言いようがない」の場合，タイトルは「よくできま」になります。動作環境Windows ＋ python 環境での動作を想定しています。
Package: ultimate_ttt
This repo contains a sample player and game engine for ourUltimate TicTacToeworkshop.Welcome!Welcome! You’re probably here because you’re in a hackathon we’re running.If so, make sure you’ve read theUltimate TTT Docs.Once you’re ready to write your player, you can find functions that will help you write your player inAPI ReferenceContributorsIf you’re interested in contributing a player or even features to the game engine:Thank you!Please read theContribution Guide
Package: ultimodel
ULTImodelULTImodel— A universal transport distribution model written in Python.DescriptionULTImodelis a distribution model that helps to spatially distribute road-based transport for countries, including border-crossing travel. It is set up using open data likeOSM.
The software includes modules for network generation, trip generation and trip distribution based on two main inputs:Georeferenced traffic analysis zones (TAZ) for the respective regionTarget value for national transport volume (i.e. person-kilometres or tonne-kilometres)InstallationThecurrent versionisultimodel-1.0.0.You mayinstall ULTImodelby executing the followingpippython -m pip install ultimodelcondaconda install -c conda-forge ultimodelYou maydownload a copy or fork the codeatULTImodel's github page.Besides, you maydownload the current releasehere:ultimodel-1.0.0.zipultimodel-1.0.0.tar.gzUsageExamples of usingULTImodelcan be found in thetutorials repository.Additional documentation can be found athttps://ultimodel.readthedocs.io/.Authors and acknowledgmentULTImodelwas developed by Nina Thomsen.We want to thank the following persons for the help duringULTImodel'sdevelopment: Lars Hedemann, Simon Metzler, Gernot Liedtke, Christian Winkler, Tudor Mocanu, and Daniel Krajzewicz.LicenseULTImodelis licensed under theMIT license.LinksPlease find further information on the web:The complete documentation is located athttps://ultimodel.readthedocs.io/The github repository is located athttps://github.com/DLR-VF/ULTImodelThe issue tracker is located athttps://github.com/DLR-VF/ULTImodel/issuesLegalPlease find the legal information here:https://github.com/DLR-VF/ULTImodel/blob/master/ultimodel-mkdocs/docs/legal.md
Package: ultipa
Ultipa Python SDKIntroductionThis Python SDK is a part of Ultipa Drivers, a set of specifications for developing software and applications using Java, Python, Go and NodeJs. This SDK provides instructions on introducing query and management operations of Ultipa Graph Database into Python programs, both by calling command through interfaces and sending assembled UQLs to an Ultipa server. A basic understanding of UQL query commands and the returned data structures is needed to guarantee a proper usage of the SDK.RequirementsPython version: >=3.6 <=3.10Ultipa Server Version: >= 4.3.xInstallationPackage is uploaded onPyPI.python3-mpipinstallultipaDocumentationDocumentation is available online:https://www.ultipa.com/document/ultipa-drivers/python-installation/v4.3.ExampleExample: Create a server connection and use graphset 'amz'fromultipaimportConnection,UltipaConfigultipaConfig=UltipaConfig()ultipaConfig.hosts=["192.168.1.85:60061","192.168.1.86:60061","192.168.1.87:60061"]ultipaConfig.username="***"ultipaConfig.password="***"ultipaConfig.defaultGraph="amz"conn=Connection.NewConnection(defaultConfig=ultipaConfig)conn.test().Print()req=conn.uql("show().graph()")req.Print()If you have any questions please contact:Ultipa Support
Package: ultiplayground
Python PlaygroundPython is an interpreted high-level general-purpose programming language.
It is the first programming language I learned,
so I have quite a bit of experience with it.To manage dependencies and build this package
I'm usingPoetry,
and to test my functionsPytest.
And if you are curious my code
editor isNeovim.UsingGitHub Actionsevery time that I push a commit, the project is analyzed usingCodeQLand tested withPyTest.
Furthermore, every time I release a new version,
the package is automatically published toPyPI.I do some exercises and challenges every day in:UltiRequiem/daily-python-practiceInteresting ArticlesPython Type CheckingPython's Instance, Class, and Static Methods DemystifiedObject-Oriented Programming (OOP) in Python 3Python Objects and ClassesInteresting QuestionsHow can I access a classmethod from inside a class in PythonShould Python class filenames also be camelCased?Readed ArticlesPython ClosuresYou should know this when developing python packageReaded QuestionsHow to call a function within class?What is the file type of .pylintrcHow do I disable "missing docstring" warnings at a file-level in Pylint?What's the meaning of the percentages displayed for each test on PyTest?Python coverage badges
Package: ultipro
ultipro-soap-pythonA Python 3 library and command line tool for the UltiPro Soap API.
At present, all functions are read-only against UltiPro.Installation:pip install ultiproWeb Service User and Credentials:Ensure you have credentials for the UltiPro API endpoints you need to access.
If you are pulling BI Reports, your Web Service User must have the
Reports-as-a-service endpoint enabled with read access. Please see your UltiPro
administrator if you do not have a web service user.Set up your credentials file. The default location is:~/Library/Application Support/ultipro-soap-python/config.iniYou can find a sample config file in the root of this project's github repository, config.ini.sample.To use this tool on the command line, install with pip, then:$ ultipro --helpPulling BI Reports:You will need to log in to UltiPro and find the path for your desired report. It should look something like:/content/folder[@name='_UltiPro Delivered Reports']/folder[@name='Human Resources Reports']/report[@name='Employee Birthdays']You can find more information on page 7 of the WebServiceAPIGuide_BIService.docTo execute, retrieve, and save a report to disk, use the following syntax:$ ultipro report "/content/folder[@name='_UltiPro Delivered Reports']/"If you'd like to use non-default locations for your config.ini file or output file, you can use the following syntax:ultipro -f ~/some/other/path/to/config.ini -o ~/Desktop/fooreport.csv report "/content/folder[@name='_UltiPro Delivered Reports']/folder[@name='Human Resources Reports']/report[@name='Employee Birthdays']"
Package: ultisnips-vscode
AboutI don't always use VSCode. But when I do, I use Ultisnips.This script allows you to write all of your snippets in vims Ultisnips format,
and convert the whole batch to json format for use in vscode.Installationpip install ultisnips-vscodeUsageCreate a config file at~/.vscode/ultisnips-vscode.jsonAdd the paths to your snippets folders.On a mac this file might contain:{"ultisnips-snippets":"~/.vim/UltiSnips/","vscode-snippets":"~/Library/Application Support/Code/User/snippets/"}On linux this file might contain:{"ultisnips-snippets":"~/.config/nvim/UltiSnips","vscode-snippets":"~/.config/Code/User/snippets/"}Source your shell, or log out and log back in so the script is in your$PATHRun the commandultisnips2vscodeto synchronize your snippets. This will
output something like:sh.snippets                    -->        shellscript.json
python.snippets                -->        python.json
all.snippets                   -->        global.code-snippets
texmath.snippets               -->        doconce.json
doconce.snippets               -->        doconce.json
gitcommit.snippets             -->        git-commit.json
zsh.snippets                   -->        shellscript.json
json.snippets                  -->        json.json
html.snippets                  -->        html.json
c.snippets                     -->        c.json
texmath.snippets               -->        latex.json
tex.snippets                   -->        latex.json
texmath.snippets               -->        markdown.json
markdown.snippets              -->        markdown.json
Package: ultocr
Quickstartpipinstalltorch==1.7.0+cu101torchvision==0.8.1+cu101-fhttps://download.pytorch.org/whl/torch_stable.html
pipinstall--upgradeultocr# install our project with package# for inference phasefromultocr.inferenceimportOCR
fromPILimportImagemodel=OCR(det_model='DB',reg_model='MASTER')image=Image.open('..')# ..is the path of imageresult=model.get_result(image)Or view in google colabdemoInstallgitclonehttps://github.com/cuongngm/text-in-image
pipinstalltorch==1.7.0+cu101torchvision==0.8.1+cu101-fhttps://download.pytorch.org/whl/torch_stable.html
pipinstall-rrequirements.txt
bashscripts/download_weights.shPrepare dataPretrained modelModelsize(MB)DB140MASTER261TrainCustom params in each config file of config folder then:Single gpu training:pythontrain.py--configconfig/db_resnet50.yaml--use_distFalse# tracking with mlflowmlflowruntext-in-image-Pconfig=config/db_resnet50.yaml-Puse_dist=False-Pdevice=1Multi gpu training:# assume we have 2 gpupython-mtorch.distributed.launch--nnodes=1--node_rank=0--nproc_per_node=2--master_addr=127.0.0.1--master_post=5555train.py--configconfig/db_resnet50.yamlServe and Inferencepythonrun.pyThen, open your browser athttp://127.0.0.1:8000/docs. Request url of the image, the result is as follows:TodoMulti gpu trainingTracking experiments with MlflowModel serving with FastAPIAdd more text detection and recognition modelReferenceDB_text_minimalpytorchOCRMASTER-pytorchDBNet.pytorch
Package: ultrachronic
Run parallel jobs and save results to json.gz files.InstallStable:pipinstallultrachronicLatest:pipinstallgit+https://github.com/yoavram/ultrachronic.gitSupports Python 3.4 and 3.5.TestRequirements:pipinstallnoseclickRun:noseteststestsExampleCode indo_something.py:fromultrachronicimportjsonify_result,repeatimportclick@jsonify_resultdefdo_something(arg1,arg2):a=1b=2# must return a dict!returndict(a=a,b=b)@click.command()@click.option('--arg1',default=1,type=int,help='Argument 1')@click.option('--arg2',default='a',type=str,help='Argument 2')@click.option('--reps',default=1,type=click.IntRange(1,None),help='Number of repetitions')@click.option('--cpus',default=1,type=int,help='Number of CPUs to use (<1 for all available)')defmain(arg1,arg2,reps,cpus):repeat(do_something,reps,cpus,arg1=arg1,arg2=arg2)if__name__=='__main__':main()Usage:pythondo_something.pypythondo_something.py--reps10--cpus2pythondo_something.py--arg15--reps10--cpus1pythondo_something.py--arg2hi--reps10--cpus0AuthorsYoav Ram (@yoavram)
Package: ultra-cli
Ultra CLIultra-cliis python module/library that generates flexible cli menus.The approach that is considered of an app usingultra-cliis as defined below:The app have amain menuThismain menumight have some sub-menusAs each sub-menu can also have multiple sub-menusAn end point for each menu where user can select what should happen next (excluding sub-menus), is calledOptionOptionis a function that will be called when the user selects it in a menu.Demonstration of how this worksMainMenu/
├─── SubMenu_1/
│   ├─── anotherSubMenu/
│   └─── myoption_1
└─── SubMenu_2/
    ├─── myoption_2
    └─── myoption_3In the example above, as you can see, App starts with a menu calledMainMenu.This contains 2 sub-menus calledSubMenu_1andSubMenu_2. This means you can navigate to one of these menus when you are inMainMenu.Now if you navigate toSubMenu_1, you have 2 choices:anotherSubMenuwhich is a sub-menu (empty)myoption_1which is anOptionobject that which will call a specified function when you navigate to it.fromultra_cliimportMenu,Option# Creating main menumain_menu=Menu(title="MainMenu")# Creating other menusprivacy_menu=Menu(title="Privacy")data_menu=Menu(title="Data and Storage")# functions of our Optionsdefchange_password_function():print("password can not be changed")defchange_name_function(new_name):print(f"your new name is:{new_name}")# Defining the Optionschange_password=Option(title="Change password",function=change_password_function)change_name=Option(title="Change name",function=change_name_function,kwargs={"new_name":"MY_NEW_NAME"})# Adding declared options to the privacy_menu optionsprivacy_menu.add_options(change_name,change_password)# Adding privacy_menu and data_menu to main_menumain_menu.add_submenus(privacy_menu,data_menu)# Start of the appmain_menu.execute()
Package: ultra_config
ultra-configAn extendable configuration that enables you to configure your application via python modules, config files, environment variables and more!Free software: MIT licenseDocumentation:https://ultra-config.readthedocs.io.Installationpipinstallultra-configFeaturesLoad configuration from a variety of sources including environment variables, json files, ini files, and python objectsEasily extend with your own configuration mechanismsOffers a global configuration object for you applicationEasily inject configuration into functions with the ability to override them for testingAbility to fail fast if missing configurationExamplesglobal configurationfromultra_configimportGlobalConfig# Loads all env variables that begin with MY_APP, configuration# from a json file and a custom overrideGlobalConfig.load(env_var_prefix='MY_APP',json_file='/opt/my_app/config.json',overrides={'MY_VAR':'some_val'})@GlobalConfig.inject('MY_VAR',value='OTHER_VAR')defmy_func(arg1,value=None):print(arg1)print(value)my_func()# Prints the value of MY_VAR and OTHER_VARmy_func(value='custom')# prints the value of MY_VAR and then prints the "custom" since we explicitly passed that inCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-07-22)First release on PyPI.
Package: ultra-config-kms-cli
ultra-config-kms-cliA simple cli package for easily updating ECS task definition files with secretsFree software: MIT licenseDocumentation:https://ultra-config-kms-cli.readthedocs.io.DocumentationYou will need to install the package dependencies first,
see the Installation section for details.To build and open the documentation simply run:bin/build-docsInstallationIf you need to install pyenv/virtualenvwrapper you can run thebin/setup-osxcommand
Please note that this will modify your bash profileAssuming you have virtualenv wrapper installedmkvirtualenvultra-config-kms-cliworkonultra-config-kms-clipipinstall-rrequirements_dev.txtpipinstall-e.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-01-05)First release on PyPI.
Package: ultrade-sdk
ultrade-python-sdkSources:ultrade_sdk.Client— main client, requires credentialsultrade_sdk.api— module for interaction with ultrade public APIQuick startfromalgosdk.v2clientimportalgodfromultrade.sdk_clientimportClientalgod_token=""# Your algod token here, for public node usage pass an empty stringalgod_address="https://testnet-api.algonode.cloud"# Your algod node address.# create algod clientalgod_client=algod.AlgodClient(algod_token,algod_address)options={"network":"testnet","algo_sdk_client":algod_client,"api_url":None,}credentials={"mnemonic":'alpha bravo charlie delta...'}# create ultrade-sdk clientclient=Client(credentials,options)Testing:To run tests, type:pytest-nautotestsGenerating Documentation:To generate .md documentation, run:gendocs--configmkgendocs.ymlDocs will be located in thedocs/directory.
Package: ultrafastFitFunctions
ultrafastFitFunctionsCollection of common fit functions for discribing ultrafast and static physics phenomena to be compatible with lmfit.To be compatible with the great fitting package lmfit, all functions need to have the independent variable as the first argument and it needs to be called 'x'.
If it is not called 'x', when calling lmfit's fit, the new name needs to be specified, which is prone to errors.=========Usage Example ===============from ultrafastFitFunctions import *
Decays.expDecay(1,1,1)==============================================================================================
Valid parameters in order of appearance in the functions:mu             :   shift of x by x0 / mu
sigT           :   T = '', S, H, ... ; width / scaling in x-directions. Similar / related to a FWHM.
taun           :   n = 1,2,... ; similar to sig; used as taun**1 in denominator of exp
A,B,C,D,...    :   multiplier / normalisation    
c,a,b,d,...    :   offsets
k              :   slope
other:

alpha, beta, q : ratios========================================================Docstring:r"""
What does the function do?

Parameters
----------
x : array_like
    `x` represents the x-coordinates of a set of datapoints.
a : int
    `a` represents the variable, which does... .

Returns
-------
y : ndarray
    An array of the same shape as x.

"""========================================================2Do ListMost functions are written without a mu, should be changed?
Package: ultralight
Ultra LightUltra Light Fast Generic Face Detector 👨‍👩‍👧‍👦🖼Very fast and quality face detector. Can use CPU, GPU and MPS (Apple M1 ML) providers.
Work via ONNX modelInstallationpipinstallultralightUsage sampleimportcv2fromultralightimportUltraLightDetectorfromultralight.utilsimportdraw_facesimage=cv2.imread('sample.jpg')detector=UltraLightDetector()boxes,scores=detector.detect_one(image)print(f'Found{len(boxes)}face(s)')# >>> Found 14 face(s)draw_faces(image,boxes,scores)cv2.imshow('result',image)cv2.waitKey(0)This sample can be foundhereReferenceGitHub repository of original detectorArXiv paper of original detectorMorePyPI:https://pypi.org/project/ultralightRepository:https://github.com/abionics/UltraLightDeveloper: Alex Ermolaev (Abionics)Email:abionics.dev@gmail.comLicense: MIT (see LICENSE.txt)