Saravanan666/pypi-org huggingface dataset:
Package: upgradeChat
A Python client for Upgrade.Chat's APIInteract with Upgrade.Chat's API in PythonInstallationFrom PyPi:python -m pip install upgradechatFrom GitHubpython -m pip install git+https://github.com/nwithan8/upgradechat.gitUsageCan retrieve data from Upgrade.Chat's API as raw JSON or pydantic objectsImport theupgradeChatpackage to initialize the API
Example:fromupgradeChatimportAPIapi=API(client_id="myclientid",client_secret="myclientsecret",raw=True)Setraw=Trueto return JSON data,raw=Falseto return objects.DocumentationDocumentation available onReadTheDocs
Package: upgraded-engineer
upgraded-engineerupgraded-engineeris a Python library for interacting withrusty-engine.Installationpip install upgraded-engineerDependenciesGStreamer (base and bad plugins required forupgraded-engineer, more required byrusty-engine)Open CV (known working with >= 4.0.0, must be compiled with GStreamer support)UsageImporting is simple:importengineTo simply start a newrusty-engineprocess, create an instance of theengine.Engineclass. You will have to figure out how to write frames into the shared memory yourself. (Note thatrusty-engineis expecting I420 color, and cannot determine what is being written for itself.)Alternatively, usingengine.EngineWriters provide thewrite_framemethod to write "normal" Open CV BGR color frames into shared memory for streaming.importengine# see also: engine.GStreamerEngineWriter for a GStreamer-only implew=engine.OpenCVEngineWriter()# alternately, if we wanted smaller videoew=engine.OpenCVEngineWriter(video_size=(426,240,30))# width, height, framerateNow, writing frames into shared memory is simple.defon_new_frame_whenever_that_is_for_you(frame):ew.write_frame(frame)# ew.write_frame handles the BGR to I420 conversion automagically
Package: upgrade-ensurepip
Once you find that:/your/installed/version/bin/python3 -m venv /some/venvfollowed by:/some/venv/bin/pip install some_packagegives a message that there is an update forpip, this package can
update the wheel files used byensurepip(pip,setuptools) to the latest versions
available on pypi, and get rid of this message (at least to the next upgrade).You can do this upgrade by running:/your/installed/version/bin/python3 -m upgrade_ensurepipIn order to be able to use the above command, you either have to install the
package using something like:/your/installed/version/bin/pip install --disable-pip-version-check upgrade_ensurepipor alternatively you can to make sure the fileupgrade_ensurepip.pyfrom that package is in
your current directory.Without optionsupgrade_ensurepipchecks the JSON information on the
pacakage, downloads the wheel (to memory) if there is a newer version and does a
check against the sha256 is made before saving the newly downloaded wheels to
disc.If started With the option--pip, thepip“living” in the same directory
as the Python executable is used to first search for the package to get the
latest version number, thenpipis used to download the wheel for that
version. This is somewhat slower, but aspipshould follow any instructions
in your~/.config/pip/pip.conf, including upgrading from local repositories.After finding and downloading newer versions, using one of the above methods, the/your/installed/version/lib/pythonX.Y/ensurepip/__init__.pyfile is updated
as it hard-codes the versions of the wheels used. Before changing, a backup of
the original is made if such a backup does not yet exist.As old wheels are preserved, only backup file__init__.py.orglocated under/your/installed/version/lib/pythonX.Y/ensurepip/needs to be copied back in case you encounter any problems.
Package: upgrade-knausj
UpgradeknausjHelper for performingknausjupgrades.AssumptionsYou have a fork ofknausjYou haven't altered your pre-commit config. If you don't know what that means, then you are fine 😊InstallationInstallpipxRunpipx install pre-commitRunpipx install upgrade-knausjHow to runPush your changes to your forkRunupgrade-knausjIf necessary, resolve any merge conflicts, commit, then re-runupgrade-knausjRepeat steps 2-3 until it says you're doneDo a pull from your main Talon user directoryRestart Talon and look in the log file for errors
Package: upgrade-pip
UPGRADE-PIPthis is packages for upgrade all packages python if packages has been outdatedpip install upgrade-pipREASON TO UPDATE THIS REPOSITORY BECAUSEHEREhow to usefirst you need to install it "pip install upgrade-pip"https://github.com/Xnuvers007/upgrade-pipNOTE : OLDER VERSION CANNOT TO USE IT <= 0.1.3.post1Using this version 0.1.4usageimport uppipuppip.startupgradepip()See Upgrade-pip Wiki :)Wikipedia upgrade-pipSee More in HereCopyright© 2022 Xnuvers007 - All Rights Reserved.
Package: upgrade-requirements
upgrade-requirements.py=======================[![Current version on PyPI](https://img.shields.io/pypi/v/upgrade-requirements.svg)](https://pypi.python.org/pypi/upgrade-requirements/)Upgrade all your outdated `requirements.txt` in a single command.Motivation----------Even though `pip list --outdated` exists, sometimes you just want torun `pip install --upgrade` to upgrade a package, then persist it toyour `requirements.txt` in one big sweep.Installation------------```bash$ pip install upgrade-requirements```Usage-----```bash$ upgrade-requirements```(Or use the shortcut command `upreq`.)Now's a good time to grab a â˜• while it runs.After it finishes, run your tests to make sure an individual upgrade didn'tbreak anything. Then move on to bigger things ðŸš€#### Found a problem with an upgraded version?No worries!1. Revert individual entries in `requirements.txt` with the help of git2. Run `pip install -r requirements.txt` to downgrade to working versions3. Commit the upgraded-and-tweaked `requirements.txt` like normal and carry on ðŸŽ‰#### More usages```bash$ upgrade-requirements -h``````usage: upgrade-requirements [-h] [-r REQUIREMENTS]optional arguments:-h, --help            show this help message and exit-r REQUIREMENTS, --requirements REQUIREMENTSspecify the location of the requirements.txt file```Room for improvement--------------------- This only work with pinned (`==`) packages at the moment. The intention is toget it to work more generally. This can be broken down into three sub-tasks:- Get it to ignore non-pinned requirements instead of fail- Get it to work with other specifiers, e.g. `>=` (how would this work?)- Handle all types of requirement entriesFeel free to open an issue or PR with ideas.
Package: uphold-python3
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile, an example of which is included in this project. You should edit this
file accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and be written usingreStructuredText. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: upiano
UPianoA Piano in your terminal.ScreenshotHow to runFirst, you'll need to installFluidSynth, if you haven't already.See here how to install FluidSynth on your system.Then, installupianovia pip:pip install upianoAnd then run:upianoMake sure your terminal window is big enough.
The wider you can make it, the more keys you'll have! 🎹 😀How to playTo play with the mouse, click on the notes you want to play.To play with the computer keyboard, there is a limited and currently hardcoded
keymap that corresponds to the following, which will play the notes on the left side:┌─┬──┬┬──┬─┬─┬──┬┬──┬┬──┬─┬─┬──┬┬──┬─┬─┬──┬┐
│ │██││██│ │ │██││██││██│ │ │██││██│ │ │██││
│ │W█││E█│ │ │T█││Y█││U█│ │ │O█││P█│ │ │██││
│ └┬─┘└┬─┘ │ └┬─┘└┬─┘└┬─┘ │ └┬─┘└┬─┘ │ └┬─┘│
│A │ S │ D │F │ G │  H│ J │K │ L │ ; │' │  │
└──┴───┴───┴──┴───┴───┴───┴──┴───┴───┴──┴──┘Note that since the terminal doesn't really support key press and release events (it receives a stream of characters instead), there is no way to support two key playing at the same time with the computer keyboard only.But you can play with the computer keyboard and with the mouse simultaneously, as you can see in this video:https://www.youtube.com/watch?v=0VXit110PcAPowered byPython🐍TextualFluidSynthpyFluidSynthMade with ❤️  by Elias DornelesHistoryThis started as a fun pairing project by friendsEliasandNandajaaround 2017, after they had
finished theirRecurse Centerretreat and were missing
hacking together.They had fun building a small terminal piano app usingurwidfor the user interface and playing notes by spawningsoxsubprocesses. This version is available in
the project source code, if you have urwid and sox installed, you can try it by
running:python upiano/legacy.py.Fast-forward to 2023, Elias attended EuroPython and learned theTextuallibrary there, got excited about
terminal apps again and decided to reboot this project using the newly acquired
knowledge, package and distribute it, and add to the fun by plugging a true
synthesizer to it, and playing with its controls.Changelog:v0.1.2added volume, reverb and chorus slidersfix packaging config, to work on any Python 3.10+v0.1.1added sustainfix mouse handling, and allow playing by "swiping" over keysv0.1.0first version released to PyPI, already using Textual
Package: upicasa
This is a simple Python script that allows one to upload photos into
Google’s PicasaWeb from the command line.  It can also list the albums
that already exist on the user’s PicasaWeb gallery and can create a
new album to upload the photos to.upicasais still very rough on the edges, the user interface is not
bulletproof, no exceptions are handled.  It is, however, useful for
the author, and can be useful for someone else.Installingupicasais a Python package packaged withsetuptools, therefore you
can install it runningeasy_install upicasaor by directly invoking
thesetup.pyscript:python setup.py installupicasauses Google’sgdataPython library to access the PicasaWeb
services.  It is the only real depencency beside Python.UsingWhen first invoked,upicasawill prompt for the Google account name
and password.  It will ask whether to save these credentials.  The
saved username and password are normally stored in the file~/.config/upicasa/auth.  If this file exists, upicasa will not query
the credentials interactively.You can list the albums like this:upicasa -lYou can create a new album and upload photos to it like this:upicasa -n "Album name" *.jpgYou can add photos to an existing album like this:upicasa -a "Album name" *.jpgThe album is matched by a substring of a name.  If the string provided
will match more that one album, you will get a list of matching albums
and no photos will be uploaded.ChangelogChanges in version 0.2:Fixed a silly bug in password saving.Changes in version 0.1:Initial release.More infoAuthor: Albertas Agejevas <alga@pov.lt>URL:http://bitbucket.org/alga/upicasa/
Package: upils
Unified Python UtilsCollection of python library utilsInstallationpoetry add upilsHow to use the loggerFirst, set up the logger. It accepts string like "INFO" or int 20logger = configure_logger(20)And then you can just use it like other loggerlogger.info("info")
logger.warning("warning")Add extra informationHow to use the extra logging:logger.bind(user="ajung", desc="smart").error(
    "Inline binding of extra attribute"
)The output will be{"level": "ERROR", "time": {"repr": "2023-10-04 12:03:53.043106+07:00", "timestamp": 1696395833.043106}, "message": "Inline binding of extra attribute", "file": {"name": "app.py", "path": "/Users/user/Documents/projects/de-projects/service/statistics-services/app.py"}, "line": 47, "exception": null, "extra": {"ajung": "smart"}}
Package: upit
Unpaired image-to-image translationThis is a package for training and testing unpaired image-to-image
translation models. It currently only includes theCycleGAN,DualGAN, andGANILLAmodels, but other models
will be implemented in the future.This package usesfastaito
accelerate deep learning experimentation. Additionally,nbdevwas used to develop the package
and produce documentation based on a series of notebooks.InstallTo install, usepip:pip install git+https://github.com/tmabraham/UPIT.gitThe package uses torch 1.7.1, torchvision 0.8.2, and fastai 2.3.0 (and
its dependencies). It also requires nbdev 1.1.13 if you would like to
add features to the package. Finally, for creating a web app model
interface, gradio 1.1.6 is used.How to useTraining a CycleGAN model is easy with UPIT! Given the paths of the
images from the two domainstrainA_pathandtrainB_path, you can do
the following:fromupit.data.unpairedimport*fromupit.models.cycleganimport*fromupit.train.cycleganimport*dls=get_dls(trainA_path,trainB_path)cycle_gan=CycleGAN(3,3,64)learn=cycle_learner(dls,cycle_gan,opt_func=partial(Adam,mom=0.5,sqr_mom=0.999))learn.fit_flat_lin(100,100,2e-4)The GANILLA model is only a different generator model architecture
(that’s meant to strike a better balance between style and content), so
the samecycle_learnerclass can be used.fromupit.models.ganillaimport*ganilla=GANILLA(3,3,64)learn=cycle_learner(dls,ganilla,opt_func=partial(Adam,mom=0.5,sqr_mom=0.999))learn.fit_flat_lin(100,100,2e-4)Finally, we provide separate functions/classes forDualGANmodel and training:fromupit.models.dualganimport*fromupit.train.dualganimport*dual_gan=DualGAN(3,64,3)learn=dual_learner(dls,dual_gan,opt_func=RMSProp)learn.fit_flat_lin(100,100,2e-4)Additionally, we provide metrics for quantitative evaluation of the
models, as well as experiment tracking with Weights and Biases. Check
thedocumentationfor more
information!Citing UPITIf you use UPIT in your research please use the following BibTeX entry:@Misc{UPIT,
    author =       {Tanishq Mathew Abraham},
    title =        {UPIT - A fastai/PyTorch package for unpaired image-to-image translation.},
    howpublished = {Github},
    year =         {2021},
    url =          {https://github.com/tmabraham/UPIT}
}
Package: upk2esphome
upk2esphomeThis website allows you to generate ESPHome YAML Configuration based onuser_param_keyparameters, used in many Tuya smart devices.A live, web version is deployed on GitHub Pages athttps://upk.libretiny.eu/.Since v4.1.0,ltchiptoolcontains a GUI that can generate ESPHome configs (based on this program). It can also grab configuration data fromESPHome-Kickstart.
Package: upkeep
Easier Gentoo system maintenanceThis is a set of commands to simplify maintaining a Gentoo system.DocumentationesyncThis command needseixinstalled to fully function. It runseix-sync. This
is intended for use as a cron job. I use it daily.This command can runlayman -Sfor you if you pass-lor--run-layman.emergesThis command will do the following:Update PortageUpdate@worldwith options--with-bdeps=y,--update,--deep,--newuseUpdate live installations of packages (@live-rebuild)Runemerge @preserved-rebuildRunsystemctl daemon-reexec(if applicable)Update the kernelThere are flags to disable most parts of this functionality, such as--no-upgrade-kernel. Pass--helpto see all the options.Automatic kernel update processOlder versions of this tool supported various ways to update the kernel to boot from. However this
is better left to the configuration and hooks ofkernelinstallwhich is invoked bymake install.The automatic kernel update will only work if there are 2 kernels displayed
with the commandeselect --brief kernel list. The first one in the list must
be the active kernel. The second one is the one to upgrade to. After switching
to the new kernel, a.configmust exist in/usr/src/linuxor the command
will not runmake. If the configuration exists at/proc/config.gzit will
be used.Ifemergesfails to build the kernel because of the state ofeselect kernel list, you can fix it and re-run the update by runningupgrade-kernel.The old kernel data in/bootwill be stored in/root/.upkeep/old-kernels.If you want to only rebuild the kernel, runrebuild-kernel.ecleansThis command will run the following commands (or equivalents):emerge --depcleanemerge @preserved-rebuildrevdep-rebuildeclean-dist --deeprm -fR /var/tmp/portage/*
Package: upkg
# UPKG
Package Yourself, a tool to help you manage repos of your personal ‘scripts’ like they’re packages.Use Git repos as installable program packages, just like a system package
manager.## NOTESmake, git, bash, python – that’s it## TODO
* implment base command stubs
* Make something installable.
* Support config file(s)## Config fileIt’s python.At~/.config/upkg/upkg_cfg.pyruntime switch -c to override default## CMDS### install### search### update### remove### push### query### depends### provides## Profiles / GroupsInstall a set of packages in one commandCopyright (C) 2013 Jeff ButtarsThis program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
Package: upkie
Upkie wheeled biped robotUpkieis a fully open source self-balancing wheeled biped robot. It has wheels for balancing, and legs to go off-road or negotiate uneven terrains. Upkies are designed to be buildable at home with tools and components ordered online, like mjbots actuators. Motion control runs onboard the robot's Raspberry Pi.This repository contains all the software and instructions required to build and operate an Upkie. Development can be done in Python or C++, on Linux or macOS. Questions are welcome in theChatandDiscussions forum.InstallationTo code for Upkie in Python, just install:pip install upkieThis Python interface is alreadyfast enoughfor real-time control. If later on you want to optimize parts of your code, you can move them to C++spines.SimulationAssuming you have a C++ compiler (setup one-liners:Fedora,Ubuntu), you can run an Upkie simulation right from the command line. It won't install anything on your machine, everything will run locally from the repository:git clone https://github.com/upkie/upkie.gitcd upkie./start_pid_balancer.shClick on the robot in the simulator window to apply external forces.ExampleYou can develop your own agent using the Gymnasium environments distributed inupkie.envs. For example, here is a simple proportional-feedback balancer:importgymnasiumasgymimportupkie.envsupkie.envs.register()withgym.make("UpkieGroundVelocity-v3",frequency=200.0)asenv:observation=env.reset()action=0.0*env.action_space.sample()forstepinrange(1_000_000):observation,reward,done,_=env.step(action)ifdone:observation=env.reset()pitch=observation[0]action[0]=10.0*pitchTo test this agent on your computer, run the agent and simulation spine in two separate processes:python this_agent.pyin one shell, and./start_simulation.shin the other.To run this agent on the robot,scpthe script to the Raspberry Pi, start api3hat spineand execute the script on the Pi itself.To go furtherBuild your own Upkie🧰More examplesProject logon Hackaday.ioSoftware documentation
Package: upkie_description
Upkie wheeled biped robotURDF description for theUpkiewheeled biped.Installationpip install upkie_descriptionUsageThis module helps retrieve Upkie's model from a Python program. Import it by:importupkie_descriptionYou can then load the description directly in a robotics framework, for instance inPinocchio:robot=upkie_description.load_in_pinocchio()The module also provides the following paths:upkie_description.pathPath to the "upkie_description" folder itself.upkie_description.meshes_pathPath to the "meshes" folder.upkie_description.urdf_pathPath to the URDF file of the model.AcknowledgementsUpkie's torso derives from the chassis of themjbots quad.
Package: upkie_locomotion
Upkie locomotionLocomotion code for theUpkiewheeled biped.Test it straight from the command line on Linux, no installation required:git clone https://github.com/tasts-robots/upkie_locomotion.gitcd upkie_locomotion./tools/bazelisk run -c opt //agents/blue_balancer:bulletConnect a USB controller to move the robot around. 🎮Getting startedThere is no dependency to install thanks toBazel, which builds everything locally. (Compilation will only take a while the first time.) The syntax is the same to deploy to the Raspberry Pi on Upkie withraspunzel.The code is organized intospines, which communicate with the simulator or actuators using theVulpC++ library, andagents, the main programs that implement behaviors in Python. In the example above we ran the blue agent. We could also run the Bullet spine independently:bazel run -c opt //spines:bullet -- --showThe-c optargument to Bazel makes sure we compile optimized code, while the--showargument to the spine displays the Bullet visualization.AgentsBlue balancerA baseline agent designed to check out Upkie's physical capabilities. It balances the robot using PD feedback from the head's pitch and wheel odometry to wheel velocities, plus a feedforwardnon-minimum phase trickfor smoother transitions from standing to rolling. An analytical inverse kinematics is plugged in for crouching and standing up (crouching is controlled from D-pad of the USB controller, if one is found).Pink balancerSame as the Blue balancer, but inverse kinematics is computed byPinkrather than with a model-specific analytical solution. This is the controller that runs in thefirsttwovideos of Upkie.PPO balancerAn agent trained by reinforcement learning to balance with straight legs. Training uses theUpkieWheelsEnvgym environment and the PPO implementation fromStable Baselines3.EnvironmentsUpkieServosEnvUpkie with full observation and joint position-velocity-torque actions.UpkieWheelsEnvUpkie with full observation but only wheel velocity actions.Environments are single-threaded rather than vectorized. In return, they run as-is on the real robot.ObserversFloor contactDetect contact between the wheels and the floor. Both Blue and Pink agents use contact as a reset flag for their integrators, to avoid over-spinning the wheels while the robot is in the air.Wheel contactDetect contact between a given wheel and the floor.Wheel odometryMeasure the relative motion of the floating base with respect to the floor. Wheel odometry is part of their secondary task (after keeping the head straight), which is to stay around the same spot on the floor.SpinesBulletSpawn Upkie in aBulletsimulation. Resetting this spine moves the robot back to its initial configuration in this world.pi3hatSpine is made to be called from a Raspberry Pi with an onboard mjbotspi3hat. Servos are stopped when the spine is stopped, and switch toposition mode(which is a position-velocity-torque controller) when the spine idles. Check out thespine state machinefor details.