Saravanan666/pypi-org huggingface dataset:
Package: travel
TravelA software manager for easydevelopmentanddistributionofPython code.The main features that Travel adds to Python are:Support for large-scale,multi-package projects(with common packages)Reproducibility(clear, transparentdependency management)Robustdevelopment-lifecycle, from prototyping to distributionPossibility to have different scoped Virtual Environment (e.g. for development, for testing, for notebooks...) with additional requirementsTravel is inspired by whatMavenis for Java and usesPipandVirtual Environments.Why TravelPython is greatat many things, particularly forscripting. But it is powerful enough to createcomplex softwaretoo. Still, when doing so, it lacks some robustness and quickness.Instead:Travel lets youforget about repetitive setup of Python projects, with creation of Virtual Environments, issues with imports, PYTHONPATH, folder structures. It does all of this for you.Travel ensures that when you run a Python script, all itsrequirements are installed. Along with reproducibility, this makes room foreasy collaborationbetween developers.Also, while with standard tools it's hard to have multiple packages, one requiring another, with Travel this is a matter offew YAML files. You cansplit your projectin several packages instead of having tons of requirements, code replication and/or single package-monoliths.All in all, Travel lets you designproper structure and modularityfor your code. No worries about imports and low-level stuff.Example of Travel ProjectYou can find an example of Travel projecthere.InstallationWith Python >= 3.7 < 3.10, simply runpip install travelFrom now on, you can usetravelfrom command line.Create a new project or add a new BagTravel supports several packages ("Bags") in a single project, nested in other folders ("Bags containing Bags"). You can create a project usingTravel Plans.You can also create a new Bag after the first plan usingtravel add, to add a newTravel Plan.For a quick understanding, see below.Basic UsageTo see how to create your first Travel project, see the section above.Once you have defined your structure of Bags (submodules of your project), for instance like in theexampleor like thiscomplexproject/
    common/
        package/
        bag.yml
    microservices/
        first/
            package/
            bag.yml
        second/
            package/
            bag.yml
        bag.yml
    bag.ymlyou can runtravel setupin the main folder, where the firstbag.ymlfile is located.This will:Understand the dependenciesCreate the Virtual EnvironmentsInstall the requirementsInstall the packages themselves in development mode (so that you canimportthem in their Virtual Environments)You can also create a distribution package withtravel pack [commands], which is the equivalent ofpython setup.py [commands], for instance:travel pack sdistin the folder of the Bag you want to pack. This will create the distribution in the./build/package/distfolder.In any moment, you can runtravel cleanto destroy the Virtual Environments and other build objects.
Package: traveling-salesman
TRAVELING SALESMAN PROBLEMUsagefromTSM.TSMimportgreedy,smallest_increase,read_all,find_closest_pathnodes=read_all('resources/sehir_xy')smallest_book,distance_result=smallest_increase(nodes,start_index=45,end_index=51,plot=True,plot_annotate=True)greedy_book,distance_result=greedy(nodes,start_index=45,end_index=51,plot=False)find_closest_path(greedy_book,12,5,plot=True)# find_closest_path(smallest_book, 12, 5, plot=True, show_route=True, suptitle='Smallest Increase Algorithm Route')Smallest Increase Algorihmgreedy_book,distance_result=greedy(nodes,start_index=45,end_index=51,plot=False)ResultGreedy Algorihmgreedy_book,distance_result=greedy(nodes,45,51,plot=False)ResultFind Closest Pathgreedy_book,distance_result=greedy(nodes,start_index=45,end_index=51,plot=False)find_closest_path(greedy_book,12,5,plot=True)Result
Package: travel-map
旅行地图这是一个精确到城市旅行地图生成器。
本项目是基于开源项目pyechart，
生成的中国地图符合法律规范。安装pipinstalltravel-map使用用户需要将旅行信息输入到一个 CSV 文件里，例如城市,组
北京,旅行
上海,旅行
武汉,居住
香港,中转文件中城市的名称可以查阅文件。然后运行命令travel-map--title"我的旅行地图"--outputtravel_map.htmltravelled_cities.csv即可生成标题为我的旅行地图的精确到城市的旅行地图如下贡献如果你想提交你的代码，请先阅读CONTRIBUTING.md。许可证木兰宽松许可证，第2版 （Mulan Permissive Software License，Version 2）Copyright (c) 2019 Brooks YUANtravel-map is licensed under Mulan PSL v2.You can use this software according to the terms and conditions of the Mulan PSL v2.You may obtain a copy of Mulan PSL v2 at:http://license.coscl.org.cn/MulanPSL2THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.See the Mulan PSL v2 for more details.
Package: travelpayouts
TravelPayouts APIwrapper.InstallationThe recommended way to install is viapip$pipinstalltravelpayoutsUsagefromtravelpayoutsimportClientclient=Client('TOKEN','MARKER')client.whereami('123.456.789.123')# ipEntrypointsCommon:whereamicountriescitiesairportsairlinesairlines_alliancesplanesroutesV1:not implemented yet…V2:prices_latestmonth_matrixweek_matrixnearest_places_matrixFlights:searchsearch_results
Package: travelperk-http-python
travelperk-http-pythonAboutThis is an unofficial package for acessing theTravelPerk official Web APIfrom your Python language project. It is designed so you can easily query and retrieve all data hold on their platform and accessible through the API.InstallationThis package is hosted onPyPi, you can install it using any python package manager.$pipinstalltravelperk-http-pythonGetting startedBefore getting started retrieving querying information from the TravelPerk Web API you first need toget an API Key.Getting a TravelPerk instanceFor querying the data you need to get a TravelPerk instance, here are two ways to get a TravelPerk API instance depending on how you authenticate with their API.At TravelPerk there aretwo ways to authenticate, using an API Key or OAuth2.For API Key AuthenticationIf you have anAPI Keyfor authenticating you need to call the Service Provider'sbuildmethod passing your api key, and a boolean indicating if you will be using thesandbox environmentor not like this:fromtravelperk_http_python.builder.builderimportbuildis_sandbox=Falsetravelperk=build("YOUR_API_KEY",is_sandbox)For OAuth AuthenticationDue to time constrains the OAuth authentication flow is not fully implemented so is not supported yet, seethis GitHub issueRetrieving dataEverything is ready, you can start asking for the data.travelperk.expenses().invoices().all()For further information refer to the documentation linked in the next section.DocumentationThe full documentation can be foundin the wiki section of this github repository.
Also you can refer to theofficial TravelPerk Web API documentationLicenseMITContributingAny suggestion, bug reports, prs or any other kind enhacements are welcome. Justopen an issue first, for creating a PR remember this project has linting checkings and unit tests so any PR should comply with both before beign merged, this checks will be automatically applied when opening or modifying the PRs.Local developmentThis project comes with adocker-compose.ymlfile so if you use Docker and docker-compose you can develop without installing anything on your local environment. Just rundocker-compose up --buildfor the first time to setup the container and launch the tests. Pytest is configured as the entrypoint so just rundocker-compose upeverytime you want the tests to execute on the Dockerized Python development container.
Package: travelperk-python-api-types
travelperk-python-api-typesAboutPython types for the TravelPerk API entities.InstallationThis package is hosted onPyPi, you can install it using any python package manager.$pipinstalltravelperk-python-api-typesLicenseMITContributingAny suggestion, bug reports, prs or any other kind enhacements are welcome. Justopen an issue first, for creating a PR remember this project has linting checkings and unit tests so any PR should comply with both before beign merged, this checks will be automatically applied when opening or modifying the PRs.Local developmentThis project comes with adocker-compose.ymlfile so if you use Docker and docker-compose you can develop without installing anything on your local environment. Just rundocker-compose up --buildfor the first time to setup the container and launch the tests. Pytest is configured as the entrypoint so just rundocker-compose upeverytime you want the tests to execute on the Dockerized Python development container.
Package: travel-pricing-scraper
Travel Pricing ScraperIntroductionThe objective of this project is to demonstrate my skills in writing scalable, well-documented, and tested code. For this purpose, i've used Playwright as a web scraping tool to fetch airfare prices. While there are more specialized approaches to extract data of this kind, the main emphasis here is to showcase the ability to develop high-quality code using Playwright.In this project, Playwright is used to navigate through different airline websites, fill in search forms, click buttons, and extract price information. It is important to note that in a real production environment, specific solutions would need to be considered for scraping airfare data. However, this project serves as a basic example of my skills in developing scalable, well-documented, and tested code, using Playwright as a widely documented and tested web scraping tool.InstallationHow to installTo install the project, we recommend to usepipxto install the project in a virtual environment.pipxinstalltravel-pricing-scraperThis is the recommended way to install the project, but you can also install it usingpip:pipinstalltravel-pricing-scraperThen install playwright dependencies:playwrightinstallHow to useHow to use?You can use scraper via command line. For example:travelsOptionsOrigin airport code: CWB
Destination airport code: POA
Date in YYYY-MM-DD format (iso format): 2023-08-01OR with arguments:travels--originCWB--destinationPOA--date"2023-08-01"Returns:OrigemDestinoEmbarqueChegadaPreçoCompanhiaCWBPOA01/08/2023 às 06:0001/08/2023 às 07:15R$ 198,00GolCWBPOA01/08/2023 às 16:5501/08/2023 às 18:05R$ 198,00LATAMCWBPOA01/08/2023 às 09:5501/08/2023 às 11:10R$ 369,00AzulCWBPOA01/08/2023 às 09:5501/08/2023 às 11:10R$ 369,00AzulCWBPOA01/08/2023 às 09:5501/08/2023 às 11:10R$ 474,00AzulCWBPOA01/08/2023 às 09:5501/08/2023 às 11:10R$ 474,00AzulCWBPOA01/08/2023 às 11:1001/08/2023 às 15:25R$ 278,00GolCWBPOA01/08/2023 às 11:5001/08/2023 às 16:15R$ 278,00Gol
Package: traveltimemap
Travel-time Maps by Speed: Learning ProjectTake in data input (.csv), generate heatmaps based on speed condition with printed timestampsInstallationUse the package managerpipto install all requirementspipinstall-r/path/to/requirements.txtAs PackagepipinstalltraveltimemapAs Libraryimporttimestamp# returns heatmap with travel time statistics & directionmap_direction('path/to/data.csv')# returns heatmap with travel time statisticsget_timestamp('path/to/data.csv')# returns heatmapget_map('path/to/data.csv')# save to build directorymap=get_map('path/to/data.csv')save_map(map,name='map-name')Demo
Package: traVer
TraVersionTraVersion is similar way of maintaining semantic versioning in python, where the major points are introduced in this repository.Usage Example:Default versionfromtraVerimportVersionversion=Version()# Default version will be 1.0.0print(version)Output:>>1.0.0Assigning versionfromtraVerimportVersionversion=Version("2.3.4-beta.5")# You can specify major, minor, patch, preRelName, preReleaseprint(version.major)print(version.patch)Output:>>24Note:Anyone interested to contribute code or give some ideas to improve the versions to this repository are most welcome.Do you know?The word TraVersion is taken from Traverse which means  "to go or travel across or over"
Package: traversaal
TraversaalTraversaal is a Python package that provides a simple semantic search functionality for hotel data. It leverages large language models such as mpnet to encode hotel descriptions and reviews, allowing users to perform semantic search queries and retrieve relevant results based on the provided search query.FeaturesEfficient semantic search for hotel data based on descriptions and reviews.Utilizes state-of-the-art language models to encode and compare text embeddings.Returns relevant search results with corresponding scores for ranking.Supports GPU acceleration for faster encoding and search performance.Utilizes distributed computing to increase speed in embedding creationInstallationYou can install Traversaal using pip:pipinstalltraversaal

importpandasaspd
importtraversaalsearch=traversaal.SemanticSearch()df=pd.read_csv('hotels.csv')encoded_data=search.encode_data(df)query='great location and service'relevant_results=search.search(encoded_data,query)print("\nRelevant Results:")print(relevant_results.head())FormoredetailedusageexamplesandAPIdocumentation,pleaserefertotheGitHubrepository.

Contributing
ContributionstoTraversaalarewelcome!Ifyouencounteranyissues,havesuggestions,orwouldliketocontributeenhancementsornewfeatures,pleasefeelfreetosubmitapullrequestontheGitHubrepository.

License
TraversaalislicensedundertheMITLicense.SeetheLICENSEfileformoredetails.
Package: traversal
Matrix TraversalsFamous Matrix TraversalsInstall$ pip install traversalUsageimporttraversalmatrix=[[1,2,3],[4,5,6],[7,8,9]]traversal.zigzag(3,3,matrix)#=> [1, 2, 4, 7, 5, 3, 6, 8, 9]traversal.spiral(3,3,matrix)#=> [1, 2, 3, 6, 9, 8, 7, 4, 5]traversal.row(3,3,matrix)#=> [1, 2, 3, 4, 5, 6, 7, 8, 9]traversal.column(3,3,matrix)#=> [1, 4, 7, 2, 5, 8, 3, 6, 9]Get HelpThere are few ways to get help:Pleasepost questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.For bug reports and feature requests, open issues.For direct and quick help, you canemail me.How to contributeHave an idea? Found a bug? Seehow to contribute.Thanks!LicenseMIT
Package: traverse-invoke
Traverse invokeA nested method [computation model] for nested dataThis shit is a blessing. I don’t know anything like this except maybe lambda.
I’ll think about Turing-completeness and meta complexity of this.Please do yourself a favor and read the source.Docs not yet available, since the whole computation model needs to be formed,
which requires some experience of using current version.Documentation:https://traverse-invoke.readthedocs.io(uder development. maybe).FeaturesInvoke methods by their path in module tree.Pass arguments as nested closures for methods.Modify invocation path in runtime (the most exiting thing).Basic UsageInvoke methodimportsys,traverse_invokemethod='sys.version'names={'sys':{'version':sys.version}}}args={'version':'foobar'}traverse_invoke.entry_traverse(args,method,names)This will invokesys.version(**{version:foobar})Traversesee testHistory0.1.0 (2020-01-14)First release on PyPI.
Package: traversy
traversyFast data traversal & manipulation tools for Python. Check out thedocumentation.Quick-Startfromtraversyimporttraverseimportjsonjo=json.loads("""{"2019": {"uat": {"pkey": true,"user": "testval","testkey": true,"mylist": [{"foo": "bar","foo2": "bar2"},{"baz": "milk","bar": "foo"}]},"dev": {"pkey": true,"testval": "testval","testval2": true},"test1": [1, 2, "testval"],"test2": [{"one": "foo", "two": "bar", "three": "testval"}]}}""")defis_eq(key,val,opath,query):# Use of a filter func is optional.returnval==queryfornodeintraverse(jo,is_eq,query="milk"):print("Found",node.key,':',node.value)# baz : milkprint("Full path access:",jo[node.path_str])# "2019.uat.mylist.1.baz"For each iteration, traverse() returns a dict or data object of...{'key', 'value', 'node_path', 'path_str', 'filter_func',
'filter_args': (data, kwargs), 'parent_node', 'output_formatter'}For more information on these non-built-in data structure (Which are optional
to use), check outmo-dotsanddotty_dict.Changelog11/15/2020 - 0.1.32: Fix for pypi.11/15/2020 - 0.1.3: Refactored & added more utility methods. Added docs.11/13/2020 - 0.1.2: Doc correction.11/13/2020 - 0.1.1: Deprecatedset_output_format()and made package compatible with both Python 2 and Python 3.
Package: travertino
TravertinoTravertino is a set of constants and utilities for describing user
interfaces, including:colorsdirectionstext alignmentsizesUsageInstall Travertino:$ pip install travertinoThen in your python code, import and use it:>>> from travertino.colors import color, rgb,

# Define a new color as an RGB triple
>>> red = rgb(0xff, 0x00, 0x00)

# Parse a color from a string
>>> color('#dead00')
rgb(0xde, 0xad, 0x00)

# Reference a pre-defined color
>>> color('RebeccaPurple')
rgb(102, 51, 153)CommunityTravertino is part of theBeeWare suite. You can talk to the community through:@beeware@fosstodon.org on MastodonDiscordWe foster a welcoming and respectful community as described in ourBeeWare Community Code of Conduct.ContributingIf you experience problems with Travertino,log them on GitHub. If you
want to contribute code, pleasefork the codeandsubmit a pull request.Travertino usesPre-commitandTownCrierto help maintain code quality. For
details on how to use these tools as part of your development environment, see
theBriefcase code contribution guide.
Although that document is for a different project, the details about setting up
your development environment are the same.
Package: travibot
Simple travian bot to automatically grade mani villages.Install:pip install travibotUsage:Choose server you want to playCreate as many account as you want. To get new mail user external services likehttps://temp-mail.org/en/and etcCreate list of your accounts - login + password (or save in file)Install travibot via pipWrite simple script:from src.travibot_Vasily566.main import run_travian

creds = [
    ("acc1_mail1@mail.mail", "password"),
    ("acc2_mail1@mail.mail", "password"),
]
run_travian(creds=creds)Note!
In account settings you should:Choose Russian languageDisable hints (first settings point)
Package: travis
This package is to investigate a possible security issue with pip changing
the –user syntax for Travis projects.https://pip.pypa.io/en/stable/user_guide/#user-installspip install –user $USER git+https://github.com/google/closure-linter.gitresults in` Could not find any downloads that satisfy the requirement travis `See e.g.https://github.com/travis-ci/travis-ci/issues/6905
Package: travis2docker
Script to generate Dockerfile from .travis.yml fileFree software: BSD licenseInstallationpip install travis2dockerUsagetravisfile2dockerfile REPO_URL BRANCHOr with pull requesttravisfile2dockerfile REPO_URL pull/##In REPO_URL use the ssh url of github.For more information execute:travisfile2dockerfile –helpExample:travisfile2dockerfile –root-path=$HOME/t2d git@github.com:Vauxoo/forecast.git 8.0The output is:${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/2The first one is the build for envTESTS=1, the second one is for env withLINT_CHECK=1To build image:${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1/10-build.shTo create container:${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1/20-run.sh –entrypoint=bashTo run the test (into of container):/entrypoint.shDependsSSH key without passwordDockerfile doesn’t support a prompt to enter your password, so you need to remove it from your ssh keys.export fname=~/.ssh/id_rsa
cp ${fname} ${fname}_with_pwd
openssl rsa -in ${fname} -out ${fname}_without_pwd
cp ${fname}_without_pwd ${fname}Download the big imageTravis2docker uses a default image with many packages pre-installed.docker pull vauxoo/odoo-80-image-shippable-autoNote: You can define a custom image to use with–docker-imageparameter.For example if you want use the original image of travis you can add the following parameters:–docker-image=quay.io/travisci/travis-python –docker-user=travisInstall dockerhttps://docs.docker.com/engine/installation/Documentationhttps://travis2docker.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog3.0.0 (2016-07-26)First release on PyPI.
Package: travis-bump-version
# Travis Bump VersionAutomatically bump version when merging to master.## Status| Travis CI (Ubuntu) | Coverage | PyPI | Licence ||--------------------|----------|------|---------||[![Travis](https://img.shields.io/travis/polysquare/travis-bump-version.svg)](http://travis-ci.org/polysquare/travis-bump-version)|[![Coveralls](https://img.shields.io/coveralls/polysquare/travis-bump-version.svg)](http://coveralls.io/polysquare/travis-bump-version)|[![PyPIVersion](https://img.shields.io/pypi/v/travis-bump-version.svg)](https://pypi.python.org/pypi/travis-bump-version)[![PyPIPythons](https://img.shields.io/pypi/pyversions/travis-bump-version.svg)](https://pypi.python.org/pypi/travis-bump-version)|[![License](https://img.shields.io/github/license/polysquare/travis-bump-version.svg)](http://github.com/polysquare/travis-bump-version)|## Usageusage: travis-bump-version [-h] --api-token API_TOKEN --repo REPO[FILE [FILE ...]]Automatically bump version on successful Travis-CI builds.positional arguments:FILE                  bump version on FILEoptional arguments:-h, --help            show this help message and exit--api-token API_TOKENGitHub API token. Always make sure this variable isencrypted first.--repo REPO           Name of repo on GitHub, eg user/repo.On Travis-CI you can use the `TRAVIS_REPO_SLUG` variable to determinethe current repository. See [this guide](https://github.com/blog/1509-personal-api-tokens)on how to generate an API token. Remember to encrypt it first using`travis encrypt --add env.global` first!
Package: travis-ci-cd
Sample Flask app for Getting Started with Travis CI Course at PluralsightThis app is a simple nlp-based question-answering with web interface, based onhttps://sweetcode.io/flask-app-github-travis-heroku/, and extended on the travis side to test in parallel multiple OS, multiple versions and have multiple types of deployment.For each module in the course just rungit checkout MODULE{MODULE_NUMBER}-DEMO{DEMO_NUMBER}, for example,git checkout module4-demo1, and you will be at the point of the recording.For any question, don't hesitate to leave an issue here, send me an email (axel.sirota@gmail.com) or tweet me (@AxelSirota)!
Package: traviscli
IntroductionThis is a simple CLI that allows you to update a version.txt file with a build number.Install traviscli in your virtual environmentThis utility is distributed viapypipackages.Install like this:pip3 install traviscliHow to usetraviscli --help
Usage: traviscli [OPTIONS]

  Use this command to get the Travis CI build number of your project.  Assumes
  you are using Semantic Versioning

Options:
  -b, --build-count INTEGER  Number builds to check.
  -r, --repo-slug TEXT       something thing like hasii2011/PyUt.  [required]
  -f, --file PATH            Relative location of version text file
  --major-version INTEGER    Change the major number to the specified one
  --minor-version INTEGER    Change the minor number to the specified one
  --patch-version INTEGER    Change the patch number to the specified one
  --version                  Show the version and exit.
  --help                     Show this message and exit.How to get your TravisCI Application TokenGo to yourTravisCI Profile-->Settings-->SettingsTabFor example:Where to put configuration tokenCreate a file named.travis-cli.iniin your home directory (or where$HOMEpoints to)Configuration file format[TRAVISCI]travisci_api_token=Your Token goes hereVersion file formatThe version string in your version file should follow the rules forsemantic versioningFor example, here is a correctly formatted version string6.2.1+.500