Saravanan666/pypi-org huggingface dataset:
Package: uncsom.recipe.ploneupdater
Upgrade all of your Plone sites quickly!Code repository:https://github.com/ianderso/uncsom.recipe.ploneupdateruncsom.recipe.ploneupdater is a buildout recipe that you can use to update
plone sites. It automatizes the following tasks:pack databasereinstall products with the quickinstaller or GenericSetup Upgrade Stepsrun Plone migration (portal_migration.upgrade)clean up invalid GS stepsrun GS profileinstall productuncsom.recipe.ploneupdater will create an updater tool in the buildout bin
directory.This tool can be called with no options to reinstall, upgrade and clean up GS.It can be called with the –profile option to run all steps from the given
profile in GS.The –pack option will pack the databaseIf the –pack or –profile options are used, update will not be performed
unless the –update option is used. So if you want to pack, apply a profile,
and update use the –pack, –profile and –update options together.
Package: uncvalue
Uncertainty-ValueSimple python class to evaluate the uncertainty for complex or very long calculations given the initial values together with its uncertainty.How-ToThe way it works is simple, first import the script asfromuncvalueimport*then initialise yourValuevariables (numbers, lists, matrices...) aspi=Value(3.14159,0.00011)# number variable 3.14159 +/- 0.00011A=np.array([pi,Value(2.718,0.036),Value(1.61803398875,29e-11)])# numpy array with 3 elementsM=Value(np.random.rand(3,5),np.random.rand(3,5)*0.056)# 3x5 matrixpiis just a number variable with uncertaintyAis a list of values, each one with each own uncertaintyMis a 3x5 value matrix (not a matrix of values) where the uncertainty is separated from the value, so this class only works as a container for keeping them together but some operations will not work properly (like multiplication). To initialize the matrix of values correctly we should do it as the list (an example of this is insidetest.py).Perform any operation you want between Value(s):Binary operators:+,-,*,/,**Unary operators (all with numpy):abs,exp,log,sqrt,sin(h),cos(h),tan(h),arcsin(h),arccos(h),arctan(h)Comparison:>=,>,=,<,<=It's important that, for the unary operators, you usenumpyas your base class for math. Operations made with the built-inmathpython library will result in terrible errors that for sure will end up destroying our and other universes.For more examples take a look attest.py.ContributorsAdrià Labay MoraÀlex Giménez RomeroLicenseCopyright 2020 Physics-Simulations

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
Package: uncythonize
uncythonizeThis script strips cython code (.pyx files) down to python code, by
replacing cython declarations (cdef) with python equivalents
and stripping away type annotations.LimitationsThis is a simple script working based on text substitutions.
It does not handle, or even claim to handle, all valid cython syntax.Python 3.5 and above is required.UTF-8 input is required.Installation$ pip install uncythonizeUsage$ uncythonize.py filename.pyxwill produce a corresponding file filename.pyx.pyThat file can then be run through various syntax checkers and linters,
such as pyflakes, pydocstyle, pylint, vulture, pystrict3.It is useful to substitute in output of these tools back the original
filename, filename.pyx.py -> filename.pyxLine numbering is preserved by this tool.More than one file can be processed.ContributingContributions are welcome! Please open pull requests.If you adapt the script to handle your use case, please add
example scripts as test cases.TODOsetup CI testingLicenceThis code was originally developed athttps://github.com/guyskk/validrby guyskk, and is redistributed here under the GPL-3 licence.Some modifications were made by JohannesBuchner to support testing
the UltraNest repository.Release Notes0.1.0 (2020-03-07)First version
Package: undate
undate-pythonundateis a python library for working with uncertain or partially known dates.It was initially created as part of aDH-Techhackathon in November 2022.⚠️WARNING:this is pre-alpha software and isNOTfeature complete! Use with caution. ⚠️DocumentationProject documentation is available on ReadTheDocshttps://undate-python.readthedocs.io/en/latest/LicenseThis software is licensed under theApache 2.0 License.InstallationTo install the most recent release from PyPI:pipinstallundateTo install the latest development version from GitHub:pipinstallgit+https://github.com/dh-tech/undate-python.git@develop#egg=undateTo install a specific release or branch, run the following (replace[tag-name]with the tag or branch you want to install):pipinstallgit+https://github.com/dh-tech/undate-python.git@[tag-name]Instructions to setup for developmentClone repo$ git clone git@github.com:dh-tech/undate-python.git
cd undate-pythonSetup and initialize git flowThis repository usesgit-flowbranching conventions:mainwill always contain the most recent releasedevelopbranch is the latest version of work in progressPull requests should be made against thedevelopbranch.It is recommended to install git flow (on OSX, use brew or ports, e.g.:brew install git-flow;
on Ubuntu/Debian,apt-get install git-flow) and then initialize it in this repository
viagit flow initand accept the defaults.  Then you can usegit flow feature startto create feature development branches.Alternately, you can check out the develop branch (git checkout develop)
and create your branches manually based on develop (git checkout -b feature/xxx-name).Set up Python environmentUse a recent version of python 3.x; recommended to use a virtualenv, e.g.python3 -m venv undate
source undate/bin/activateInstall the packageInstall an editable version of the local package along with python dependencies needed for testing and development.pipinstall-e".[dev]"Install pre-commit hookspre-commitinstallRun unit testsTests can be run with eithertoxorpytest.To run all the tests in a single test file, use pytest and specify the path to the test:pytest tests/test_dateformat/test_base.pyTo test cases by name, use pytest:pytest -k test_strCreate documentationtox-edocsContributorsCole Crawford💻👀⚠️Rebecca Sutton Koeser💻👀⚠️Robert Casties🔣Julia Damerow💻👀⚠️📋Malte Vogl💻👀⚠️📖
Package: undated
Undated -“For when dates aren’t dates”undatedis a Python package that simplifies the process of working with dates that are stored as numbers or strings.Whilst datatypes should fit their purpose, date types do not always transport well and are converted to a number or string,
such asISO 8601, for transportation in text based files like json or csv.undatedprovides:Functionality to handle dates that are stored in number formatsAbility to derive the date format from provided dataDirect manipulation to avoid costly type conversionsNoteAlthoughundatedis whizzy with dates, operating with time elements is out of its scope.Inceptionundatedcame about due to the need to process large amounts of data from various sources. These were received as csv files
where the format of the date was dependant on either the country of origin, source system, or which ever way the wind blew.
One solution was required to enable big data to be processed regardless of its date formatting…undated.Conceptundatedis a lightweight performance tunded package envisaged to be used either:when processing data from various sources where the date format is unknown but consistent throughout the dataor when dates have been stored as integers in theYmdformat and performance is a consideration.For other scenarios consider using a feature rich package such asdateutilsSupported VersionsSupported on Python 3.7, 3.8, 3.9 and 3.10InstallationThe package can be found onGitHubandPyPI,
so naturally it can be installed withpippip install undatedRequirementsTheundatedpackage itself has no requirements.To use the unittests and timings modulesdateutilsis required.pip install python-dateutil>=2.8.2To generate the Sphinx documentation, Sphinx and the RTD template are required.pip install Sphinx>=5.0.2
pip install sphinx-rtd-theme>=1.0.0LicenceThis software is released under the MIT licence
Package: undead
Dead Easy POSIX Daemons for Python!#!/usr/bin/pythonimportundead@undeaddefmy_daemon_process():""" This function will be daemonized. """fromtimeimportsleepwhileTrue:sleep(10)Installationpip install undeadSettingsundead.nameName of the logger and process.Default:__name__of decorated callableundead.pidfilePath to pidfile.Default:~/.{undead.name}/{undead.name}.pidundead.log_levelLog level.Default:"WARNING"undead.process_nameThe name of the process (that shows up in ps etc.)Default: None (No manipulation of process name)Exampleimportundeadundead.name="my-first-daemon"undead.process_name="leDeamon"@undeaddefmy_daemon_process():""" This function will be daemonized. """# ...Logging within the decorated handlerJust addlogto your decorated signature, and the logger will be passed down. Log away captain!importundead@undeaddefi_am_undead(log):log.warning("I'm warning you!")log.info("Soap, 2 for $1.99")The logfile will be created in~/.i_am_undeadLicenseMIT
Package: undecorate
Let your decorations be undoneInstallation$pipinstallundecorateUsage>>>fromundecorateimportunwrap,unwrappable>>>>>>@unwrappable...defpack(func):...defwrapper(args,kwargs):...returnfunc(*args,**kwargs)...returnwrapper...>>>@pack...defmyfunc(a,b=None,c=None):...return(a,b,c)...>>>myfunc('a',b='b')Traceback (most recent call last):...TypeError:wrapper() got an unexpected keyword argument 'b'>>>>>>unwrap(myfunc)('a',b='b')('a', 'b', None)0.2.1 (2014-09-29)Fix bug increate_class_wrapperandclass_wrapsthat caused them to
always throw an error when used.RemoveCLASS_WRAPPER_DELETES, and correspondingdeletedarguments oncreate_class_wrapperandclass_wraps.0.2 (2014-09-29)Addcreate_class_wrapperandclass_wraps.Internally use__wrapped__to match Python 3.2+.Add backport versions of functoolswrapsandupdate_wrapper.
They wrap the stdlib versions, and ensure that__wrapped__is set.0.1 (2014-09-04)Initial Releaseunwrappableandunwrapfunctions
Package: undecorated
This library provides an easy way to strip a function of its decorators.Tested on python 2.6 up to 3.6:QuickstartInstall:$pipinstallundecoratedTry it on one of your functions:>>>fromundecoratedimportundecorated>>>undecorated(my_decorated_function)<functionmy_decorated_functionat0x7fbdd6e95938>undecoratedhas returned your original function clean of any decorators.It also works with class decorators!Example>>>fromfunctoolsimportwraps>>>fromundecoratedimportundecorated>>>>>>defdecorate_with(*decorations):...defdecorator(f):...@wraps(f)...defwrapper(*args,**kwargs):...printdecorations...returnf(*args,**kwargs)...returnwrapper...returndecorator...>>>@decorate_with('yellow_bauble')...@decorate_with('red_bauble')...@decorate_with('tinsel')...deftree():...print'tree'...>>>tree()('yellow_bauble',)('red_bauble',)('tinsel',)tree>>>undecorated(tree)()treeProjectThis project usesSemantic Versioning <http://semver.org>.LicenseCopyright 2016 Ionuț Arțăriși <ionut@artarisi.eu>Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: undefined
UndefinedEver needed a global object that act asNonebut not quite ?Like for example key-word argument for function, whereNonemake sens, so you need a default value.One solution is to create as singleton object:mysingleton = object()Though it becomes difficult to track the singleton across libraries,
and teach users where to import this from.It's also relatively annoying use this singleton across library.Introducingundefined:>>> import undefined
>>> from undefined import Undefined
>>> undefined is Undefined
TruebehaviorIt work (for now) mostly like a singleton objectThough it's neither truthy not falsy>>> if undefined: print(True)
raise NotImplementedErrorCasing ?Because it is a module you can use it lowercase:import undefinedBecause it looks more like a keyword (None,True,False), you can use it upper case:import undefined as Undefinedorfrom undefined import UndefinedI tend to be torn between lowercase, for simplicity, and Uppercase.Why notNone, difference withNoneundefinedis likely slower, and as it is a regular Python object there are a few  on purpose (or not difference).UnlikeNone, you can assign to it>>> None = 3 
SyntaxError: can't assign to keyword>>> undefined = 3
>>> undefned
3UnlikeNone,undefinedis mutable>>> undefined.value = 42
>>> undefined.value
42(might be able to fix that with__get_attr__UnlikeNone,undefinedis neither true not false.If you test for boolean value ofundefindif will raise.
That is to say: the following will fail:value = undefined
if value:
   pass # will raise before reaching here.You have to check for identity:value = undefined
other = 1
if value is undefined:
    pass # will executefor info, undefined is notTrue,False, not undefined with respect to identity>>> undefined is True
False

>>> undefined is False
False

>>>: undefined is None
FalseString formstr(undefined)raises.repr(undefined)is the unicode string'Undefined'
Package: undefined-AD
Undefined_AD PackageUndefined_AD DocumentationBrief IntroductionThis project/package is part of the Harvard CS107/AC207 class final project in Fall 2021, automatic differentiation (AD). We created this package to compute the first-order derivative from a user-defined function automatically. Our package can utilize both forward and reverse modes. Additionally, we also allow users to define their own seeds vector for the Jacobian Matrix and the option to generate the computational graph associated with the input function.To install, run the following command in your terminalpip install undefined_ADFor details instruction on how to use this package, please follow the steps in theusage page.Group Number:Group 1Group Members:Xinran Tangxinran_tang@g.harvard.eduRenhao Luorenhao_luo@hms.harvard.eduChelse Swoopescswoopes@g.harvard.eduShijia Zhangshijiazhang@hms.harvard.eduHarvard University, Fall 2021
Package: undefined-oc
undefined by Ouroboros Codingundefined: A value to use as a default value to indicate an argument was absolutely not set buy the user of the method. Will not match as true to any
other value but itself.Installationpipinstallundefined-ocImportimportundefineddefprint_me(value=undefined):ifvalueisundefined:print('Please pass a value to print')else:print(value)>>> print_me('hello, there')
hello, there
>>> print_me(None)
None
>>> print_me([])
[]
>>> print_me()
Please pass a value to print
Package: underactuated
Underactuated RoboticsAlgorithms for Walking, Running, Swimming, Flying, and ManipulationThis is the companion software for the textbook available at:https://underactuated.csail.mit.edu/To cite this software (or the corresponding textbook), please use:Russ Tedrake.Underactuated Robotics: Algorithms for Walking, Running,
Swimming, Flying, and Manipulation (Course Notes for MIT 6.832).Downloaded on [date] fromhttps://underactuated.csail.mit.edu/.
Package: underflow
License:GPLv3Pesquisa no StackOverflowEste projeto disponibiliza um comando CLI que coordena ações com o objetivo
de realizar pesquisa no StackOverflow, possui 2 interfaces de uso:Pesquisas por CLIPesquisas por Bot TelegramArquitetura do projetoO Projeto está dividido hein:API de Comunicação com StackOverflowExecuta pesquisa na API;Executa paginação preemptivaCaptura token de autenticação com a API do Stack OverFlow (Para permitir maior quota de requisições)CLI de interação com a API de ComunicaçãoInterage com a API interna de comunicaçãoRedireciona requisição de autenticação OAuth pro StackOverFlow, modo implicito.Bot ServerResponde as solicitações de pessoas interagindo com o botPré-requisitosAntes de qualquer interação de pesquisa, você precisa iniciar a API de comunicação com o StackOverflow.Portanto abra um novo terminal e execute:$ underflow start-apiPesquisas via CLIÉ permitido o uso da CLI sem pre-requisitos de autenticação.$ underflow ask “python + fastapi”AuthenticaçãoExiste um limite de requisições. Caso necessite de autenticação, será preciso que você se autentique e
autorize este aplicativo a realizar pesquisas.Para viabilizar essa autenticação é necessário algumas informações sensíveis que podem
ser obtidas com o author deste projeto. De posse dessas informações,
coloque as informações como variaveis de ambiente e siga os passos.Após inserir, você pode executar o comando de autenticação:$ underflow authenticateO comando abrirá o Google Chrome, redirecionando você para mecanismo de autenticação e autorização do StackOverflow,
uma vez autorizado, você será redirecionado para uma página localhost para que a API interna possa capturar o token e
salvar em memória. Após isso pode continuar realizando as consultas.Telegram BOTO nome do bot no Telegram é UnderflowBot. Para responder as solicitações oriundas do bot, você precisa de algumas
informações secretas de integração, solicitar para o author. De posse dessa informações, voce exporta para variaveis
de ambiente e executar o comando abaixo para responder as solicitações.$ underflow bot-serverDesenvolvimentoProjeto foi desenvolvido principalemente com poetry + fastapi + typer + pytest, as demais dependências são utilitários.Instalaçao de dependências$ poetry installTestes$ poetry run pytestPossível Roadmap FuturoDesenvolvedor botserver em arquitetura serverless(aws lambda)Implementar autenticação entre as camadasImplementar controle de background e foregroundImplementar respostas interativas para o bot do Telegram
Package: underlying-prompts
Underlyging PromptsThe utility to inspect underlying prompts which are actually used for LLM applications.It is helpful for prompt engineering and records all the OpenAI requests and responses without extra cost. If you want to understand the underlying generated prompts from LLM applications likelangchainoropenmldb-chatgpt-plugin, you can useunderlyging-promptseasily.Installpip install underlying-promptsUsageStart the server.underlying-promptsSet the environment for clients.export OPENAI_API_BASE=http://127.0.0.1:8888/v1Run the demo OpenAI client../demo/openai_demo.pyCheck out the server log or prompts history.cat ./underlying-prompts.logResetReset the environment variable if you do not want to record prompts.unset OPENAI_API_BASEHow It WorksIt is the simple HTTP server to redirect requests fromopenai library. The user's requests will be fully forwards to OpenAI API server and it helps to records the underlying request data and response data.Here is the sample code ofserver.py.headers = {
    "Content-Type": request.headers["Content-Type"],
    "Authorization": request.headers["Authorization"]
}
json_data = request.get_json()
logger.info(f"OpenAI Request: {json_data}")

url = f"https://api.openai.com/{path}"
response = requests.post(
    url,
    headers=headers,
    json=json_data
)
logger.info(f"OpenAI Response: {response.json()}")
Package: underpants
underpants- Or, using Pants as an embedded rules engineFor Pantsbuild version: 2.14.0DISCLAIMER: This is not in any way to show how to use Pants, or recommended patterns of
use. Provided here AS-IS. No gurantees of any kind, as this may break with any future release of
Pants.This is a toy POC testing out the feasability of using thePants Build
Systemas a rule engine in your Python application.The relative narrow Python interpreter constraint of 3.9.* is due to the combination of Pants ICs of=3.7,<3.10 and the fact that for ARM based Mac (M1s) only >=3.9 works with Pants.
Package: underscode
Underscode is an encoding which is capable of representinganyUnicode string as a valid (and quite similar) Python
identifier.  The way Unicode strings are encoded minimises
the chances of clashing with other existing names, while not
obscuring the resulting string too much.Some method decorators are provided which allow arbitrary
objects to be accessed as normal instance attributes, with
optional tab-completion support for interactive usage.  The
standard Python codec API is also supported.
Package: underscoreclass
The Underscore ClassNow with even more ridiculousness!Examplefromunderscoreclassimport_classo(_):pass# Note: No comment required to validly use this emoji!(_^o^_)Documentation_Metaclass(_'s Metaclass)__add__,__sub__,__mul__,__div__, etc.Returnsself._(The Underscore Class)__add__,__sub__,__mul__,__div__, etc.Returnsself.FAQQ: Which operators does it support?A: All of them, including bitwise operators,__getitem__, and comparison operators!Q: What's the point?A: Does everything need a point?Q: This is the greatest thing I've ever seen!!! How do I support your coding?A: Subscribe toMy Patreon!
Package: underscores
__allows you to write Python code using only_.InstallationTo install the latest in-development version:python-mpipinstallgit+https://github.com/lemonyte/_Or, to install a specific commit or tag:python-mpipinstallgit+https://github.com/lemonyte/_@{commit-or-tag}Python 3.8or a newer version is required.UsageThe following script is a "Hello, world!" program which can be executed by the Python interpreter:# coding: __________________________________________________________________________________________________________________________________________________________________________________________________________________________________You can generate a script with_:print('print("Hello, world!")'.encode("_").decode("utf-8"))TroubleshootingIf you getSyntaxError: invalid syntax, make sure the line# coding: _is present at the top of your script.If you getSyntaxError: encoding problem: _, follow the steps below to make sure the_encoding is registered on startup:RunSITE_PACKAGES=$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')to get the path to the Python site-packages directory.Runecho "import underscores" > "$SITE_PACKAGES/_.pth"to register the_encoding on startup.Note: if using PowerShell, use$SITE_PACKAGESinstead ofSITE_PACKAGESto assign the variable.This issue is commonly encountered when installing_into the user site-packages.Credits_is a port of_from Ruby to Python.
Please check out the original creatormame.Big thanks toshailistforthisawesome post on custom encodings.LicenseMIT License