Saravanan666/pypi-org huggingface dataset:
Package: unzipmbcs
UnZip for non-UTF8 encodingExtract zip files that MBCS(multi-byte character set) encoded file names,
such as ZIP files created in MS Windows, especially East Asian environment.Major non-UTF8 encodings by languages:Korean: cp949, euc-krJapanese: sjis (shift_jis), cp932, euc-jpChinese: gbk, gb18030, gb2312, cp936, hkscs, big5, cp950Installpip install unzipmbcsCLI Usageusage: unzipmbcs [-h] [-e ENCODING] cmd zipfile [target [target ...]]

unzip for non-UTF8 filenames in zip archive

positional arguments:
  cmd                   commands: l(list), x(extract)
  zipfile               .zip file to unzip
  target                file prefix to extract

optional arguments:
  -h, --help            show this help message and exit
  -e ENCODING, --encoding ENCODING
                        character encoding of filename in the .zip
  -p PASSWORD, --password PASSWORD
                        password for encrypted .zipAPIlistZip(filename, encoding='utf-8')Return the information of the files in zip archivefilenamewith characterencodingextractZip(filename, encoding='utf-8', filters=None, password=None)Extract files in zip archivefilenameon current directory.
Assume that the file names in zip archive are encoded asencoding.
Only the files prefixed the values offilterslist are extracted
iffiltersare provided.
Usepasswordon encrypted zip archive.fixZipFilename(filename, enc)Fixfilenameas UNICODE string which is originally encoded asenc.
Works for both Python 2 and 3.MotivationThe .ZIP format, PKZIP compression, have been widely used. Some valuable data are archived as .zip file.
But, in non-ASCII, non-Western environment, it makes trouble due to filenames.Since ZIP format was created too old (1993), there is no standard character encoding about the file name of zip archive entries.
Most of zip file entries are encoded as legacy character encoding, local charset.In modern UNICODE based environment or global data processing environment such as Linux, this makes inconvenience, less portability, mangled file names, fail to extract the file, and so on.This module may mitigate the inconveniences.
Package: unzippy
unzippybusybox unzipwouldn't open one of my files, so I made this script with a
similar API, and itWORKED💥🤾.installpython-mpipinstallunzippyor with curlcurl-o~/.local/bin/unzippyhttps://git.sr.ht/~rasch/unzippy/blob/main/unzippy.py
chmod+x~/.local/bin/unzippyusage# print help menuunzippy-h# extract filesunzippyarchive.zip
Package: unzlib
unzliba python command that can decompress the zlib binary dataInstallpip3 install unzlibUsage# How about use this unzlib repository to test :)
git clone https://github.com/ramwin/unzlib.git && cd unzlib
# You can see the content which is compressed by git easyly.
cat .git/objects/c2/dc76d6e9ecfa41381f20813575f92c538448f4 | unzlib/unzlib.py
Package: uoft-core
AboutThis package contains a set of utilities useful for building python libraries, scripts, and command-line utilitiesIt's designed to be easy to include in other projects. all of its mainline dependencies are vendored and all modules which have external un-vendorable dependencies are available as optional extrasInstallpip install uoft_coreto include all optional dependencies, runpip install uoft_core[all]UsageThis toolkit makes it really easy to write small, simple, well designed CLI utilities
In fact, the aim of this project is to make well-engineered CLIs almost as easy to write and deploy as basic python scripts
it leverages a lot of really fantastic modern libraries and tools to do so, likepoetry,typer, andlogurulet's assume you've created a new project withpoetry new, and you want to add a CLI interface to it. here's one way to do that:
create acommon.pyfiles with your super handy dandy useful function in it:fromloguruimportloggerdefmy_super_awesome_function():logger.debug("I'm running my_package.common.my_super_awesome_function!")create a__main__.pyfile in your package like so:importosfrom.commonimportmy_super_awesome_functionfromat.utilsimportconfigure_loggingimporttyperfromloguruimportloggerapp=typer.Typer()@app.callback()defcallback(verbose:bool=False):"""Here is my app's main help stringUsers will see this when they run `python -m my_package`"""log_level='DEBUG'ifverboseelse'INFO'configure_logging('my_app_name',stderr_level=log_level,logfile_level='DEBUG',sentry_level=None)@app.command()defmy_command(option:bool):"""Here's the help text my users will see when they run `python -m my_package my-command -h`"""logger.debug("running my-command")# this will only get printed if the --verbose flag is setmy_super_awesome_function(option)if__name__=="__main__":ifos.environ.get('PYDEBUG'):# we're in a debugger session# here we can put whatever debugging code we want# we can configure logging so all messages up to DEBUG are logged to stderr, and nothing gets logged to file:configure_logging('my_app_name','DEBUG',None,None)# do debugging stuff herelogger.debug("I'm a debug message!")exit()try:app()# cli code goes hereexceptKeyboardInterrupt:print("Aborted!")exit()the main api (all the stuff directly importable fromat_utils) consists of:every function defined in themainmoduletheconfigure_loggingfunction from thelogmoduleconfigure_logginghas an option to enable logging to sentry. in order to use it, you need to install at_utils with thesentryextra (iepip install at-utils[sentry]orpoetry add -D at-utils[sentry])apart from that, there are other modules which can be imported separately:yamlhas a whole bunch of useful and sometimes esoteric utilities for working with yaml files, built on top ofruamel.yamldev_utilshas commmand-line utilities for working with python projects, specifically made for projects that usepoetry
Package: uoft-switchconfig
This tool uses the Jinja template language to instantiate switch configs for new switches from a set of base templatesInstalationThis tool is designed to run on Linux, MacOS, and Windows Subsystem for Linux (a.k.a. WSL)Option #1: Homebrewbrew tap uoft-networking/tools https://github.com/uoft-networking/tools
brew install uoft-networking/tools/uoft_switchconfig
Package: uol-auto-vpn
UoL Auto VPNAutomatically extract a VPN cookie from remote.lincoln.ac.uk and connect. For faster access fill in env.json.DocumentationPlease refer to thedocumentationfor installation instructions and API usage.UsageMethod One (Best)One line installer.wget-qOinstall.shhttps://raw.githubusercontent.com/RaymondKirk/uol_auto_vpn/main/install.sh&&((sleep2&&rminstall.sh)&)&&bashinstall.sh# orcurl-shttps://raw.githubusercontent.com/RaymondKirk/uol_auto_vpn/main/install.sh--outputinstall.sh&&((sleep2&&rminstall.sh)&)&&bashinstall.shOnce installed run from any terminal window via the commanduol_auto_vpn.Method Two (Pip)pipinstalluol_auto_vpn
uol_auto_vpnMethod Three (Source)sudoaptinstallpython3python3-venvopenconnect
gitclonehttps://github.com/uol_auto_vpn--depth1cduol_auto_vpn
python3-mvenvvenv--clearsourcevenv/bin/activate
pipinstall-e.
uol_auto_vpn# or => python uol_auto_vpn/run.py
Package: uol-grades-calculator
Grades CalculatorThis tool is all about getting information and generating insights from the progress made in aBSc Computer Science at the University of London(calculations are specific to this particular degree).Just starting out? You're one command away from being able to get going!Want to find out if there are any rounding issues (large or small...) with your grades? Easy!Want to see how you are doing (academically at least)? Get an overview. ** The above grades may or may not reflect actual results. Your mileage will vary.Fancy some visual output? Show it in a single step withugc plot modules!In order to use it, pleaserefer to the documentation.
Package: uom
UOMStatic code analysisToolsBadgesScrutinizerCodacyCodecovCoverallsCodeQLCircleCITravisCIFossaPyPIPePyCode formattingDescriptionPython unit of measure (UOM) conversion toolEnergistics UOM 1.0 (https://www.energistics.org/energistics-unit-of-measure-standard/)
is the primary source of conversion factors and unit symbols.
We extended it with additional unit aliases and a "unitless" unit that
doesn't have any conversion.The units are case-sensitive.Where to get itThe source code is available on GitHub at:https://github.com/Schlumberger/UOMBinary installers for the latest released version are available at the Python
Package Index (PyPI).pipinstalluomUsagePlease find examples of possible utilization:Find conversion factors to be applied to convert from one unit to anotherfromuomimportconversion_factorsscale,offset=conversion_factors(source='m',target='ft')Convert a value from one unit to anotherfromuomimportconvertprint(convert(value=10,source='m',target='ft'))Return the base SI (https://en.wikipedia.org/wiki/International_System_of_Units) unit.
If you are using unit alias you can find the compatible Energistics UOM symbolfromuomimportbase_unit,unit_aliasprint(base_unit('kft.lbf'))print(unit_alias('kft.lbf'))If you have suggestions for improvement or you found bugs,
please don't hesitate to put them on the issue list.License
Package: uom-project
uom-projectRepository containing code and and other materials for my undergraduate project on numerical solutions to the Navier-Stokes equations at the University of Manchester.NoteMany of these codes were written abruptly and for one time use only, so it can (and probably will) be hard to read, but (at least most of them) should run smoothly by just executing the cells in the notebooks one after the other.Useful linksOriginal materials created by the author of the book that I read Edward J. Hinch to supplement the book (and more) can be foundhere.The codes in this repository make heavy use ofSciPy.
Package: uonet-request-signer-hebe
UONET+ (hebe) request signer for PythonInstallation$pipinstall-Uuonet-request-signer-hebeUsageGenerate an RSA2048 key pair (private key and certificate):fromuonet_request_signer_hebeimportgenerate_key_paircertificate,fingerprint,private_key=generate_key_pair()Sign request content:fromuonet_request_signer_hebeimportget_signature_valuesfromdatetimeimportdatetimedigest,canonical_url,signature=get_signature_values(fingerprint,private_key,body,full_url,datetime.now())Tests$python-mpytest.
Package: uoo
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: uopenai
uOpenAIuOpenAI is a lightweight, asynchronous Python library designed to interact with the OpenAI API. Leveraging the power ofhttpxfor async HTTP requests andpydanticfor data validation and settings management, it aims to provide a seamless and efficient way to access OpenAI's capabilities in modern async Python applications.FeaturesFully Asynchronous: Built from the ground up for asyncio compatibility.Type-Hinted: Ensures robust code through comprehensive type annotations.Simple and Intuitive: A straightforward API to access OpenAI's features with minimal boilerplate.InstallationTo install uOpenAI, run:pipinstalluopenaiQuick StartHere's a quick example to get you started:importasynciofromuopenaiimportOpenAI,Messageasyncdefmain():api=OpenAI("your-api-key")# Complete a prompt with optionsres=awaitapi.complete([Message("system","You are a chat bot"),Message("user","What’s on your mind?")],max_tokens=50)print(res.choices[0].message.content)# easy versionres=awaitapi.easy_complete("What’s on your mind?","You are a chat bot")if__name__=="__main__":asyncio.run(main())Replace "your-api-key" with your actual OpenAI API key.RequirementsPython 3.7+OpenAI API keyhttpxpydanticContributingContributions are welcome! Feel free to open an issue or submit a pull request.LicenseuOpenAI is released under the The Unlicense. See the LICENSE file for more details.
Package: uopy
UniObjects for Python (UOPY)UniObjects for Python (UOPY) is a Python package by Rocket Software. It is a client API that allows Python applications to access Rocket MV Databases over the network.InstallationInstall from PyPI$pipinstalluopyQuick startBefore using UOPY to connect to an MV Database, you must be running either aUniVerseorUniDataserver.The following example uses UOPY to connect to UniVerse on Windows.>>>importuopy>>>ses=uopy.connect(host='localhost',user='username',password='password',account='XDEMO')>>>cmd=uopy.Command("LIST LOCATIONS")>>>cmd.run()>>>print(cmd.response)LISTLOCATIONS01:58:07pm13Oct2020PAGE1LOCATIONS.LocationName............WHSE1MainwarehouseWHSE2SecondarywarehouseWHSE3TertiaryWarehouse3recordslisted.ResourcesNameLinkGitHub UOPY examples repositoryhomeUOPY: Intro to UOPY, UniObjects for PythonvideoUOPY: GUI examplesvideo,codeUOPY: Webserver app demovideo,codeUOPY: Android DemovideoAPI ReferenceDoc site
Package: uorf4u
DescriptionuORF4uis a bioinformatics tool for conserved upstream ORF annotation.Programming language:Python3OS:MacOS, LinuxPython dependencies:biopython, configs, argparse, pandas, statistics, logomaker, matplotlib, reportlab.Python version:>= 3.7OS-level dependencies:mafft (v7.490 is included in the package)License:CC0Version:0.9.5 (May 2023)Web version is available at the Atkinson Lab Server Portal:server.atkinson-lab.com/uorf4uDetailed documentationInstallation 🛠️The most stable release of uorf4u can be installed directly from pypi:python3 -m pip install uorf4uThe development version is available at github :git clone https://github.com/GCA-VH-lab/uorf4u.git
cd uorf4u
python3 -m pip install --upgrade pip
python3 -m pip install wheel
python3 setup.py sdist bdist_wheel
python3 -m pip install -e .!If you're a linux user, runuorf4u --linuxpost-install command once to update paths in the premade config files that set by default for MacOS users.Reference 📃If you find uorf4u useful, please cite:Artyom. A. Egorov, Gemma C. Atkinson,uORF4u: a tool for annotation of conserved upstream open reading frames,bioRxiv 2022.10.27.514069; doi:10.1101/2022.10.27.514069Contact 📇Please contact us by e-mailartemdotegorovATmeddotludotseor useIssuesto report any technical problems.You can also useDiscussions sectionfor sharing your ideas or feature requests!Authors 👨🏻‍💻uORF4u is developed by Artyom Egorov atthe Atkinson Lab, Department of Experimental Medical Science, Lund University, Sweden 🇸🇪. We are open for suggestions to extend and improve svist4get functionality. Please don't hesitate to share your ideas or feature requests.
Package: uos-activpal
python-uos-activpalA python package for working with data from activPAL devices.Installationpip install uos_activpalDocumentationAvailable on Read The DocsSubpackagesIOContains classes and functions for loading activPAL data files.
Some modifications to the data files are possible e.g. to change the file code (commonly used as participant ID).RawThe module for working with the raw signal data (.dat or .datx files). It should be fast as it uses Numba to JIT compile key functions.The function load_activpal_data takes the path to a file as the input and returns a tuple containing metadata and a NumPy array with one column for each axis of the sensor.Call Signature:meta, signals = load_activpal_data(file_path).The class activpal_data makes it easier to work with the data by providing useful functions as methods.activpal_data.signalsreturns a DataFrame containing the signals.activpal_data.timestampsreturns the timestamps.activpal_data.xreturns a the x axis signal as a Series, replace x with y or z for the other axes.activpal_data.rssreturns the root sum of squares of x, y, z.Call Signature:activpal_data = activpal_data(file_path).GUIContains modules for building GUIs to interact with activPAL data.BaseA module which contains base classes for GUI application development. The other modules in GUI build upon the base module classes.Raw ViewerContains classes for building applications for viewing the raw data.The module contains a working example which allows interactively loading data files and inspecting them.To run this application use:python -m uos_activpal.gui.raw_viewer.Raw MarkerContains classes for building applications for marking points in the raw data and saving the sample number and timestamp.The module contains a working example (screenshot below) which allows interactively loading data files, marking points and saving them to file.To run this application use:python -m uos_activpal.gui.raw_marker.DisclaimerThis package is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details. A copy of the General Public License version 2 should be included with this toolbox. If not, seehttps://www.gnu.org/licenses/gpl-2.0.html.
Package: uosclient
Unipart OpenStack client toolsThis is a set of simple tools designed to automate various common
system administration tasks within the Unipart OpenStack
infrastructure.These tools are highly opinionated and inflexible by design, since the
purpose is to ensure consistency in the way that system administration
tasks are performed.InstallationFedora / CentOS 8dnfcoprenableunipartdigital/pkgs
dnfinstalluosclientCentOS 7yum-config-manager--add-repo\https://copr.fedorainfracloud.org/coprs/unipartdigital/pkgs/repo/epel-7/unipartdigital-pkgs-epel-7.repo
yuminstalluosclientOtherpip3installuosclient
Package: uotp
μOTP+ is the next generation OTP toolkit.InstallationYou will need Python 3.4 or higher in order to runuotp.$pipinstall-UuotpHow to use μOTP+ as GUI applicationRunuotp gui.$uotpguiHow to use μOTP+ as CLI applicationJust runuotp.$uotpμOTP+ will automatically issue a new account and sync time with the server for you.Once you have successfully issued the new account, runninguotpagain will start giving you the OTP token.For more information, seeuotp--help.Configuration fileBy default, a new configuration file will be automatically generated on~/.config/uotp/config.yml.This behaviour however can be overriden by passing--conf=/path/to/config.ymltouotpcommand or settingUOTP_CONF=/path/to/config.ymlenvironment variable.$uotp--conf=uotp.ymlnew$UOTP_CONF=uotp.ymluotpnewHow to develop an application using μOTP+# Import everythingfromuotpimportUOTP# Create an instance of UOTPuotp=UOTP# Issue a new accountuotp.issue_account()print('S/N: ',uotp.account_serial_number)# Sync time with the serveruotp.sync_time()# Get a new OTP tokentoken=uotp.generate_token()print('Token: ',token)LicenseAll proprietary materials are intellectual property of (C) 2004 - 2017 ATsolutions
Package: uottawa-gym-scheduler
uOttawa Gym Scheduler UsageDependenciesREQUIRES PYTHON 3PandasBS4RequestsIf you do not have any of the above, run the following script in your terminal/command prompt.pip install requests
pip install bs4
pip install pandasUsageIn a terminal, navigate to the cloned directory and run the following:python scheduler.pyThen, input your account barcode, your account PIN, the barcode of the gym slot you want to reserve, and the time in MS between each request (recommended is 5000).The barcode for every gym slot can be found here:PSAMake sure you choose a future gym slot barcode that doesn't have a waitlist on it for this bot to work.
Package: uoy-assessment-uploader
uoy_assessment_uploaderPyPI page:https://pypi.org/project/uoy-assessment-uploader/InstallWhen you have Python and Pip ready, it's as easy as:python-mpipinstall"uoy-assessment-uploader"As shrimple as thatAlternative installYou can also install it directly from the repo with pip:python-mpipinstall"git+https://github.com/joelsgp/uoy-assessment-uploader.git"Or on an alpm (Arch) Linux system you can get it from the AUR athttps://aur.archlinux.org/packages/uoy-assessment-uploader.paruuoy-assessment-uploaderUseLike this:python-muoy_assessment_uploader--helporuoy-assessment-uploader--helpOnce it's submitted, you should receive an email to your uni address with confirmation.
The email will show you the MD5 hash, like so:MD5 hash of file: 97f212cda7e5200a67749cac560a06f4If this matches the hash shown by the program, you can be certain you successfully uploaded the right file.Exampleuoy-assessment-uploader--dry-run\--username"ab1234"--exam-number"Y1234567"\--submit-url"https://teaching.cs.york.ac.uk/student/2021-2/submit/COM00012C/901/A"Found file '/home/joelm/src/uoy-assessment-uploader/exam.zip'.
MD5 hash of file: 8bbd39fa6a215eb1ea43c34b0da764b9
Loading cookie file 'cookies.txt'
Loaded cookies.
Logging in..
Logging in from scratch.
Password: <PASSWORD HIDDEN>
Logged in.
Entering exam number..
Entered exam number.
Uploading file...
Skipped actual upload.
Saving cookie file 'cookies.txt'
Saved cookies.
Finished!
Package: up
Sometimes you just need to know, is it up? The goal of this project is to create an easy to use, but highly customizable status monitor.SetupFirst start by installing the environment.$mkdirexample-status$cdexample-status$virtualenv.-ppython3--no-site-packages$bin/pipinstallupNow you need to create theupfile.py. It goes in the same folder as everything else. From here you can setup what you want to monitor.fromupimportstatus,source,sinkclassExampleStatus(status.StatusMonitor):source=source.HTTPStatusSource('Example Status','https://example.com/')sink=sink.StdOutStatusSink()You can now run it like this.$bin/upExampleStatus:UPMonitoring Multiple URL’sUp uses a “tinker-toy” pattern allowing you to combine sources to build whatever
kind of monitor you need. AStatusTreeSourcewill let you combine multiple
sources into one.fromupimportstatus,source,sinkclassExampleStatus(status.StatusMonitor):# You can also try a ThreadedTreeSource which runs the monitors# in parallel.source=source.StatusTreeSource('Example Status',[source.HTTPStatusSource('PROD','https://example.com/'),source.HTTPStatusSource('QA','https://qa.example.com/')])sink=sink.StdOutStatusSink()Up will query each of the sources and give you a simplified status.$bin/upExampleStatus:HALFUPFor more information use -v.$bin/up-vExampleStatus:HALFUP(50%)PROD:UPQA:DOWNChecking the status of GitHubUp comes with a source that reads from GitHub’s status API.fromupimportstatus,source,sinkclassExampleStatus(status.StatusMonitor):source=source.GitHubStatusSource('GitHub Status')sink=sink.StdOutStatusSink()$bin/up-vGitHubStatus:UPDevelopers Setup$virtualenv.-ppython3--no-site-packages$bin/pythonsetup.pydevelopChangelogNextNothing Yet.0.2.1 - Fix templates and static resources missing from egg0.2.0 - Detect ConnectionError and set status to DOWN; Expose Web Interface; Experimental SNMP monitoring (will most likely change)0.1.0 - Initial release