Saravanan666/pypi-org huggingface dataset:
Package: upland-api
Upland API Wrapperupland-apiis a Python wrapper for the Upland.me API endpoints.upland-apido currently only support the Developers API.upland-apiworks with Python >= 3.6Installation$pipinstallupland-apiUsage>>>fromupland_apiimportUplandDevelopersAPI>>>fromupland_apiimportUplandPublicAPI>>>>>>UplandDevAPI=UplandDevelopersAPI(api_key="XXXX",logging=True)>>>UplandPubAPI=UplandPublicAPI(api_key="XXXX",logging=True)Available Resources>>UplandDevAPI.auth>>UplandDevAPI.buildings>>UplandDevAPI.cities>>UplandDevAPI.collections>>UplandDevAPI.containers>>UplandDevAPI.neighborhoods>>UplandDevAPI.properties>>UplandDevAPI.tracks>>UplandDevAPI.treasures_history>>UplandDevAPI.user>>UplandPubAPI.feature>>UplandPubAPI.settingsExamplesGet propertiesGet properties in San Francisco (City ID: 1)>>>r=UplandDevAPI.properties.get_properties(cityId=1)>>>rGet NeighborhoodsGet neighborhoods in San Francisco (City ID: 1)>>>r=UplandDevAPI.neighborhoods.get_neighborhoods(cityId=1)>>>rGet all neighborhoods>>>r=UplandDevAPI.neighborhoods.get_neighborhoods()>>>rGet neighborhoods by name>>>r=UplandDevAPI.neighborhoods.get_neighborhoods(textSearch="Financial")>>>rGet neighborhoods by city and name>>>r=UplandDevAPI.neighborhoods.get_neighborhoods(cityId=1,textSearch="Financial")>>>r
Package: uplc
Untyped Plutus Language CoreThis is a basic library to support creating and manipulating programs written inUPLC.InstallationInstall anything between python 3.8 and 3.10.
Then runpipinstalluplcSecp256k1If you want to use the builtin functions for verification of ECDSA and Schnorr signatures,
follow the instructions to installlibsecp256k1with schnorr support enabled:https://github.com/input-output-hk/cardano-node-wiki/blob/main/docs/getting-started/install.md#installing-secp256k1This makes sure that the exact same version is used that is used in thecardano-node.UsageThis tool may be used to parse, reformat (/dump), evaluate or build contract artifacts from UPLC code.# Check validity of a source fileuplcparseexamples/fibonacci.uplc# Dump a source file in either the official plutus or legacy aiken dialectuplcdumpexamples/fibonacci.uplc--dialectplutus--unique-varnames
uplcdumpexamples/fibonacci.uplc--dialectlegacy-aiken# Evaluate a UPLC program on UPLC inputuplcevalexamples/fibonacci.uplc"(con integer 5)"# Build smart contract artifacts from the UPLC programuplcbuildexamples/fibonacci.uplc# This package can also be used to analyze built contracts (output from any Smart Contract Language)uplcdumpbuild/fibonacci/script.cbor--from-cbor# Show all optionsuplc--helpScope and ContributionsThis is a side product of the development of a pythonic smart contract language for the Cardano blockchain
and hence much tailored to the needs of that development.Most likely itcando what you would like to do but its not properly documented. Please do reach out via Discord or GitHub issue if you think this tool could be of use to you.Contributions are very welcome.
Package: uplid
UPLID - Universal Prefixed Literal Unique IdA pydantic compatible, human friendly prefixed id.Uses literal string types to enforce typing at both runtime (via pydantic) and during static analysis.UIDs underneath are KSUIDs allowing them to be sorted by time of creation while still being collision resistant.String representations are encoded with base62 keeping them url safe and human friendly.Python 3.9 or higher and at least pydantic 2.6 are required.UsageWith PydanticfromuplidimportUPLID,factoryfrompydanticimportBaseModel,FieldUserId=UPLID[Literal["usr]]WorkspaceId=UPLID[Literal["wrkspace"]]classUser(BaseModel):id:UserId=Field(default_factory=factory(UserId))workspace_id:WorkspaceIduser=User(workspace_id=UPLID.generate("wrkspace))user_json=user.model_dump_json()restored_user=User.validate_json(user_json)StandalonefromlpidimportLPIDUserId=UPLID[Literal["usr]]user_id=UPLID.generate("usr")workspace_id=UPLID.generate("wrkspace")deffoo(bar:UserId)->None:passfoo(bar=user_id)# goodfoo(bar=workspace_id)# fails static checkInspirationshttps://dev.to/stripe/designing-apis-for-humans-object-ids-3o5ahttps://pypi.org/project/django-charid-field/https://pypi.org/project/django-prefix-id/https://sudhir.io/uuids-ulids
Package: uplift-analysis
uplift-analysisuplift-analysisis aPythonlibrary that contains implementations of methods and utilities, which can serve use
cases requiring the analysis of uplift modeling techniques.The implemented modules include scoring utilities, analysis strategy, and relevant visualization methods.This library works for Python 3.7 and higher.InstallationThis library is distributed onPyPiand can be installed usingpip.$ pip install uplift-analysisThe command above will automatically install all the required dependencies. Please visit theinstallationpage for more details.Getting startedCheck out the comprehensivetutorialfor
a complete walk-through of the library.importpandasaspdfromuplift_analysisimportdata,evaluationeval_set=data.EvalSet(df=pd.DataFrame({'observed_action':treatments,'responses':responses,'score':scores,'proposed_action':recommended_treatments}))evaluator=evaluation.Evaluator()eval_res,summary=evaluator.eval_and_show(eval_set,specify=['uplift'],show_random=True,num_random_rep=4)DocumentationFor more information, refer to the accompanying blogpost"Analyzing Uplift Models", the package'scomplete documentation,
and the walkthroughtutorials.Info for developersThe source code of the project is available onGitHub.$ git clone https://github.com/PlaytikaOSS/uplift-analysis.gitYou can install the library and the dependencies with one of the following commands:$ pip install .                        # install library + dependencies
$ pip install ".[develop]"             # install library + dependencies + developer-dependencies
$ pip install -r requirements.txt      # install dependencies
$ pip install -r requirements-dev.txt  # install developer-dependenciesFor creating the "pip-installable"*.whlfile, run the following command (at the root of the repository):$ python -m buildFor creating the HTML documentation of the project, run the following commands:$ cd docs
$ make clean
$ make htmlRun testsTests can be executed withpytestrunning the following commands:$ cd tests
$ pytest                                      # run all tests
$ pytest test_testmodule.py                   # run all tests within a module
$ pytest test_testmodule.py -k test_testname  # run only 1 testLicenseMIT License
Package: uplink-httpx
uplink-httpxUplink-Httpx is an asynchronous HTTP client based onHTTPXfor the awesomeUplinkREST library.Use it like any other HTTP client for uplink.importasyncioimportuplinkfromuplink_httpximportHttpxClient@uplink.headers({"Accept":"application/json"})@uplink.returns.json()classHttpBin(uplink.Consumer):@uplink.get("get")defget(self):passasyncdefdemo():httpbin=HttpBin(base_url="https://httpbin.org",client=HttpxClient())resp=awaithttpbin.get()print(resp)# {'args': {}, 'headers': {'Accept': 'application/json', 'Accept-Encoding': 'gzip, deflate', 'Host': 'httpbin.org', 'User-Agent': 'python-httpx/0.9.5'}, ... 'url': 'https://httpbin.org/get'}loop=asyncio.get_event_loop()loop.run_until_complete(demo())FeaturesHTTPXbuilds on the well-established usability ofrequests, and gives you:A requests-compatible API wherever possible. Noissuesbetween async and sync clients anymore.HTTP/2 and HTTP/1.1 support.Strict timeouts everywhere.
Package: upload-chain-eth
Copyright (c) 2019 yuyongpengPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Description: UNKNOWN
Keywords: solidity web3 constract sdk
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.6
Package: uploader-client
Клиент для взаимодействия с РВД посредством АдаптераПодключениеsettings:INSTALLED_APPS = [
    'uploader_client',
]apps:from django.apps import AppConfig as AppConfigBase

class AppConfig(AppConfigBase):

    name = __package__

    def __setup_uploader_client(self):
        import uploader_client

        uploader_client.set_config(
            uploader_client.configuration.Config(
                agent_url='http://localhost:8090',
                system_mnemonics='MNSV03',
                timeout=1,
                request_retries=1,
            )
        )

    def ready(self):
        super().ready()
        self.__setup_uploader_client()Использование Proxy API для отправки запросов в РВДЗаменить используемый интерфейс на ProxyAPIInterface и добавить необходимые параметры в конфигурации:uploader_client.set_config(
    ...,
    RegionalDataMartUploaderConfig(
        interface='uploader_client.contrib.rdm.interfaces.rest.ProxyAPIInterface',
        cache=<cache>,
        url=<url>,
        datamart_name=<datamart_name>,
        organization_ogrn=<organization_ogrn>,
        installation_name=<installation_name>,
        installation_id=<installation_id>,
        username=<username>,
        password=<username>,
    )
)гдеcache - кеш django для хранения токена доступа (например,caches[DEFAULT_CACHE_ALIAS]);url - URL до хоста Datamart Studio;datamart_name - мнемоника Витрины;organization_ogrn - ОГРН организации, в рамках которой развёрнута Витрина;installation_name - имя инсталляции в целевой Витрине;installation_id - идентификатор инсталляции;username - имя пользователя IAM;password - пароль пользователя IAM.ЭмуляцияЗаменить используемый интерфейс на эмулирующий запросы:uploader_client.set_config(
    ...,
    uploader_client.configuration.Config(
        interface=(
            'uploader_client.contrib.rdm.interfaces.rest'
            '.OpenAPIInterfaceEmulation'
        )
    )
)Запуск тестов$ toxAPIПередача сообщенияfrom uploader_client.adapters import adapter
from uploader_client.interfaces import OpenAPIRequest

class Request(OpenAPIRequest):

    def get_url(self):
        return 'http://localhost:8090/MNSV03/myedu/api/edu-upload/v1/multipart/csv'

    def get_method(self):
        return 'post'

    def get_files(self) -> List[str]:
        return [
            Path('files/myedu_schools.csv').as_posix()
        ]

result = adapter.send(Request())
Package: upload-files-to-github
Upload Files to GitHubThis package provides a simple way to upload multiple files or directories to a GitHub repository using a command-line interface.InstallationYou can install this package using pip:pipinstallupload-files-to-githubUsage - CLITo upload files using the CLI, run theupload_files_to_github.pyscript with the following arguments:pythonupload_files_to_github.py--files<file_or_directory_paths>--repo<user/repo>--token<github_token><file_or_directory_paths>: a list of file or directory paths to upload, separated by spaces.<user/repo>: the GitHub repository where you want to upload the files.<github_token>: your GitHub personal access token.For example, to upload all the files in the current directory to a repositorymyuser/myrepo, you can run:pythonupload_files_to_github.py--files.--repomyuser/myrepo--token<github_token>Usage - ModuleYou can also use this package as a module in your Python code. After installing the package, you can import theupload_files_to_githubfunction and use it as follows:fromupload_files_to_githubimportupload_files_to_githubfiles=['path/to/file1','path/to/file2']repo='myuser/myrepo'token='mygithubtoken'upload_files_to_github(files,repo,token)Theupload_files_to_githubfunction takes the same arguments as the CLI script, butfilesshould be a list of file paths instead of a space-separated string.Alternatively, you can also use the package as a module from the command line:python-mupload_files_to_github--files<file_or_directory_paths>--repo<user/repo>--token<github_token>This will run theupload_files_to_githubfunction with the same arguments as the CLI script.
Package: upload-manager
bbuploadmanagerbbuploadmanageris an easy python library which manages all uploading, downloading, state management functionality and multiple scenarios of our Uploads & Processing of you project.FeaturesUploading file to AWS S3Reading uploaded file content from AWS S3Upload Processing state managementUpload Manager DashboardUpload trackingInstallationpip install https://github.com/Bigbasket/bbuploadmanagerORpip install upload-managerPrerequisitePython 3 and aboveDjango 2.1 and aboveEnvironmentAWS_STORAGE_BUCKET_NAMEvariable need to be set in environment to specify aws bucket.AWS_ACCESS_KEY_ID &
AWS_SECRET_ACCESS_KEYvariable need to be set in environment, Only if I Am Role is not enabled on the machine.Sample Code# Library Plugin code to be added in settings.py
INSTALLED_APPS = ["upload_manager.apps.UploadManagerConfig"]

# Below code to be implementation in your application.py\
# imports
from upload_manager.service import UploadManagerService

# file upload example
upload_service = UploadManagerService(<upload_name>, <username>, <S3_bucket_path>, files=[<file_obj>,])
upload_obj = upload_service.start_upload()

# reading uploaded file data in async thread
file_data = UploadManagerService.get_upload_content_for_id(upload_obj.id)

# writing response file example
upload_service.file_content = [("OrderId", "Status", "Message"),(11020304, "Success", "")]
upload_service.update_response_for_upload(upload_obj_id)

# updating upload status example
UploadManagerService.change_upload_status_to_inprocess(upload_obj.id)
UploadManagerService.change_upload_status_to_complete(upload_obj.id)
UploadManagerService.change_upload_status_to_failed(upload_obj.id)`Dashboard ViewAbove image shows dashboard view, how the uploads can be viewed and tracked in django Admin.Request File - Column contains a hyperlink to the uploaded file which was uploaded as part of start uploadResponse File - Column contains a hyperlink to the uploaded response file was uploaded after the processing.
Package: uploadoss
UploadossUploadoss is the general module of uploading database data and local files to the Alibaba Cloud OSSInstallationdownload uploadoss-0.1.tar.gzhttps://pypi.org/project/uploadoss/#filespip install uploadoss-0.1.tar.gzUsageSome simple things you can do with uploadoss#upload local file(Logs, CSV, and their gzip compression) to Alibaba Cloud OSS 



from uploadoss import uploadoss

conf_path = 'C:\demo\oss\conf.ini'

bucket = uploadoss.getossbucket(conf_path)

# Directory of local files

local_path = r'C:\\demo\\data\\file\\'

# The file name in the local directory, also used as the file name on the OSS side

file_name = 'test1.log.gz'

# OSS Directory

oss_path = 'xxx/testlocalfile/'

result = uploadoss.file_to_oss(bucket,local_path = local_path,file_name = file_name,oss_path = oss_path)

print('http status: {0}'.format(result.status))



# Through a single SQL statement



conn = uploadoss.getmysqlconn(conf_path=conf_path)

# 

sql_text = 'select * from bigdata_demo.event_info limit 1' 

# The file where the SQL query results are stored, also serving as the file name on the OSS side

file_name = 'sql_text.csv.gz'

# OSS Directory

oss_path = 'xxx/testsqltext/dt=20230926/'

result = uploadoss.mysql_to_oss_table(conn=conn,bucket=bucket,local_path=local_path,file_name=file_name,sql_text=sql_text,oss_path = oss_path)

print('http status: {0}'.format(result.status))





# Through a multiple SQL statements,The separator is \001 ,e.g. event_info\001SQL_TEXT

table_conf_list=r'C:\\demo\\oss\\table_config.txt'

result = uploadoss.mysql_to_oss_list(conf_path = conf_path,local_path = local_path,oss_dire_path = oss_dire_path,table_list_conf = table_conf_list )
Package: upload.py
upload.pyupload files tohttps://starfiles.co,https://anonfiles.com,https://filepipe.ioandhttps://file.iowith easeVersion 0.24Created byCrafterPikaandDwifteJBRequirementsPython 3.8=> (only tested it there)Tested SystemsDebian based system (Ubuntu, Debian, Linux Mint, PopOS)Windows 10https://ish.appEven jailbroken iOS Devices (Installation Guide)Installation (Over PIP)Install python via your package manager or atPythonpip install upload.pyInstallation (Over Git and PIP)Install python via your package manager or atPythonInstallgitInstall wheel (pip install wheel)pip install git+https://github.com/CrafterPika/upload.py.gitIf pip doesn't work/shows up as invalid try this:python3 -m ensurepipand pip3/pip should work.ChangelogChange log is aviable athereExampleShort Example:>>>fromupload_pyimport*>>>importos>>>file=starfiles()>>>file.upload(f"{os.getcwd()}/file.txt")>>>file.url_file()'https://starfiles.co/file/288e60'(You also can viewexample.pyfor all services example's)
Package: upload-tm-records
trackmania-records - UploaderThis is the uploader for trackmania-records, a Trackmania 2020 records sharing/comparison tool.The uploader extracts your records for the training maps of the latest Trackmania version (from 2020)
and uploads them to the web application server so you can easily share your records with friends.Install (requires Python 3 on your system):pip3 install upload-tm-recordsUpdate:pip3 install --upgrade upload-tm-recordsUsage:upload-tm-records http://example.com/upload.php
Package: uploadwithus
Uploadwithus is a command line tool to facilitate keeping sendwithus templates
and snippets code up to date with an emails repository.  The tool allows you to
maintain your email templates and snippets under a version control system, and
also allows separation of testing and production emails.  For more in depth
information on its usage and features, check out the README.Copyright (c) 2017, Nick Balboni.
License: MIT (see LICENSE for details)
Package: uplogic
# uplogic
A logic extention module for [UPBGE](https://github.com/UPBGE/upbge) containing utility functions, wrappers and the code to run logic nodes.## license
This project is provided under the terms of _[GNU General Public License v2 (GPLv2)](LICENSE)_.# Licenseuplogic uses the GNU General Public License v2, which describes the rights
to distribute or change the code.Please read this file for the full license.
GPL-license.txt
Package: upme
Detects outdated packages and updates them inside python scriptsDocumentationThe full documentation is athttp://upme.rtfd.org.FeaturesCheck if package or dependencies are outdated and update them. No commandline, plain python. Easy to integrate in scripts.History0.1.0 (2014-08-25)First release on PyPI.0.2.0 (2014-08-26)Core functionality
Package: upmost-beta
PythonHackathonPython Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://PythonHackathon.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-06-27)First release on PyPI.
Package: upnp-port-forward
UPnP Port ForwardUPnP port forwarding for humansRead more in thedocumentation on ReadTheDocs.View the change log.Quickstartpipinstallupnp-port-forwardDeveloper SetupIf you would like to hack on upnp-port-forward, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonegit@github.com:ethereum/upnp-port-forward.gitcdupnp-port-forward
virtualenv-ppython3venv
.venv/bin/activate
pipinstall-e.[dev]Testing SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1upnp_port_forward/tests/-c"clear; flake8 upnp_port_forward tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenv
ptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on upnp-port-forward failed'"../tests../upnp_port_forwardRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable (stagecan be alpha or beta).To issue the next version in line, specify which part to bump,
likemake release bump=minorormake release bump=devnum. This is typically done from the
master branch, except when releasing a beta (in which case the beta is released from master,
and the previous stable branch is released from said branch).If you are in a beta version,make release bump=stagewill switch to a stable.To issue an unstable version when the current version is stable, specify the
new version explicitly, likemake release bump="--new-version 4.0.0-alpha.1 devnum"
Package: upodder
(Idea and first version from Stan Vitkovsky. Forked fromhttps://code.google.com/p/upodder/)Simple podcast downloaderA simple command-line podcast downloader. Can be run from cron. Simply
add your RSS feeds in~/.upodder/subscriptionsand watch your latest
podcasts come in. Destination dir, filename, folder structures, etc can
all be customized.Please report any bugs onGithub. I will promptly fix
them.Installationpip install upodderUsageAfter installation, runupodder. It will initialize~/.upodder/to keep your subscriptions and a small DB of seen files. After that
simply enter you feeds in~/.upodder/subscriptions.The next time you runupodder, it will go over each feed and
download new entries to~/Downloads/podcasts.To view available options, runupodder--helpHistory and motivationI’ve been using this script for several years and the project seems
abandoned on Google Code. To keep it from disappearing, after Google
Code is shut down, I’ve forked it here and refactored most parts. To
quote the original author, Stan Vitkovsky and his motivation:“I needed a simple console podcast downloader.I did not find any one suitable for my needs (podracer lacked ATOM
support, hpodder segfaulted from time to time and didn’t understand ATOM
as well. Both of then were unaware for entries IDs, only for mp3 file
names, which are subjects to be changed, as on rpod.ru).My usage scenario is to download unseen enclosures, place them in the
folder with a name ~/podcasts/%d-%m-%Y/{somename}.mp3 (like podracer
does) and then rsync them to my MP3 player.Also, I wrote a bash script, which mounts my player with pmount-hal,
calls podracer, rsyncs my player and unmounts it safely.”Further Contributorsakira (gaspar0069): Add support for multiple file extensions and
fix file move bug.