Saravanan666/pypi-org huggingface dataset:
Package: python-feedly
Copyright (c) 2013 zgw21cnPermission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal inthe Software without restriction, including without limitation the rights touse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies ofthe 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 allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESSFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS ORCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHERIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Description: python-feedly=============.. image:: https://img.shields.io/pypi/v/python-feedly.svg:target: https://pypi.python.org/pypi/python-feedly.. image:: https://img.shields.io/pypi/dm/python-feedly.svg:target: https://pypi.python.org/pypi/python-feedly.. _feedly: http://www.feedly.comA client for feedly_.Usage=====.. code-block:: bash$ pip install python-feedlyAuth----At first, you can go to :.. _sandbox feedly: https://sandbox.feedly.com/v3/auth/dev.. _feedly cloud: https://feedly.com/v3/auth/dev.. _feedly developer: http://developer.feedly.com/v3/sandbox/-  `sandbox feedly`_ - access to sandbox (can be used for personal development)- `feedly cloud`_ - access to feedly.com (can be used for personal development)- `feedly developer`_ - access  (can be used for production development)To apply for a client id and client secret. Then you can go to feedly to obtain a code.Examples--------.. code-block:: pythonFEEDLY_REDIRECT_URI = "http://fabreadly.com/auth_callback"FEEDLY_CLIENT_ID="client_id"FEEDLY_CLIENT_SECRET="client_secret"def get_feedly_client(token=None):if token:return FeedlyClient(token=token, sandbox=True)else:return FeedlyClient(client_id=FEEDLY_CLIENT_ID,client_secret=FEEDLY_CLIENT_SECRET,sandbox=True)def auth(request):feedly = get_feedly_client()# Redirect the user to the feedly authorization URL to get user codecode_url = feedly.get_code_url(FEEDLY_REDIRECT_URI)return redirect(code_url)After getting a code, you may exchange it for an access token and a refresh token... code-block:: pythondef callback(request):code=request.GET.get('code','')if not code:return HttpResponse('The authentication is failed.')feedly = get_feedly_client()#response of access tokenres_access_token = feedly.get_access_token(FEEDLY_REDIRECT_URI, code)# user idif 'errorCode' in res_access_token.keys():return HttpResponse('The authentication is failed.')id = res_access_token['id']access_token=res_access_token['access_token']# get user's subscriptiondef feed(access_token):'''get user's subscription'''feedly = get_feedly_client()user_subscriptions = feedly.get_user_subscriptions(access_token)Platform: UNKNOWN
Package: python-ffmpeg
python-ffmpegA python binding for FFmpeg which provides sync and async APIsHelpSeedocumentationfor more details.InstallTo installpython-ffmpeg, simply use pip:$pipinstallpython-ffmpegExamplesYou can find more examples inthe documentation.TranscodingSynchronous APIfromffmpegimportFFmpegdefmain():ffmpeg=(FFmpeg().option("y").input("input.mp4").output("output.mp4",{"codec:v":"libx264"},vf="scale=1280:-1",preset="veryslow",crf=24,))ffmpeg.execute()if__name__=="__main__":main()Asynchronous APIimportasynciofromffmpeg.asyncioimportFFmpegasyncdefmain():ffmpeg=(FFmpeg().option("y").input("input.mp4").output("output.mp4",{"codec:v":"libx264"},vf="scale=1280:-1",preset="veryslow",crf=24,))awaitffmpeg.execute()if__name__=="__main__":asyncio.run(main())RecordingSynchronous APIfromffmpegimportFFmpeg,Progressdefmain():ffmpeg=(FFmpeg().option("y").input("rtsp://username:password@127.0.0.1/cam",rtsp_transport="tcp",rtsp_flags="prefer_tcp",).output("output.mp4",vcodec="copy"))@ffmpeg.on("progress")deftime_to_terminate(progress:Progress):ifprogress.frame>200:ffmpeg.terminate()ffmpeg.execute()if__name__=="__main__":main()Asynchronous APIimportasynciofromffmpegimportProgressfromffmpeg.asyncioimportFFmpegasyncdefmain():ffmpeg=(FFmpeg().option("y").input("rtsp://username:password@127.0.0.1/cam",rtsp_transport="tcp",rtsp_flags="prefer_tcp",).output("output.mp4",vcodec="copy"))@ffmpeg.on("progress")deftime_to_terminate(progress:Progress):ifprogress.frame>200:ffmpeg.terminate()awaitffmpeg.execute()if__name__=="__main__":asyncio.run(main())
Package: pythonfhrs
A python wrapper around the UK FHRS api.Free software: MIT licenseInstallationpip install pythonfhrsDocumentationhttps://python-fhrs.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 toxChangelog0.1.0 (2018-12-03)First release on PyPI.
Package: python_field
If you need to store python source code in a field in a django model, this
is the app you need.Obviously, you should not be accepting any old user data if you will be
executing it, but for my use case (admin users only, needed complex data
rules that varied between models), python code was the best choice.So, you use it by:$ python setup.py installaddpython_fieldto yoursettings.INSTALLED_APPS(optional, but
required if you want syntax highlighting).Use as follows in your model:from django.db import models
from python_field.fields import PythonCodeField

class MyModel(models.Model):
    ....
    source = PythonCodeField(blank=True, null=True)

    ....The text will be compiled using the inbuild pythoncompile()function,
and errors will be shown in the form errors field.CodeMirror and Syntax HighlightingThis package uses parts of the CodeMirror package for syntax highlighting,
and for replacing thetextareawith an editable iframe.Parts of the CodeMirror package that are not required have not been included,
and the package has been minified. [This is not the case just yet.]The original license file is included for your reference.CodeMirror can be found athttp://codemirror.net/HistoryThis project is a fork of Matthew Schinckel’s project
athttp://bitbucket.org/schinckel/django-python-code-field/.
Package: python-figures
python-figures😀Can use unicode symbols on any OS!This project is based onsindresorhus/figures.Installationpipinstallpython-figuresUsageYou can see supported symbols onthis codeorwindows. You can also see this example onexample.pyfromfiguresimportFigures,figuresasffigures=Figures()print(figures.get('tick'))figures.add('santa','🎅🏻')print(figures.get('santa'))print(figures.get('nonexistent',default=''))print(figures.string('✔ ✔ ✔'))# ✔ ✔ ✔ or √ √ √# or you can use just like thisprint(f('tick'))print(f(string='✔ ✔ ✔'))# ✔ ✔ ✔ or √ √ √APIFigureadd(key, default, windows)You can add custom symbol with this function.keyType :StringUnicode symbol's keydefaultType :StringUnicode symbol (like 🎅)windowsType :Stringif you enter this argument, it return unicode symbol on windows CMDget(key, default)Return os friendly unicode symbol with keykeyType :StringUnicode symbols, seeFigures. also you can use custom symbol with add function.defaultType :StringReturn this when nonexistent key argument.string(string)replace string for windows CMD.stringType :StringString what have unicode symbols.get_all()Get all of symbols, include custom symbolsget_keys()Get all of symbol's keys, include custom symbolsfigures(key=None, string=None, default=None)Return os friendly unicode symbol with key, or replace string for windows CMD.keyType :StringUnicode symbols, seeFigures.stringType :StringString what have unicode symbols.defaultType :StringReturn this when nonexistent key argument.FiguresKeyDefaultWindowstick✔√cross✖×star★*square▇█squareSmall◻[ ]squareSmallFilled◼[█]play▶►circle◯( )circleFilled◉(*)circleDotted◌( )circleDouble◎( )circleCircleⓞ(○)circleCrossⓧ(×)circlePipeⒾ(│)circleQuestionMark?⃝(?)bullet●*dot․.line──ellipsis…...pointer❯>pointerSmall›»infoℹiwarning⚠‼hamburger☰≡smiley㋡☺mustache෴┌─┐heart♥♥arrowUp↑↑arrowDown↓↓arrowLeft←←arrowRight→→radioOn◉(*)radioOff◯( )checkboxOn☒[×]checkboxOff☐[ ]checkboxCircleOnⓧ(×)checkboxCircleOffⒾ( )questionMarkPrefix?⃝？License :MIT@ h4wldev
Package: pythonfiledatastore
DataStoreIntroductionFile-based key-value data store that supports the basic CRD (create, read, and delete) operations. This data store is meant to be used as a local storage for one single process on one laptop.Installationpip install pythonfiledatastoreUsage:>>> from pythonfiledatastore import datastore_invokeGeneral Instructions:>>> print(datastore_invoke(0))
Operation Not Found  
1 for Create (--client --key  --ttl(optional) --value --filepath(optional)) 
2 for Read (--client --key --filepath(optional)) 
3 for Delete (--client --key --filepath(optional)) 
4 for Reset (--client --filepath(optional))Create Operation with file path>>> print(datastore_invoke(1, client = "hunch" , key = "employee_data", value = '{"employee":"siam"}', filepath = "/Users/user_name/Desktop/"))
Create Operation DoneCreate Operation>>> print(datastore_invoke(1, client = "hunch" , key = "employee_data", value = '{"employee":"siam"}'))
Create Operation DoneCreate Operation with Time to Live feature>>> print(datastore_invoke(1, client = "hunch" , key = "employee_data_temp", value = '{"employee":"ragoish"}', ttl = 30 ))
Create Operation DoneRead Operation>>> print(datastore_invoke(2, client = "hunch" , key = "employee_data"))
For key | employee_data | value  - {'employee': 'siam'}Read Operation TTL Expired>>> print(datastore_invoke(2, client = "hunch" , key = "employee_data_temp"))
Error Status : TTL Value for the Key - employee_data_temp expired for the client - hunchDelete Operation>>> print(datastore_invoke(3, client = "hunch" , key = "employee_data"))
Error Status : For key | employee_data | value - is deletedDelete Operation TTL Expired>>> print(datastore_invoke(3, client = "hunch" , key = "employee_data_temp"))
Error Status : TTL Value for the Key - employee_data_temp expired for the client - hunchNote: After Delete Option if the client storage file is empty, A forced reset operation is performedReset Operation - Delete Entire file>>> print(datastore_invoke(4, client = "hunch" ))
File removed!!!! - hunch
Package: pythonfilemover
Version 0.3.0This program provides a simple way to move massive amounts of files from one directory to another directory without having to manually go into your directories and move each file one by one. With PythonFileMover all you have to do is open up your command line and run our simple commands to move your files around on your computer with ease.  You can move massive amounts of filesMove massive amounts of files, either by extension(i.e. .txt ) or folder(i.e. WorkFiles) from one directory(I.E. C:/) to another directory (I.E. D:/) with only a few lines. Save yourself time from having to constantly copy and paste the files and get back to doing more important things!FeaturesMove files from Directory A to Directory B with only a few commands.Move entire folders from Directory A to Directory B.CommandsInteractive Mode:Please download the code from our Github then launch the program using 'python main.py'. You will then be lead to our very intuitive interactive mode! From the interactive mode you can do the following:✨ Move large amounts of folders from Directory A to Directory B:--move-files✨ Move large amounts of files from Directory A to Directory B:--move-foldersInstallationThe program currently must be build in order to run it. In addition, it is currently only tested for Windows PCsStep 1: Install Python 3+Step 2: Ensure you have the following dependencies installed(: os, shutil, typer, time, tkinter)Step 2: Download the recent release from Github.Step 3: Open a command line or powershell as an administrator on your Windows PC.Step 4: Navigate to the directory where the source code is stored and runpython main.py. You will then open the interactive mode and be able to run the codes specified!ContributeWant to contribute to active issues and feature requests?The project maintainer of this project is very eager to accept work from open source contributors! Please take a look at our issues tab to see what issues or features that the maintainer has listed as a program need. You can then reach out through comments to offer assistance on that feature or submit a pull request.Want to report bugs or ask for additional features?Thank you for thinking of an idea or reporting a bug. You can place your idea or enhancement idea into our issues tab for consideration. All bug reports are appreciated along with enhancement ideas.
Package: python-file-storage
python-file-storageA Python package that exposes a consistent API for working with different
storage backends.WARNING: This is still under active development.Why does this package exist?I needed something that does not depend on Django but exposes a similar
interface to Django's base storage indjango.core.files.storage.base.Storage.
So, if you're using Django: use Django anddjango-storagesinstead.
Currently, this package only does the bare minimum that I need it for so
if you're looking for something more full-featured perhaps look at thecloudstoragepackage.Available backendsFilesystem.Amazon S3.QuickstartInstall the package:pip install python-file-storageAdd your configuration. Set the following as environment variables or add
them to a.envfile in the root of your project:DEFAULT_STORAGE_BACKEND=storage.backends.s3.S3StorageS3_BUCKET_NAME=my-bucket-nameS3_ENDPOINT_URL=example.com# OptionalS3_ACCESS_KEY_ID=123S3_SECRET_ACCESS_KEY=123Currently, using more than one storage backend at a time is unsupported.Importdefault_storageand start using the package:fromstorageimportdefault_storagedefault_storage.save('example.txt','Content')file=default_storage.open('example.txt','Content')CompatibilityPython 3.8+Django is unsupported.VersioningThis project followssemantic versioning(SemVer).
Package: python-filter
python-filterA bibliotecapython-filteroferece classes para trabalhar com listas de forma conveniente e eficiente.Classes DisponíveisDictListFilter: Manipula listas de dicionários.TupleListFilter: Manipula listas de tuplas.InstalaçãoPara instalar a biblioteca, você pode usar pip:pipinstallpython-filterUsoDictListFilterEsta classe permite trabalhar com listas de dicionários.Exemplo de Uso:frompyfilterimportDictListFilter# Criar uma lista de dicionáriosdata=[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"},{"id":3,"name":"Charlie"}]# Inicializar a classedict_items=DictListFilter(data)# Exemplo de operações disponíveisresult=dict_items.get_with_key_value("id",2)print(result)# Saída: {"id": 2, "name": "Bob"}TupleListFilterEsta classe permite trabalhar com listas de tuplas.Exemplo de Uso:frompyfilterimportTupleListFilter# Criar uma lista de tuplasdata=[(1,"Alice"),(2,"Bob"),(3,"Charlie")]# Inicializar a classetuple_items=TupleListFilter(data)# Exemplo de operações disponíveisresult=tuple_items.get_with_value("Bob")print(result)# Saída: (2, "Bob")ContribuiçãoContribuições são bem-vindas! Para sugestões, melhorias ou relatórios de bugs, sinta-se à vontade para abrir uma issue ou enviar um pull request norepositório GitHub.LicençaEste projeto é licenciado sob a Licença MIT. Consulte o arquivoLICENSEpara obter detalhes.
Package: python-find
# OveriewA unix find utility written in python.## Example usageImport into your code:import python_findpython_find.find(root='~', name='*.jpg')Run module directly:python -m python_find -type f -name "*.py"## Current featuresOnly can find files by type and name as of now. The unix find examplesshow implemented features.Unix find examples:* find . -type f -name "*.jpg"* find ~ -type l
Package: python-fio
Fio bank [http://fio.cz] transparent account data scraper.Requirements:python >= 2.7python-lxml >= 2.3Usage:import fio
url = ('https://www.fio.cz/scgi-bin/hermes/dz-transparent.cgi?ID_ucet=%d'
        % account_num)
data = fio.scrape(url)Sample output:$ ./fio/scrape.py | tail -n 52012-05-20   -1796.00
2012-05-22    -900.00
2012-05-24    -400.00
2012-05-31       1.50
2012-06-01  -10028.00
Package: python-firebase-url-shortener
Firebase Dynamic Links URL ShortenerThis is a Python Client forFirebase Dynamic Linksto Shorten URLs.RequirementsBe sure you have the following installed on your development machine:Python >= 3.6pipInstallationInstall the package:pipinstallpython-firebase-url-shortenerUsagefrompython_firebase_url_shortener.url_shortenerimportUrlShortenerurl_shortener=UrlShortener('your_api_key','domain_name')url_shortener.get_short_link('https://www.example.com/')NoteHere Domain Name Refers to The Subdomain you set for your Dynamic Links.
Package: python-fireplan
fireplanA python package around the publicfireplanAPI.Installationpip install python-fireplanUsageAlarmimportfireplan# Fireplan Registration IDsecret="B75C394B-624526A5"# Your Divisiondivision="Musterhausen"fp=fireplan.Fireplan(secret,division)alarmdata={"alarmtext":"","einsatznrlst":"","strasse":"","hausnummer":"","ort":"","ortsteil":"","objektname":"","koordinaten":"","einsatzstichwort":"","zusatzinfo":"","sonstiges1":"","sonstiges2":"","RIC":"","SubRIC":""}fp.alarm(alarmdata)Statusimportfireplansecret="B75C394B-624526A5"# Your Divisiondivision="Musterhausen"fp=fireplan.Fireplan(secret,division)statusdata={"FZKennung":"40225588996","Status":"3"}fp.status(statusdata)
Package: python-fisco
python_fiscoFisco API wrapper for Python 3.Inspired by this wrapper written by 'zaifapi'.Install latest release:pipinstallpython-fiscoUsage:frompython_fiscoimport*FiscoPublic().get_ticker('btc_jpy')Public Api# tickerfrompython_fiscoimport*FiscoPublic().get_ticker('btc_jpy')# last_priceFiscoPublic().get_last_price('btc_jpy')# tradesFiscoPublic().get_trades('btc_jpy')# depthFiscoPublic().get_depth('btc_jpy')Private APIimportosfrompython_fiscoimport*private_api=FiscoPrivate(os.environ.get('FCCE_KEY'),os.environ.get('FCCE_SECRET'))private_api.get_info()private_api.get_trade_history()private_api.get_active_orders()private_api.trade(currency_pair='btc_jpy',action='ask',price=700000,amount=0.001)private_api.cancel_order(order_id=1)private_api.withdraw(currency='btc',address='address',amount=0.001)private_api.get_deposit_history('btc')private_api.get_withdraw_history('btc')Seehttps://fcce.jp/api-docs
Package: python-fity3
Fity3 is a Twitter snowflake like scheme generator that fits in 53 bits.Its scheme is:timestamp | worker_id | sequence
 41 bits  |  8 bits   |  4 bitsTwitter’s snowflake schemefor id generation has a
bunch of nice properties. An enormous number of roughly-sorted ids can be
created per second in an uncoordinated manner.However it’spainfulworking with 64 bit integers in environments that use
IEEE 754 floating points for numerics. ParticularlyJavaScriptand thescores for Redis’ sorted sets.This scheme allows for:69 years of ids (the same as snowflakes)at most 256 unique id generating workerseach worker can produce at most 16 ids per millisecondso at most 4 million ids per secondIf you’re building a system in the sweet spot of not being too popular that
usage will grow to creating more than 4 million new things a second but you
could benefit from uncoordinated incrementing id generation and don’t want to
punch yourself in the face every time you request data over a websocket from
JavaScript, this scheme might be a useful alternative.>>>importfity3>>>f3=fity3.generator(1)>>>next(f3)14127739136>>>next(f3)14132125952>>>next(f3)14135079168# convenience to convert to a unix timestamp>>>fity3.to_timestamp(14135079168)1413374250Let’s just hope we won’t be the ones supporting any of these systems in 2079.
Package: python-flashcards
small cli tool to study using flFree software: BSD licenseInstallationpip3 install python-flashcardsWhat flashcards areA flashcard or flash card is a set of cards bearing information, as words or numbers, on either or both sides, used in classroom drills or in private study. One writes a question on a card and an answer overleaf.[Wikipedia]How does this workpython-flashcardsis a small tool, which receives cards from aYAMLfile, and shows them in a random order so you can practice.YAMLformat:-topic:The topic I will say out loudcontent:The information I'll check after saying out loud what I knowkeywords:reference, words-topic:Pythoncontent:Is a widely used high-level programming language for general-purpose programming,created by Guido van Rossum and first released in 1991.keywords:programming, languageBeingkeywordthe only optional.UsageLet’s supouseanatomy.yamlis your file with information related to anatomy.flashcards anatomy.yamlIf you want the cards in order:flashcards --ordered meds.yamlIf you want to show the hide the topic instead of the content:flashcards --inverted meds.yamlFor more help:flashcards -hDocumentationhttps://python-flashcards.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 toxChangelog0.3.0 (2018-11-27)Add ability to hide topic instead of content.0.1.0 (2017-03-31)First release on PyPI.
Package: python-flex-cache
python-flex-cacheSimple & flexible caching for Python functions backed by either redis, disk or memoryRequirementsRedis 5+Python 3.6+How to installpip install python-flex-cacheHow to useInitialize through configfromflex_cacheimportinit_cache_from_settingsmemcache=init_cache_from_settings({'type':'MemCache'})diskcache=init_cache_from_settings({'type':'DiskCache','diskcache_directory':'/tmp'})rediscache=init_cache_from_settings({'type':'RedisCache','redis_host':'redis','redis_username':'xx','redis_password':'yy'})Initialize manuallyfromredisimportRedisfromdiskcacheimportCacheasDCachefromflex_cacheimportMemCache,DiskCache,RedisCachememcache=MemCache()diskcache=DiskCache(DCache())rediscache=RedisCache(redis_client=Redis(host="redis",decode_responses=True))Usagefromflex_cacheimportinit_cache_from_settingscache=init_cache_from_settings({'type':'MemCache'})@cache.cache()defmy_func(arg1,arg2):result=123+456# or some expensive functionreturnresult# Use the functionmy_func(1,2)# Call it again with the same arguments and it will use cachemy_func(1,2)# Invalidate a single valuemy_func.invalidate(1,2)# Invalidate all values for functionmy_func.invalidate_all()Limitations and things to knowArguments and return types must be JSON serializable by default. You can override the serializer, but be careful with using Pickle. Make sure you understand the security risks. Pickle should not be used with untrusted values.https://security.stackexchange.com/questions/183966/safely-load-a-pickle-filettl- seconds - based on insertion in the cache - ie. not last accesslimit-ONLY for redis!limit will revoke keys (once it hits the limit) based on FIFO, not based on LRUAPIfromflex_cache.basecacheimportBaseCachefromjsonimportloads,dumpsBaseCache(prefix="rc",serializer=dumps,deserializer=loads)@BaseCache.cache(ttl=None,limit=None,namespace=None)defcached_func(*args,**kwargs):pass# some costly thing# Cached function API# Returns a cached value, if it exists in cache else computes and saves value in cachecached_func(*args,**kwargs)# Invalidates a single valuecached_func.invalidate(*args,**kwargs)# Invalidates all values for cached functioncached_func.invalidate_all()prefix - The string to prefix the redis keys withserializer/deserializer - functions to convert arguments and return value to a string (user JSON by default)ttl - The time in seconds to cache the return valuenamespace - The string namespace of the cache. This is useful for allowing multiple functions to use the same cache. By default itsf'{function.__module__}.{function.__file__}'