Saravanan666/pypi-org huggingface dataset:
Package: python-cron
A simple Python library providing cron functionality via the use of a single decorator.InstallationThe latest version of pycron may be installed viapipas follows:pip install python-cronUsageThepycronmodule provides a@crondecorator that may be used to mark functions declaredasyncas cron jobs. The decorator takes a croniter-style cron string as input to determine when the function should be executed. For example, the followingtestfunction would be automatically executed every 5 seconds:fromdatetimeimportdatetimeimportpycron@pycron.cron("* * * * * */5")asyncdeftest(timestamp:datetime):print(f"test cron job running at{timestamp}")if__name__=='__main__':pycron.start()All functions declared with the@crondecorator should take a single positional argument that will contain the current timestamp when the function is automatically invoked. Also note the usage of thepycron.start()method. This function signals that automated job scheduling and execution should begin and it should be invoked after all jobs have been declared.For more information on the format of the cron strings that should be provided to the@crondecorator, please see thecroniter documentation on PyPI.
Package: python-crunchbase
crunchbaseThis is a Python Library for the Crunchbase 2.0 API.API DocumentationThe CrunchBase API provides a RESTful interface to the data found on
CrunchBase. The response is in JSON format.RegisterFollow the steps below to start using the CrunchBase API:Sign UpLogin &get API keyBrowse the documentation.Setuppip install git+git://github.com/anglinb/python-crunchbaseUp & RunningImport Crunchbase then intialize the Crunchbase object with your api
key.from crunchbase import CrunchBase
cb = CrunchBase('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')Here is an example of searching for an organization.cb.getOrganizations('Dropbox', page='1', order=...)This returns the result of an organization search query in JSON format.
The keyword arguments(page, order, ... )will be translated into
GET variables and passed along with the request. Check the documentation
to find which arguments are availible for which API endpoint.Now you are ready to perform any of the following queries against the
Crunchbase 2.0 APIgetOrganizations(query) #This returns result of an organization search query in JSON format.

getOrganization(path) #This returns result of an organization search query in JSON format.

getPeople() #This returns result of people in JSON format.

getPerson(path) #This returns result of a single person

getProducts() This returns result of products in JSON format.

...Check crunchbase/crunchbase.py for a list of all the of the possible
functions. These methods are in order with the ones found in theCrunchbase API Documentation.API Usage TermsGeneral TOSLicense: CC-BY-NC (Creative Commons Attribution-NonCommercial
License)https://developer.crunchbase.com/Library LicenseWTFPL
Package: python-cryptobox
Python CryptoboxA cffi wrapper forCryptobox - C API,
the encryption library of theWire-MessengerInstallationpip install python-cryptoboxAddition RequirementsYou need apart from the python dependencies:gcccryptobox-cLinuxThankThis project wouldn't be possible withoutFelix PechtlandKai Wiestand theirUniMessangerproject.DisclaimerThere is no guarantee in any means that this library is secure.The name "Wire" is a trademark of Wire Swiss GmbH.
There is no association of this project with the Wire Swiss GmbH.
This project is developed independently as a hobby.LicenceThe project itself and cryptobox-c are GPLv3 licenced.Copyright (C) 2021 Alexander Eisele

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Package: python-cryptochart
Terminal chart for crypto currenciesIntroductionLive minute chart feeded by kraken through websocket.InstallationRequires python version 3.7 or later.To install the latest release onPyPI,
simply run:pip3installpython-cryptochartOr to install the latest version, run:gitclonehttps://github.com/FusionSolutions/python-cryptochart.gitcdpython-cryptochart
python3setup.pyinstallPython libraryUsagepython3-mcryptochart[btcoreth]ContributionBug reports, constructive criticism and suggestions are welcome. If you have some, create an issue ongithub.CopyrightAll of the code in this distribution is Copyright (c) 2021 Fusion Solutions Kft.The tool is made available under the GNU General Public license. The included LICENSE file describes this in detail.WarrantyTHIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE USE OF THIS SOFTWARE IS WITH YOU.IN NO EVENT WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY, BE LIABLE TO YOU FOR ANY DAMAGES, EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.Again, see the included LICENSE file for specific legal details.
Package: python-cryptography-fernet-wrapper
python-cryptography-fernet-wrapperGithub RepositoryusageImportingpipinstallpython-cryptography-fernet-wrapperfromfernet_wrapperimportWrapperasfernet_wrapperEncryptencrypted_data=fernet_wrapper.encrypt(data,key)Decryptdecrypted_data=fernet_wrapper.decrypt(encrypted_data,key)Generate random keykey=fernet_wrapper.gen_key()Generate key from passwordkey=fernet_wrapper.key_from_pass(password)
Package: python-CryptoPrice
NoteThis library is under development by EtWnn, feel free to drop your suggestions or remarks in
the discussion tab of the git repo. You are also welcome to contribute by submitting PRs.This library is made to retrieve price or candle history of crypto assets using multiple sources.Source Code:https://github.com/EtWnn/CryptoPriceDocumentation:https://cryptoprice.readthedocs.ioFeaturesThe idea is to have under a single library several price history API to be able to fetch effortlessly the price of large
amount of different tokens or to compare the price difference between exchanges.It currently includes:Binance APIKucoin APICross-API logicQuick TourInstallationCryptoPriceis available onPYPI, install withpip:pipinstallpython-CryptoPriceYou can also install the latest developments (not stable):pipinstallgit+https://github.com/EtWnn/CryptoPrice.git@developExamplesA price retriever is already provided by the library, but feel free to check thedocumentationto instantiate one yourself.importdatetimefromCryptoPriceimportget_default_retrieverretriever=get_default_retriever()asset='BTC'ref_asset='USDT'timestamp=int(datetime.datetime(2021,1,1,15,14).timestamp())# will return the first price price found close to the timestampretriever.get_closest_price(asset,ref_asset,timestamp)>>Price(value=29480.0,asset='BTC',ref_asset='USDT',timestamp=1609510440,source='binance')You can also fetch a price even if the trading pair does not exist: The retriever (MetaRetriever) will find a path with
several trading pairs to estimate the price between the asset and the ref asset. This method takes much more time
than the one above as several API calls (or database requests) may be needed.importdatetimefromCryptoPriceimportget_default_retrieverretriever=get_default_retriever()asset='LTC'ref_asset='XRP'timestamp=int(datetime.datetime(2021,3,3,15,14).timestamp())# will return an average price of several trading pathprice=retriever.get_mean_price(asset,ref_asset,timestamp)ifpriceisnotNone:# price foundprint(f"{asset}={price.value:.5f}{ref_asset}, source:{price.source}")>>LTC=420.76841XRP,source:{'binance','kucoin'}DonationIf this library has helped you in any way, feel free to donate:BTC: 14ou4fMYoMVYbWEKnhADPJUNVytWQWx9HGETH: 0xfb0ebcf8224ce561bfb06a56c3b9a43e1a4d1be2LTC: LfHgc969RFUjnmyLn41SRDvmT146jUg9tEEGLD: erd1qk98xm2hgztvmq6s4jwtk06g6laattewp6vh20z393drzy5zzfrq0gaefh
Package: python-csv2json
Python CSV to JSON Converterbased on unicode UTF-8You can export converted json string to a file when using a csv fileInstructions:For import to your projectimport csv2json as converterFor convert csv to json and export to fileconverter.csv_2_json_file("YOUR_CSV_FILE_PATH")For convert csv to json as string:csv = "YOUR_CSV_STRING"
  json = converter.csv_2_json(csv)
  print(json) # Converted JSON StringMinimum Python Version Requirement is3.7.0
Package: python-csvloader-dpp-example
Python lib.Created based onhttps://github.com/BillMills/pythonPackageLessonpip install –index-url https://test.pypi.org/simple/ –no-deps python-csvloader-dpp-examplepip install –index-url https://test.pypi.org/simple/ –no-deps python-csvloader-dpp-example==2.0python -m twine upload dist/*pip install python-csvloader-dpp-example
Package: pythonCSVutils
PythonCSVUtilspythonCSVutilsis a lightweight Python library that provides utility functions for working with CSV files. It allows you to read, write, filter, sort, update, select, group, aggregate, merge, and manipulate CSV data with ease.InstallationYou can install pythonCSVutils via pip:pipinstallpythonCSVutilsUsageImport the necessary functions from the library:frompythonCSVutilsimportread_csv,write_csv,filter_rows,sort_rows,update_rows,select_columns,read_csv_header,append_rows,group_by,aggregate,merge,drop_columns#Reading and Writing CSV Filesdata=read_csv('data.csv')#Write data to a CSV filewrite_csv('output.csv',data)#Filter rows based on a conditionfiltered_data=filter_rows(data,lambdarow:row['age']>30)#Sort rows based on a keysorted_data=sort_rows(data,'age',reverse=True)#Update rows by modifying a specific columnupdated_data=update_rows(data,'age',lambdarow:row['age']+1)#Select specific columns from the dataselected_data=select_columns(data,['name','age'])#Read the header of a CSV fileheader=read_csv_header('data.csv')#Append rows to an existing CSV fileappend_rows('data.csv',new_rows)#Group data by a specific keygrouped_data=group_by(data,'gender')#Aggregate data based on a grouping key, an aggregation key, and an aggregation functionaggregated_data=aggregate(data,'gender','age',sum)#Merge two datasets based on a common keymerged_data=merge(data1,data2,'id')#Drop specific columns from the datadropped_data=drop_columns(data,['email','phone'])LicenseThis project is licensed under the MIT License.
Package: python-cta
Chicago Transit Authority APIThe CTA has three public endpoints for tracking CTA trains. This client supports
those endpoints.TheCTAClienthas methods for each endpoints. Namely,arrivals: Arrival information for a given station(s) or stop(s).follow: Follow specific train by runnumber.locations: Get all trains for a given route(s).More endpoint specific documentation foundhereThis API requires a key which can be easily receivedhere.
Follow the.env.examplefile for setting.InstallationThis package is available onpip. Install with:$pipinstallpython-ctaGetting StartedfromctaimportCTAClientdamen_blue_line_mapid=40590# Get arrival information for damen blue line station.cta_client=CTAClient()arrival_response=cta_client.arrivals(mapid=damen_blue_line_mapid)df_arrivals=arrival_response.to_frame()print(df_arrivals)# Follow specific trainrunnumber=df_arrivals["rn"].tolist()[0]follow_response=cta_client.follow(runnumber=runnumber)df_follow=follow_response.to_frame()print(df_follow)fromctaimportRoute# Get the location of all Blue Line trains.location_response=cta_client.locations(Route.BLUE)df_locations=location_response.to_frame()print(df_locations)# Or all trains on the tracklocation_response=cta_client.locations(route=[routeforrouteinRoute])df_locations=location_response.to_frame()print(df_locations)Information about the stations can be found with theStationsclass. Below is an
example to find the mapid for Damen blue line.fromctaimportStationsstations=Stations()df_stations=stations.dataprint(df_stations)df_damen=stations.lookup("Damen",route=Route.BLUE)print(df_damen)Try this example for yourself inscripts/readme_example.py
Package: python-ctags3
Ctags supports indexing of many modern programming languages. Python
is a powerful scriptable dynamic language. Using Python to access Ctags index
file is a natural fit in extending an application’s capability to examine source
code.This project wrote a wrapper for readtags.c distributed from Universal-ctags project
(https://ctags.io). I have been using the package in
a couple of projects and it has been shown that it could easily handle hundreds
source files.
Package: python-ctapi
# python-ctapiPython interface for [CoinTracking.info API](https://cointracking.info/api/api.php).I am not associated to cointracking.info -- use at your own risk!# Requirements:* requests# Install`python setup.py install``pip install python-ctapi`# How to UseThis is an example about how you can use the library```#!/usr/bin/env python2from ctapi import CTAPIapi_key = <YourAPIKey>api_secret = <YourAPISecret># api = CTAPI(api_key, api_secret, debug=True)api = CTAPI(api_key, api_secret)trades = api.getTrades()if trades['success']:for t in trades['result']:print trades['result'][t]else:print "got no orders"print api.getBalance()print api.getHistoricalSummary()print api.getHistoricalCurrency()print api.getGroupedBalance()print api.getGains()```# Running Tests**be aware of the API requests limit of 20 req/h**`venv/bin/python -m unittest -v ctapi.test.ctapi_tests`# ContributeDo you have an idea or found a bug in python-ctapi? Please file an issue and make a PR! :)## Support MeIf you like the API and wanna support its developer, use the following referral link when registering at cointracking: https://cointracking.info?ref=T161519
Package: python-ctp
python-ctp==========Python wrapper for CTPInstall-------::pip install ctp_depspip install python-ctp (not open-sourced yet)Testing-------::cp conf/simnow.yml.example conf/simnow.ymlvim conf/simnow.yml # and fill up simnow accountpython setup.py testExternal Links--------`上期技术 -综合交易平台API <http://www.sfit.com.cn/5_2_DocumentDown.htm>`__
Package: python-cts
Description-------'python-cts' adds a new executable, 'cts', which searches ctag files for your tag and then executes a command on the selected tag.  By default, it executes "$EDITOR +{lineNumber} {file}", which opens the found file your default editor.Since 'cts' is only as good as your ctag files, it is recommended running ctags with '--extra=+f' so as to index filenames as well.  This will let you do 'cts Foo.java' to automatically open up Foo.java in your editor of choice.Alternatively, one can add a new line, '--extra=+f', to ~/.ctags to set it as a default option for the ctags command.  This is likely a better solution as it will also work with scripts, editors, and other out-of-band processes.If provided a tags file with line numbers instead of patterns, 'cts' will attempt to read the line of code from the actual file.Example 1-------cts bar -i -c /some/directory/tags1. '-c /some/directory/tags' indicates cts should use that tags file rather than attempting to find one.2. '-i' indicates that it's a case insensitive search.  The resulting search query is /^bar$/i3. Upon selecting a tag, executes "$EDITOR +{pattern} {file}.Example 2---------cts Foo -p -kc -t scala,py -e "grep def {file}"1. Since no ctag file was specified, recurse from the current directory up until a 'tags' file is found.2. '-p' indicates a partial search, so look for a /.*Foo.*/ in the tag file.3. '-kc'indicates to filter out everything that isn't kind 'c', or class definitions.4. '-t scala,py' indicates to filter out all tags that are not files with 'scala' or py as the extension.5. '-e "grep def {file}"' indicates that after a selection has been made, to execute "grep def {file}" where {file} will be filled in with the absolute path to the reference file.To Install (From Pip)----------pip install python-ctsIf upgrading:pip install python-cts --upgradeTo Install (From Source)----------1. Checkout the repo2. python setup.py install3. Profit!Usage-----Type 'cts -h' to get usage information
Package: python-currencycom
Welcome to the python-currencycomThis is an unofficial Python wrapper for the Currency.com exchange REST API v1.
I am in no way affiliated with Currency.com, use at your own risk.DocumentationPlease find official documentation by:https://exchange.currency.com/apiOr Swagger by the link:https://apitradedoc.currency.com/swagger-ui.html#/.QuickStartRegister an account on Currency.comCreate an API Key with correct permissionspip install python-currencycomLet's retrieve tradable symbols on the marketfrompprintimportpprintfromcurrencycom.clientimportClientclient=Client('API_KEY','SECRET_KEY')# Exchange info contains various info including tradable symbolsexchange_info=client.get_exchange_info()tradable_symbols=[x['symbol']forxinexchange_info['symbols']]pprint(tradable_symbols,indent=2)For more check outthe documentationandSwagger.
Package: python-custom-logger
python-gcp-loggerThis repo provides a python logger wrapper for structured logs on gcp.Installationpip install python-custom-logger
or
poetry add python-custom-loggerUsagefrom custom_logger.logger import CustomStructuredLogger

log_to_cloud: bool = True if <any condition to check if in cloud service env> else False
log_to_console: bool = not log_to_cloud
logger: CustomStructuredLogger = CustomStructuredLogger(
    project_id=<GCP_PROJECT_ID>,
    name="MyLogger",
    log_to_console=log_to_console,
    log_to_cloud=log_to_cloud,
)

logger.info(message="helloworld")
logger.info(message={"hello": "world"})
logger.error(message="helloworld")
logger.error(message={"hello": "world"})
logger.warning(message="helloworld")
logger.warning(message={"hello": "world"})

# Using additional attributes:
logger.info(message={"hello": "world"}, attributes {"foo": "bar"})TODOsadd testsreplace google logger with python logger using structured std out log
Package: python-custom-logging
python_custom_logginglogpath = "YOUR LOG PATH/LOG_FILE_NAME.log"loggername = "YOUR LOGGER NAME"logformat = ("%(asctime)s [%(levelname)s]: %(lineno)d : %(message)s ") --YOUR LOG FORMATlog_level = logging.INFO -- YOUR LOG LEVELlogfilehandlertime = "H"  -- logfilehandlertime  (H,M,S)interval = 1  -  intreval of time 1 hour,1 sec ,1 minutesbackupCount=0  file we keep of logs if 0 mean all log file will  be there and if set to 2 then latest 2 log file will  be there and rest will be deletedCreate obj before usefrom python_custom_logging import *logging_config_obj=python_custom_logging(logpath,loggername,logformat,log_level,logfilehandlertime,interval,backupCount).create_log()For Example:logging_config_obj.info('YOUR  LOGS')logging_config_obj.error('YOUR  LOGS')
Package: python-cyborgclient
Team and repository tagspython-cyborgclientpython-cyborgclient is a python bindings to the OpenStack Cyborg API. There’s
a Python API (thecyborgclientmodule), and a command-line script
(cyborg). Each implements 100% of the OpenStack Cyborg API.See theOpenStack CLI Referencefor information on how to use thecyborgcommand-line tool. You may also want to look at theOpenStack API documentation.The project is hosted onLaunchpad, where bugs can be filed. The code is
hosted onOpenStack. Patches must be submitted usingGerrit.This code is a fork ofJacobian’s python-cloudservers. If you need API support
for the Rackspace API solely or the BSD license, you should use that repository.
python-cyborgclient is licensed under the Apache License like the rest of OpenStack.License: Apache License, Version 2.0PyPi- package installationOnline DocumentationBlueprints- feature specificationsBugs- issue trackingSourceSpecsHow to ContributeContents:Command-line APIPython APICommand-line APIInstalling this package gets you a shell command,cyborg, that you
can use to interact with any Rackspace compatible API (including OpenStack).You’ll need to provide your OpenStack username and password. You can do this
with the--os-username,--os-passwordand--os-tenant-nameparams, but it’s easier to just set them as environment variables:export OS_USERNAME=openstack
export OS_PASSWORD=yadayada
export OS_TENANT_NAME=myprojectYou will also need to define the authentication url with--os-auth-urland the version of the API with--os-accelerator-api-version. Or set them
as environment variables as well,OS_ACCELERATOR_API_VERSION=1. If you
are using Keystone, you need to set theOS_AUTH_URLto the keystone
endpoint:export OS_AUTH_URL=http://controller:5000/v3
export OS_ACCELERATOR_API_VERSION=1Since Keystone can return multiple regions in the Service Catalog, you
can specify the one you want with--os-region-name(orexport OS_REGION_NAME). It defaults to the first in the list returned.You’ll find complete documentation on the shell by runningcyborg helpPython APIThere’s also a complete Python API, but it has not yet been documented.Quick-start using keystone:# pass auth plugin and session to Client init.
# service_parameters contains servive_name, service_type, interface and
# region name.
>>> from cyborgclient.v1 import client
>>> nt = client.Client(auth=auth,session=_SESSION,**service_parameters)
>>> nt.accelerators.list()
[...]See release notes and more athttps://docs.openstack.org/python-cyborgclient/latest/.
Package: python-dace-client
python-dace-clientThis API provides code to call DACE backend with simple methods.
To install it do the following :pip install python-dace-clientYou can now use dace apiLogin to APITo log into the API, create a file .dacerc in your home directory with the following content :[user]
key = apiKey:_Your api key_To create an API Key, go onhttps://dace.unige.ch-->profile-->Generate a new API keyThen copy the key and fill it into .dacerc fileIf no file is found, you requests will be public
Package: python-daemon
This library implements the well-behaved daemon specification ofPEP 3143, “Standard daemon process library”.A well-behaved Unix daemon process is tricky to get right, but the
required steps are much the same for every daemon program. ADaemonContextinstance holds the behaviour and configured
process environment for the program; use the instance as a context
manager to enter a daemon state.Simple example of usage:import daemon

from spam import do_main_program

with daemon.DaemonContext():
    do_main_program()Customisation of the steps to become a daemon is available by
setting options on theDaemonContextinstance; see the
documentation for that class for each option.
Package: python-daemon-3K
This library implements the well-behaved daemon specification ofPEP 3143, “Standard daemon process library”.A well-behaved Unix daemon process is tricky to get right, but the
required steps are much the same for every daemon program. ADaemonContextinstance holds the behaviour and configured
process environment for the program; use the instance as a context
manager to enter a daemon state.Simple example of usage:import daemon

from spam import do_main_program

with daemon.DaemonContext():
    do_main_program()Customisation of the steps to become a daemon is available by
setting options on theDaemonContextinstance; see the
documentation for that class for each option.Source:https://github.com/jbvsmo/python-daemon