Saravanan666/pypi-org huggingface dataset:
Package: python-flexpolyline-pbapi
This project is deprecated. Please checkhere-polyline-converterFlexPolyline and HERE PolylineThis is Python extension of theFlexible Polylinecodec library to support the HERE polyline format used byHERE Places (Search) APIfor thecompressedRouterequests parameter.Note that the HERE Places (Search) API is in maintenance. This Python package can be used to test applications being migrated to
the newerHERE Geocoding & Search API.Install$pipinstallpython-flexpolyline-pbapiUsage>>> reencode_pbapi_to_flex(here_polyline_string)Transforms a HERE polyline string into a flexible polyline string.
The HERE Polyline segments width changes are ignored: The resulting corridor will be of constant width, expressed
in HERE geocoding & Search API as a specific request
parameterwidth.>>> encode_pbapi(iterable)Encodes a list (or iterator) of coordinates to the corresponding HERE polyline string representation.
Coordinate order is(lat, lng[, width]).>>> decode_pbapi(here_polyline_string)Decodes a HERE polyline string into an array of coordinates(lat, lng[, width]).>>> encode_pbapi(iterable)Note thatwidthis expected to be one ofDW,HW,CW.Examples>>>importflexpolyline_pbapiasfp>>>here_polyline="oz5xJ67i1B1B7PzIhaxL7Y">>>flexible_polyline=fp.reencode_pbapi_to_flex(here_polyline)>>>flexible_polyline'BFoz5xJ67i1B1B7PzIhaxL7Y'>>>points=[(50.1022829,8.6982122),(50.1020076,8.6956695),(50.1006313,8.6914960),(50.0987800,8.6875156)]>>>fp.encode_pbapi(points)'oz5xJ67i1B1B7PzIhaxL7Y'>>>here_polyline="oz5xJ67i1B.C1B7PzIha.DxL7Y">>>fp.decode_pbapi(here_polyline)[(50.10228,8.69821,'CW'),(50.10201,8.69567),(50.10063,8.6915,'DW'),(50.09878,8.68752)]LicenseCopyright (C) 2019 HERE Europe B.V.See theLICENSEfile in the root of this project for license details.
Package: python-flickr-mirroring
Flickr MirroringDescriptionThe project provide a Command-Line Interface for mirroring Flickr Photos of a Flickr userHow to useEnd-users should be able to install it usingpipenvand run tool with the Bash commandmirror_flickrPrequisitepython>=3.6InstallationSetup a binary directory to install our Flickr mirroring utility$mkdir-p~/.local/bin/flickr_mirroring
$cd~/.local/bin/flickr_mirroringSetup a Python virtual environment$pipenvshell--threeInstall our Flickr mirroring utility(flickr_mirroring)$pipenvinstallpython-flickr-mirroringUsageFor example:(flickr_mirroring)$mirror_flickr--usernamemanhhai--save-api-keys
EnteryourFlickrAPIkey:<--YourFlickrAPIkey-->
EnteryourFlickrAPIsecret:<--YourFlickrAPIsecret-->You should read the docs for more information(flickr_mirroring) $ mirror_flickr --help
usage: mirror_flickr [-h] --username USERNAME [--cache-path CACHE_PATH]
                    [--cache-directory-depth CACHE_DIRECTORY_DEPTH]
                    [--save-api-keys] [--image-only | --info-only]
                    [--info-level LEVEL] [--debug LEVEL] [--fifo | --lifo]

Flickr Mirroring.

optional arguments:
  -h, --help            show this help message and exit

  --username USERNAME   username of the account of a user on Flickr to mirror
                        their photostream

  --cache-path CACHE_PATH
                        The absolute path where the script saves photos
                        downloaded from Flickr.

  --cache-directory-depth CACHE_DIRECTORY_DEPTH
                        The depth of the directory structure

  --save-api-keys       Specify whether to save the Flickr API keys for
                        further usage

  --image-only          Specify whether the script must only download photo's
                        images

  --info-only           Specify whether the script must only download photo's
                        information

  --info-level LEVEL    specify the level of information of a photo to fetch
                        (value between 0 and 2)

  --debug LEVEL         specify the logging level (value between 0 and 4, from
                        critical to debug)

  --fifo                specify the First-In First-Out method to mirror the
                        user's photostream, from the oldest uploaded photo to
                        the earliest

  --lifo                specify the Last-In First-Out method to mirror the
                        user's photostream, from the earliest uploaded photoContactEmail:long.nguyen@f4.intek.edu.vnLicenseThis project is licensed under the MIT License - see the LICENSE file for details
Package: python-flipkart-scraper
Scrap Data from FlipkartExtract Product information from Flipkart.GitHub Repo:https://github.com/sannjayy/python_flipkart_scraperInstallaionDo the following in your virtualenv:pip install python_flipkart_scraperImport:from python_flipkart_scraper import ExtractFlipkartMinimal Code Example:from python_flipkart_scraper import ExtractFlipkart
url = 'FLIPKART PRODUCT URL'
product = ExtractFlipkart(url)

print("Product Title = ", product.get_title())
print("Product Price = ", product.get_price())
print("Availability = ", product.is_available())

print("Product Images = ", product.get_images())DEMO OUTPUT:Product Title = APPLE iPhone 7 (Rose Gold, 128 GB)
Product Price = 34900
Availability = False

Product Images = ['https://rukminim2.flixcart.com/image/500/500/k12go7k0/mobile/e/y/z/apple-iphone-7-mn952hn-a-original-imafkqe8ptsnpd6m.jpeg?q=100', 'https://rukminim2.flixcart.com/image/500/500/k12go7k0/mobile/e/y/z/apple-iphone-7-mn952hn-a-original-imafkqe8f9ghcfsh.jpeg?q=100', 'https://rukminim2.flixcart.com/image/500/500/k12go7k0/mobile/e/y/z/apple-iphone-7-mn952hn-a-original-imafkqe8ywuhzqyc.jpeg?q=100', 'https://rukminim2.flixcart.com/image/500/500/k12go7k0/mobile/e/y/z/apple-iphone-7-mn952hn-a-original-imafkqe8ujhbszhf.jpeg?q=100']Developed bySanjay Sikdar.📫me@sanjaysikdar.dev
Package: python-flot-utils
PyFlot makes it easy to generateflotgraphs. Its primary goal is to
allow one to specify data inputs and options in a Python application
and generate the appropriate JSON. Common uses of this will be rendering
into a template as flot() arguments or as the payload of an XHR response.
PyFlot takes care of all the annoying details of converting types to match
up with howflotexpects them.For example:>>> import pyflot
>>> graph = pyflot.Flot()
>>> graph.add_line([(1, 1), (2, 2), (3, 3)])
>>> print graph.series_json
[{"data": [[1, 1], [2, 2], [3, 3]]}]In this simple example theseries_jsonis a JSON string
in the format expected byflot.The following Django template snippet shows how you might use
it in a Django template:<script id="source" language="javascript" type="text/javascript">
$(function () {
    $.plot($("#linear-graph"), {{ graph.series_json|safe }}, {{ graph.options_json|safe }});
});
</script>
Package: pythonflow
Pythonflow: Dataflow programming for python.Pythonflow is a simple implementation ofdataflow programmingfor python. Users ofTensorflowwill immediately be familiar with the syntax.At Spotify, we use Pythonflow in data preprocessing pipelines for machine learning models becauseit automatically caches computationally expensive operations,any part of the computational graph can be easily evaluated for debugging purposes,it allows us to distribute data preprocessing across multiple machines.See thedocumentationfor details.
Package: python-flucoma
python-flucomaVery loose bindings from Python3 toFluCoMaCLI tools.WarningYou need to be using Python 3.10+ as I make use of the new typing features.You will need to download the command line versions and put them somewhere in your path.They can be downloaded fromhereor compiled fromsource.With these bindings I tried to replicate the buffer based behaviour that is present across their supported CCE's instead of any magic to produce a 'native' feel to the code.
Instead, functions are bound tofluidprocesses which return where the outputs are. It is then you're job to collect the results.Examples can be found in this repository under the examples folder.Can be installed by any of the methods:pip install python-flucomapip install git+https://github.com/jamesb93/python-flucomaCloning this repo,cdand callpip install .
Package: python-fluepdot
python-fluepdotThis is a small collection of functions for interacting with afluepdotmodule.import Fluepdot class and create an instance with link as the first argfromfluepdotimportFluepdotfd=Fluepdot("http://module.local")Functionsfunctionargsdefault valuesreturn typedescriptioninitbaseURL: str, width: int, height: intx=115, y=16fluepdot.FluepdotConstructor for Fluepdot classpost_timeNoneindefinitly sets the module to display the current time.get_size(int, int)returns the size of the connected displayget_framestrreturns the current frame stored by the moduleget_pixelx: int, y: intx=0, y=0returns the state of a single pixelget_fontsNoneprints a list of fonts installed on the moduleget_modefluepdot.Modereturns the mode the module is inpost_texttext: str, x: int, y: int, font: strx=0, y=0, font="DejaVuSans12"requests.Responseposts a text to the module and returns the requests responsepost_frameframe: List[List[bool]]requests.Responseposts a frame to the module and returns the requests responseset_pixelx: int, y: intx=0, y=0requests.Responsesets a pixel on the display to active and returns the requests responseunset_pixelx: int, y: intx=0, y=0sets a pixel on thes display to inactive and returns the requests responseset_modemode: fluepdot.Modemode=Mode.FULLrequests.Responsesets the module to FULL or DIFFERENTIAL update mode and returns the requests response
Package: python-flutterwave
python-flutterwaveThis lib aims to be the middleman betweenFlutterwave APIand a python backend. Ergo, it directly makes the API requests to FW and returns the necessary info to the backend.One should thoroughly go through theofficial docs herein order to have a meaningful insight on how to use the params provided by the functions in the lib.The lib will also follow the same project structure as the official docs for ease of use and consistency.NB: SetFW_SECRET_KEYenvironnment variable obtained from the dashboard.Full package documentation can be accessed fromhereMore contributors needed, refer tothe contribution gude
Package: python-fly
Snakes on a planeA python package to run concourse flyUseagefromflyimportFlyfly=Fly(concourse_url='http://127.0.0.1:8080')fly.get_fly()fly.login(username='admin',password='admin',team_name='main')fly.get_json('pipelines')fly.run('set-pipeline','-p','concourse-build','-c','/path/to/resource/pipeline.yaml','-v','app-name=app_name','-v','github-org=github-org','-v','github-repo=https://github.com/ministryofjustice/concourse-build','-n')Testspython-munittesttests.test_commands_run-v
Package: python-fmrest
python-fmrestpython-fmrest is a wrapper around the FileMaker Data API.No need to worry about manually requesting access tokens, setting the right http headers, parsing responses, ...Quick example:>>>fms=fmrest.Server('https://your-server.com',user='admin',password='admin',database='Contacts',layout='Contacts',api_version='v1')>>>fms.login()>>>record=fms.get_record(1)>>>record.nameJohnDoeSupported FeaturesAll API paths can be served:authrecordfindglobalscriptAccess to meta routes is also supported.Sponsorpython-fmrest development is supported byallgood.systems. Monitor your web sites and get notifications when your scheduled FileMaker scripts or system scripts stop running.Feel free to contribute!If you would like to contribute, you can help with the code, try it out and report 🐞🐞, propose new features, write tests, add examples and documentation.There's always room for improvement!Questions/problems? Open anew issue. You can also contact me directly atdh@davidhamann.de.InstallYou need Python 3.6 or newer and FileMaker Server/Cloud 17 or newer.You can install the library like this (preferably in avirtualenv):pip install python-fmrestOr the latest master:pip install https://github.com/davidhamann/python-fmrest/archive/master.zipUsage ExamplesExamples can be found in theexamplesdirectory. Can't figure something out or feel an example is missing? Please file an issue.Local development / running testsMake sure to have requirements-dev.txt installed:pip install -r requirements-dev.txtRunningpytestwill run all tests. To run specific tests, specify the path:pytest tests/unitFor runningtests/integrationyou will need to have a real FileMaker Server and a test database.For static type checking, please usemypy:mypy fmrestTo have all tests plus static type checks run every time before a commit, please install the git hook:cd hooks
chmod +x install.sh pre-commit.sh run-tests.sh
./install.shBundling with PyInstallerIf you are building an application that should be bundled with PyInstaller, please add a hook file to your project to indicate toPyInstallerto copypython-fmrests metadata.pyinstaller-hooks/hook-fmrest.pyfrom PyInstaller.utils.hooks import copy_metadata
datas = copy_metadata('python-fmrest')Then add the path to the hooks directory to theAnalysissection of your.specfile (in case you haven't done so for other hooks yet). For example:hookspath=['./pyinstaller-hooks'].TO DOSome bits and pieces are not implemented yet.Examples of what I can think of:OAuth supportHandling of reserved field names (currently,record_id,modification_id,is_dirtyclash with used properties and you will not be able to read your own fields with the same name)Needs more test coverage, e.g. forget_records(),find(),edit_record()Some more usage examples on how to create, edit, delete, set globals, etc. Tell me where you have issues by opening anissue.cli support would be great at some point in the future :-)
Package: python-foneworx
Twisted based library for interacting with Foneworx.co.za’s XML APIMethods implementedLoginLogoutNewMessagesDeleteNewMessagesSendMessagesSentMessagesDeleteSentMessagesUsage:It runs in Twisted, uses Trial for unittests.$ virtualenv --no-site-packages ve
$ source ve/bin/activateRun the client tests, the responses for these are mocked and do not need
a Foneworx account set up.(ve)$ trial tests.client_testsRun the connection tests, these tests do actually connect to Foneworx to send & receive SMSs. Running these tests will cost you money / SMS credits.(ve)$ MSISDN=+27xxx USERNAME=xxx PASSWORD=xxx trial tests.connection_testsPart of the tests is a full stack: receive, reply, delivery report & delete.(ve)$ USERNAME=xxx PASSWORD=xxx trial \
> tests.connection_tests.FoneworxConnectionTestCase.test_full_stack
tests.connection_tests
  FoneworxConnectionTestCase
    test_full_stack ... Please send a test SMS to Foneworx in order to fill the inbox.
Checking for new SMSs every 2 seconds
Checking for new SMSs every 2 seconds
Checking for new SMSs every 2 seconds
Checking for new SMSs every 2 seconds
Replying to an SMS received from +27xxxxxxxxx
Waiting until delivered
Not delivered yet: At Network
Not delivered yet: At Network
Not delivered yet: At Network
Delivered!
Deleting the received message
Deleted: Success
Deleting the sent message
Deleted: None
Logging out
Logged out: Success
                                           [OK]

--------------------------------------------------
Ran 1 tests in 51.191s

PASSED (successes=1)
Package: python-for-android
python-for-androidpython-for-android (p4a) is a development tool that packages Python apps into
binaries that can run on Android devices.It can generate:Android Package(APK)
files, ready to install locally on a device, especially for testing. This format
is used by manyapp storesbut notGoogle Play Store.Android App Bundle(AAB) files which can be shared onGoogle Play Store.Android Archive(AAR) files which can be used as a re-usable bundle of resources for other
projects.It supports multiple CPU architectures.It supports apps developed withKivy framework, but was
built to be flexible about the backend libraries (through "bootstraps"), and
also supportsPySDL2, and aWebViewwith
a Python web server.It automatically supports dependencies on most pure Python packages. For other
packages, including those that depend on C code, a special "recipe" must be
written to support cross-compiling. python-for-android comes with recipes for
many of the mosty popular libraries (e.g. numpy and sqlalchemy) built in.python-for-android works by cross-compiling the Python interpreter and its
dependencies for Android devices, and bundling it with the app's python code
and dependencies. The Python code is then interpreted on the Android device.It is recommended that python-for-android be used viaBuildozer, which ensures the correct
dependencies are pre-installed, and centralizes the configuration. However,
python-for-android is not limited to being used with Buildozer.DocumentationMore information is available in theonline documentationincluding aquickstart guide.python-for-android is managed by theKivy team.SupportAre you having trouble using python-for-android or any of its related projects
in the Kivy ecosystem?
Is there an error you don’t understand? Are you trying to figure out how to use
it? We have volunteers who can help!The best channels to contact us for support are listed in the latestContact Usdocument.Code of ConductIn the interest of fostering an open and welcoming community, we as
contributors and maintainers need to ensure participation in our project and
our sister projects is a harassment-free and positive experience for everyone.
It is vital that all interaction is conducted in a manner conveying respect,
open-mindedness and gratitude.Please consult thelatest Code of Conduct.ContributorsThis project exists thanks toall the people who contribute.
[Become a contributor].BackersThank you toall of our backers!
🙏 [Become a backer]SponsorsSpecial thanks toall of our sponsors, past and present.
Support this project by
[becoming a sponsor].Here are our top current sponsors. Please click through to see their websites,
and support them as they support us.
Package: python_forecast_utils
Forecast utilsForecast utils expose custom features forpython-forecastprojectsInstallationpipinstallpython_forecast_utilsUsagefrom python_forecast_utils import sqrt_transformer

sqrt_transformer.SqrtTransformer()DevelopmentIn order to add a new feature, add the feature intoforecast_utilsfolder in its own file.
If the feature uses packages add/check if the package is listed inside thepyproject.tomlTo add a new package:poetry add <PACKAGE>Then install all the dependencies:poetry installTo add tests to anew feature, add a file totestsfolder prefixed withtest_.To run the tests:poetry run pytestTo update the poetry lock following a change in the toml:poetry updatePackage deploymentTo deploy on pypi, make sure to update the version insidepyproject.toml, then :poetry buildpoetry publishPS: curretly link tobgeffrault@outlook.fraccount, but an organization creation is in progressDocumentationAdditional documentationhttps://python-poetry.org/
Package: python-forge
forge(python) signatures for fun and profitforgeis an elegant Python package for revising function signatures at runtime.
This libraries aim is to help you write better, more literate code with less boilerplate.Installationforgeis a Python-only packagehosted on PyPIforPython 3.5+.The recommended installation method ispip-installinginto avirtualenv:$pipinstallpython-forgeExampleConsider a library likerequeststhat provides a useful API for performing HTTP requests.
Every HTTP method has it’s own function which is a thin wrapper aroundrequests.Session.request.
The code is a little more than 150 lines, with about 90% of that being boilerplate.
Usingforgewe can get that back down to about 10% it’s current size, whileincreasingthe literacy of the code.importforgeimportrequestsrequest=forge.copy(requests.Session.request,exclude='self')(requests.request)defwith_method(method):revised=forge.modify('method',default=method,bound=True,kind=forge.FParameter.POSITIONAL_ONLY,)(request)revised.__name__=method.lower()returnrevisedpost=with_method('POST')get=with_method('GET')put=with_method('PUT')delete=with_method('DELETE')options=with_method('OPTIONS')head=with_method('HEAD')patch=with_method('PATCH')So what happened?
The first thing we did was create an alternaterequestfunction to replacerequests.requestthat provides the exact same functionality but makes its parameters explicit:# requests.get() looks like this:assertforge.repr_callable(requests.get)=='get(url, params=None, **kwargs)'# our get() calls the same code, but looks like this:assertforge.repr_callable(get)==('get(url, params=None, data=None, headers=None, cookies=None, ''files=None, auth=None, timeout=None, allow_redirects=True, ''proxies=None, hooks=None, stream=None, verify=None, cert=None, ''json=None'')')Next, we built a factory functionwith_methodthat creates new functions which make HTTP requests with the proper HTTP verb.
Because themethodparameter is bound, it won’t show up it is removed from the resulting functions signature.
Of course, the signature of these generated functions remains explicit, let’s try it out:response=get('http://google.com')assert'Feeling Lucky'inresponse.textYou can review the alternate code (the actual implementation) by visiting the code forrequests.api.Project informationforgeis released under theMITlicense,
its documentation lives atRead the Docs,
the code onGitHub,
and the latest release onPyPI.
It’s rigorously tested on Python 3.6+ and PyPy 3.5+.forgeis authored byDevin Fee.
Other contributors are listed underhttps://github.com/dfee/forge/graphs/contributors.
Package: python-form
This package provides a mechanism to embedFORM[1][2][3]programs in
Python code. The basic idea of the implementation is the same asFormLink[4]:
it utilizes unnamed pipes between FORM and an external program[5], Python in
this case. It is expected to work on Unix-like systems.Installation$ pip install python-formor directly from GitHub for the latest development version:$ pip install git+https://github.com/tueda/python-form.gitSee also the documentation forpip install.Exampleimportformwithform.open()asf:f.write('''
        AutoDeclare Vector p;
        Local F = g_(0,p1,...,p6);
        trace4,0;
        .sort
    ''')print(f.read('F'))DocumentationPackage DocumentationCHANGELOGLicencepython-form is distributed under the MIT licence.
See theLICENCEfile.Note that FORM itself adopts the GPL version 3. A program/package using FORM via
python-form could be considered as an aggregate (at your own risk) or a combined
work affected by the GPL.References[1]J.A.M. Vermaseren,
New features of FORM,arXiv:math-ph/0010025.[2]J. Kuipers, T. Ueda, J.A.M. Vermaseren and J. Vollinga,
FORM version 4.0,Comput.Phys.Commun. 184 (2013) 1453-1467,arXiv:1203.6543 [cs.SC].[3]https://github.com/vermaseren/form[4]Feng Feng and Rolf Mertig,
FormLink/FeynCalcFormLink : Embedding FORM in Mathematica and FeynCalc,arXiv:1212.3522 [hep-ph].[5]M. Tentyukov and J.A.M. Vermaseren,
Extension of the functionality of the symbolic program FORM by external software,Comput.Phys.Commun. 176 (2007) 385-405,arXiv:cs/0604052.
Package: python-for-my-log
人生苦短，我用python一、怎么获取源码？GitHub地址二、怎么使用？安装pipinstallpython_for_mylog构建日志对象frompython_for_my_logimportLogMiddleware# 在项目全局的地方实例化logger=LogMiddleware(log_dir_path="自定义日志存放的目录路径名，默认为/app/logs/服务名/",app_name="自定义服务的名称",hostname="自定义实例的主机名，默认获取实例机器的hostname",log_level="定义日志最低输出的级别，默认DEBUG",log_format_model="日志记录的格式，默认执行给出的elk样式，也提供default模式，也可自定义",log_when="定义日志分割的模式：H 小时，M 分钟，S 秒，默认小时",log_interval=1,# 日志分割的维度，仅支持天D、小时H，分钟M，秒Slog_backup_count=30*24)# 日志最多保留的个数，默认按小时分割，保留30天的日志# 记录日志logger.debug("人生苦短，我用孙氏牌日志记录器")范例调用参考sdk中的test.py文件三、日志存放路径说明建议传入你当前服务的根目录且建议通过os模块获取或者通过os.sep代替/或\默认windows系统，在您传入的路径后新建一个log的目录，存放记录的日志，如/log_dir_path/log/debug.*.loglinux系统，在您传入的路径最后一层目录名前拼接/app/logs/log_dir_path.split("/")[-1]# 示例: 如您传入的是当前服务的基目录：/project/my_app_name
# windows：那么您存放日志的路径就是：/project/my_app_name/log
# linux: 那么您存放日志的路径就是：/app/logs/my_app_name四、后期待优化的问题# 分割文件,文件名会出现两个.log，如：debug.log.2020-09-12_16.log# 那么采集就必须是获取文件名，如果文件时.log【结尾】的才行五、更多交流请关注微信公众号Python小白成长记