Saravanan666/pypi-org huggingface dataset:
Package: candleboy
CandleBoyCrypto exchange indicator applicationNotesOnly exchange is Phemex so far, they require specific symbols for SPOT and FUTURESPOT Symbols start withsand are handled in USDT ex. sBTCUSDTFUTURE Symbols are all formatted as soBTC/USD:USDCan create symbols withsymbolmethodInstallationRequires TA-Lib which may be difficult to installHere is their install docshttps://mrjbq7.github.io/ta-lib/install.htmlpip install candleboyUsageInstantiationfrom candleboy.core import CandleBoy

# Only exchange at the moment is phemex
# Verbose shows logging
client = CandleBoy(exchange='phemex', verbose=True)

# Turn logging on/off
client.verbose()
client.silent()

# Access current exchange property
print(client.exchange)Get a list of all available timeframes for an exchangeclient.timeframes()Retrieve Open, High, Low, Close, Volume data from exchangeSome exchanges may return different valuesRetrieves 1000 candles for phemex# Create symbol first
symbol = client.symbol(base='BTC', quote='USD', code='future') # BTC/USD:USD

timestamps, open, high, low, close, volume = client.ohlcv(symbol=symbol, tf='1m')

# Use a start at date
date = '2021-12-29' # YEAR-MONTH-DATE
timestamps, open, high, low, close, volume = client.ohlcv(symbol=symbol, tf='1m', since=date)Get Moving Average Convergence/Divergence Indicator Valuessymbol = client.symbol(base='BTC', quote='USD', code='future')
_, _, _, _, close, _ = client.ohlcv(symbol, '1m')
macd, signal, histogram = client.macd(close)

# May optionally change parameters (default is 12, 26, 9)
fastperiod = 9
slowperiod = 12
signalperiod = 3

macd, signal, histogram = client.macd(close, fastperiod, slowperiod, signalperiod)Get Exponential Moving Average Indicator Valuessymbol = client.symbol(base='BTC', quote='USD', code='future')
_, _, _, _, close, _ = client.ohlcv(symbol, '1m')
ema = client.ema(close)

# May optionally change parameters (default is 200)
timeperiod = 20

ema = client.ema(close, timeperiod)Get Stochastic Indicator Valuessymbol = client.symbol(base='BTC', quote='USD', code='future')
_, _, high, low, close, _ = client.ohlcv(symbol, '1m')
slowk, slowd = client.stoch(high, low, close)

# May optionally change parameters (default is 5, 3, 0, 3, 0)
fastk_period = 5
slowk_period = 3
slowk_matype = 0
slowd_period = 3
slowd_matype = 0

slowk, slowd = client.stoch(high, low, close, fastk_period, slowk_period, slowk_matype, slowd_period, slowd_matype)Get ADX Indicator Valuessymbol = client.symbol(base='BTC', quote='USD', code='future')
_, _, high, low, close, _ = client.ohlcv(symbol, '1m')
adx = client.adx(high, low, close)

# May optionally change parameters (default is 14)
timeperiod = 14

adx = client.stoch(high, low, close, timeperiod)Get MESA Indicator Valuessymbol = client.symbol(base='BTC', quote='USD', code='future')
_, _, _, _, close, _ = client.ohlcv(symbol, '1m')
mama, fama = client.mesa(close)

# May optionally change parameters (default is 0.5, 0.05)
fastlimit = 0.5
slowlimit = 0.05

mama, fama = client.mesa(close, fastlimit, slowlimit)TestRuns the tests on the CandleBoy modulemake test
Package: candle-bus
Candle Interface as Python Can pluginA plugin developed forpython-canwithcandle-driverInstallpip install candle-busUsageimportcanbus=can.interface.Bus(bitrate=1000000,bustype='candle')# sendmsg=can.Message(arbitration_id=0x202,data=[0,1,2,3,4,5,6,7])bus.send(msg)#receivemessage=bus.recv()
Package: candle-driver
candle_driverPython wrapper for the candle (gs_usb) windows driver which is publishedhere.Used to communicate with candleLight,CANable(with candleLightfirmware) CAN-USB adapters.Example usageimportcandle_driver# lists all available candle devicesdevices=candle_driver.list_devices()ifnotlen(devices):print('No candle devices found.')exit()print('Found{}candle devices.'.format(len(devices)))# use first availabel devicedevice=devices[0]print('Device path:{}'.format(device.path()))print('Device name:{}'.format(device.name()))print('Device channels:{}'.format(device.channel_count()))# open device (blocks other processes from using it)device.open()print('Device timestamp:%d'%device.timestamp())# in usec# open first channelch=device.channel(0)ch.set_bitrate(1000000)# or# ch.set_timings(prop_seg=1, phase_seg1=12, phase_seg2=2, sjw=1, brp=3)# start receiving datach.start()# normal framech.write(10,b'abcdefgh')# extended framech.write(10235|candle_driver.CANDLE_ID_EXTENDED,b'abcdefgh')# wait 1000ms for datatry:frame_type,can_id,can_data,extended,ts=ch.read(1000)print('Received{}from ID{}at{}'.format(can_data,can_id,ts))exceptTimeoutError:print('CAN read timeout')# close everythingch.stop()device.close()LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details.Windows C driver is licensed under the GPLv3 License - see theLICENSEfile for details.AcknowledgmentsHubert Denkmairfor the Windows C driver.
Package: candlelight
candelightContains helpers for computer vision and natural language processing.Based on PyTorch and Numpy.IntentI'm creating this package to handle base structures and helpers I'm using between different projets. It is a work in progress and shall be filled over the next months and years.using PoetryAdd a packagepoetry add package_nameRun a script:poetry run python your_script.pyRun tests:poetry run pytestOpen in sub shell:poetry shellActivate virtual env manually:source $(poetry env info --path)/bin/activateDisclaimerUse with caution as this not a stable release. I suggest that you copy past code that is of interest for you in your project for now.
Package: candle-nn
InstallationFrom thecandle-pyo3directory, enable a virtual env where you will want the
candle package to be installed then run.maturindevelop-rpythontest.pyGenerating Stub Files for Type HintingFor type hinting support, thecandle-pyo3package requires*.pyifiles. You can automatically generate these files using thestub.pyscript.Steps:Install the package usingmaturin.Generate the stub files by running:python stub.pyValidation:To ensure that the stub files match the current implementation, execute:python stub.py --check
Package: candleplot-trade
base trading bot. mathematics of mechanical trading systems#This simple library allows to count and to plot several indicators.#Supported indicators:
#'ivar', 'atr', 'macd', 'rsi', 'bollinger', 'aroon', 'stohasctic'#Supported candles:
#'black_maribozu', 'white_maribozu', 'solders', 'crows'#example of usage:importingfrom candleplot_trade_library import candleplotfigurescreating instanceCPF = candleplotfigures(ticker = 'BTC-USD', # 'BTC-USD', 'GOOG'
period = "1d",
# start= '2021-05-25 14:38:00-04:00',
interval = "1m",
html_log = True,
full_console_log = True,
buy_commission = 0.003,
sell_commission = 0.003)getting indicators plotCPF.indicators.atr(TR = [14, 100])CPF.indicators.macd(EMA1 = 12, EMA2 = 26, EMA_signal = 9)CPF.indicators.rsi(EMA1 = 14, EMA2 = 20)CPF.indicators.bollinger(WINDOW = 20, K = 2)CPF.indicators.ivar(WINDOW = 10)CPF.indicators.aroon(WINDOW = 14)CPF.indicators.stohasctic(WINDOW = 5, EMA1 = 3, EMA2 = 3)CPF.plot(['all'])getting candle plotCPF.candles.black_maribozu(percent_up = 0.1, percent_down = 0.1)CPF.candles.white_maribozu(percent_up = 0.1, percent_down = 0.1)CPF.candles.three_white_solders(percent = 0.5)CPF.candles.three_black_crows(percent = 0.5)CPF.plot(['white_maribozu', 'black_maribozu', 'three_white_solders', 'three_black_crows'])getting plot for everything in libraryCPF.plot(['all'])defining indicatorsindicators = [
'ivar',
'atr',
'macd',
'rsi',
'bollinger',
'aroon',
'stohasctic',
'stohasctic_sma',
'black_maribozu', 'white_maribozu',
'solders', 'crows'
]defining strategy (though its only one by now)CPF.set_traid_strategy('simple', indicators = indicators, money = 300000)run test trade for previous periodsCPF.trade_several(start_idx = 220)get profit by each indicatorCPF.train(end = None, money = 100000)run trade in real timeCPF.start(refresh_time = 5)Link to github pagehttps://github.com/zungl/base-trading-bot.mathematics-of-mechanical-trading-systemsLink to piphttps://pypi.org/project/candleplot-trade/
Package: candlestick-patterns-subodh101
candlestick-patterns (1.1.0)Candlestick patterns detectorAvailable patternsInverted HammerHammerHanging manBearish/Bullish HaramiDark cloud coverDojiDoji StarDragonfly dojiGravestone dojiBearish engulfingBullish engulfingMorning starMorning star dojiPiercing patternRain dropRain drop dojiStarShooting starHow to useDataframe requirementsDataframe must contain open, high, low and close pricesOpen, high, low and close prices must be in numeric type.Dataframe Example:timeopenhighlowclose2019-12-24 00:00:007317.37436.687157.047255.772019-12-25 00:00:007255.777271.777128.867204.632019-12-26 00:00:007205.0174357157.1272022019-12-27 00:00:0072027275.867076.427254.742019-12-28 00:00:007254.777365.017238.677316.142019-12-29 00:00:007315.367528.4572887388.24Codefromcandlestickimportcandlestickdf=candlestick.inverted_hammer(df,target='result')ResultTresultopenhighlowclose2019-12-24 00:00:00False7317.37436.687157.047255.772019-12-25 00:00:00False7255.777271.777128.867204.632019-12-26 00:00:00True7205.0174357157.1272022019-12-27 00:00:00False72027275.867076.427254.742019-12-28 00:00:00False7254.777365.017238.677316.142019-12-29 00:00:00False7315.367528.4572887388.24"True" indicates that pattern is detected at that candleParametrsAll pattern detection methods receive 3 parametrs:target (String) - Indicates the column to which the result of detection is saved as boolean.is_reversed (Bool) - Pass True if rows in dataframe are in time descending order, otherwise False. Deafult is False.ohlc (List) - Pass list of strings which indicates the column names of open/high/low/close prices in dataframe. Default: ["open", "high", "low", "close"].Releasing instructionshttps://packaging.python.org/guides/distributing-packages-using-setuptools/#packaging-your-projectTo colaborate on the candlestick patternEmail me atsubodh.pushkar@gmail.com
Package: candl-like
CMB Analysis With A Differentiable LikelihoodAuthors:L. Balkenhol, C. Trendafilova, K. Benabed, S. GalliPaper:Source:https://github.com/Lbalkenhol/candlDocumentation:candl is a differentiable likelihood framework for analysing CMB power spectrum measurements.
Key features are:JAX-compatibility, allowing for fast and easy computation of gradients and Hessians of the likelihoods.The latest public data releases from the South Pole Telescope and Atacama Cosmology Telescope collaborations.Interface tools for work with other popular cosmology software packages (e.g. Cobaya and MontePython).Auxiliary tools for common analysis tasks (e.g. generation of mock data).candl supports the analysis of primary CMB and lensing power spectrum data (\(TT\),\(TE\),\(EE\),\(BB\),\(\phi\phi\),\(\kappa\kappa\)).Installationcandl can be installed with pip:pip install candl-likeAfter installation, we recommend testing by executing the following python code:import candl.tests
candl.tests.run_all_tests()This well test all data sets included in candl.JAXJAXis a Google-developed python library.
In its own words:“JAX is Autograd and XLA, brought together for high-performance numerical computing.”candl is written in a JAX-friendly way.
That means JAX is optional and you can install and run candl without JAX and perform traditional inference tasks such as MCMC sampling with Cobaya.
However, if JAX is installed, the likelihood is fully differentiable thanks to automatic differentiation and many functions are jitted for speed.DocumentationYou can find the documentationhere.Citing candlIf you use candl please cite therelease paper. Be sure to also cite the relevant papers for any samplers, theory codes, and data sets you use.
Package: candonga
Candonga framework is meant to be used to create an tornado project in order to provide a REST API to your project. It is inspired to provide a REST API to your legacy code.Once a new Candonga project is created, it will contain:Script to deploy the project on amazon web service.Support for logging using logstash (open source log management)Support for collecting stats using Statsd/GraphiteInstalling Candonga:$ pip install candongaUsage:$ candonga create-project <project-name>
Package: candor
candor-pyPython Library for Candor Services' Project Mercury API.Documentationcandor.pyrequires Python 3.8 or higher.
You can add the library to your project with:pip install candorYour public API key can be found athttps://dashboard.candorservices.net/api-dashboard.Verifying a licenseYou can verify if a license is valid using this function:valid=verifyLicense(PUB_API_KEY,LICENSE_KEY,PRODUCT_ID);You'll want to grab your product ID fromhttps://dashboard.candorservices.net/license-managerby creating a new product and then adding a license. The license key should be added by the client, using some sort of config (we recommend remote configs, see below!). Assign your license to your client using the tools in the dashboard.Retrieving a remote configRemote configs allow clients to easily configure parts of their apps without having to mess with complicated or messy configuration files. You can use this function:obj=candor.getConfig(PUB_API_KEY,CONFIG_ID);to retrieve the remote config as an object. You can create a remote config athttps://dashboard.candorservices.net/config-manager.Need support?If you need help with anything to do with this project, then please see theproject-mercury-supportchannel in Discord under the FREELANCERS category.
Package: candy
# candyThe Package/Library Manager for Android Apps`candy` can automatically add permissions and gradle dependencies to the app project.To install candy, simply type: `pip install candy`.## App developerAn example to use candy to install a new package to the app project```cd /path/to/your/projectcandy install acra```The full usage guide:```candy - the package/library manager for Android appsCommands:install <package_name> - install a new package to the current projectuninstall <package_name> - uninstall a given package from the current projectsearch <package_name> - search a package in all known registries```## Package/Library developerIf you are a package/library developer and want `candy` to automate installation, you canprepare a `candy.json` file under your package root, like this:```json{"name": "acra","version": "4.7.0","description": "Application Crash Reports for Android","author": "Kevin Gaudin","contributors": [],"keywords": ["bugreporting","android","devtool"],"license": "Apache License v2","usageGuide": "https://github.com/ACRA/acra/wiki/BasicSetup","require_permissions": ["android.permission.INTERNET","android.permission.READ_PHONE_STATE"],"url": "https://github.com/ACRA/acra","gradle_depends": ["ch.acra:acra:4.7.0+"]}```If you have experience with `npm`, you should find this familiar with [`package.json`](http://browsenpm.org/package.json)
Package: candy-bar
CandyBarA Progress Bar inspired by Arch pacman withILoveCandyoption enabled.InstalationPythonManual instalationClone the repository, build, and install the package:gitclonehttps://github.com/MacDumi/CandyBar.gitcdCandyBar
pipinstall.Install from PyPipipinstallcandy_barC++Don't likePython? Use it withC++!
Clone the repository and either install the library or build against it:gitclonehttps://github.com/MacDumi/CandyBar.gitcdCandyBar
make&&makeinstallUsageImport the package and create the progress bar object:# Pythonfromcandy_barimportCandyBarcb=CandyBar(100,"Progress")// C++#include"candybar.h"...CandyBarcb(100,"Progress");ParametersParameterDefaultDescriptiontotal100Defines the value corresponding to 100%messageNoneWrite some text at the beginning of the linewidthconsole sizeSize (in chars) of the bar, by default max console sizeleft_justifiedTrueDefines the justification of the bar (not the message text)disableFalseWhen set, the progress bar will be disabledTo update the position of the progress bar use theupdatemethod:# Pythontotal=100foriinrange(total+1):# Your code goes herecb.update(i)// C++inttotal=100;for(inti=0;i<=total;i++){// Your code goes herecb.update(i);}The progress bar can be disabled:# Pythondeffunction(verbose):...cb.disable(notverbose)...// C++voidfunction(boolverbose){...cb.disable(!verbose);...}Thetotalvalue, themessage, and thejustificationof the progress bar can be changed:# Pythoncb.set_total(150)cb.set_message("Another message")cb.set_left_justified(False)// C++cb.set_total(150);cb.set_message("Another message");cb.set_left_justified(false);Like what I do?Buy me coffee85jJPcfLPZRUKm3Re6qHZsKBZskVS2tYMWFoY5sYXUSQJzqzqpuPFepXMtqTKCRfuhYXaiJ3zQVeRPDYJUfepVjnJDpApH5
Package: candy-board-cli
CANDY Board service CLIA CLI tool to communicate with a CANDY Board service running on systemdpip Installation$ pip install candy-board-clipip Uninstallation$ pip candy-board-cliDevelopmentPrerequisitespandocpypandocOn Mac OS:$ brew install pandoc
$ pip install pypandocLocal Installation test$ ./setup.py install --record files.txtLocal Uninstallation test$ cat files.txt | xargs rm -fCreate local package$ tar czvf candy-board-cli.tgz --exclude "./.*" --exclude build --exclude dist *Install the local package# pip command
$ pip install --no-cache-dir ./candy-board-cli.tgz 

# python command
$ python -m pip install --no-cache-dir ./candy-board-cli.tgz 

# python3 command
$ python3 -m pip install --no-cache-dir ./candy-board-cli.tgzRevision history4.0.0Add Python 3 (3.7+) support (still working on Python 2.7)3.3.0Add an option to disable color escape (SetNO_COLOR=1for disabling the message coloring)3.2.2Fix a pypi upload error3.2.1Fix a KeyError3.2.0Add a new option (-q) tognss startto enable QZSS, GLONASS and BeidouAdd a new option (-a) tognss startto enable QZSS, Galileo, GLONASS and Beidou3.1.0Make--suspendand--resumeoptions available forapn ls,network show,sim showandmodem showcommands3.0.0Add new categories,connectionandgnssAdd new actions inservicecategory2.0.0Change license to Apache Software License 2.0Add a new option (-o) for providing network operator type when setting an APNAdd a new option (-o) for passing optional arguments tomodem showandmodem resetcommands1.0.5Fix an issue where the shebang line in the published script pointed to a machine specific path (not to publish bdist_wheel)1.0.3Make pypandoc dependency optional1.0.2Fix an issue where the code could exit after opening a socket which caused socket error on the socket server1.0.1Don't have users run modem reset command casually1.0.0Initial public release0.0.1Initial beta release
Package: candy.candy
Introduction------------This library, given an user, gets his/her videos saved on youtube.For each video gets his name and his id.Then, asks to pwnyoutube to generate a valid url for the "High Quality Video (MP4)"Downloads it in a specified folder.that's it!Howto use it------------NB this test takes some minutes to run due to download time:>>> from candy.candy import Candy>>> import osCreate a Candy object:>>> c = Candy('massimoazzolini', howmany=1)>>> namedownloadedvideo = u'Plone video used for testing purposes'Let's download it:>>> c.run()Analyzing page 1downloaded Plone video used for testing purposes>>> filename = '%s.mp4' % (namedownloadedvideo.replace('/','-'), )>>> filename in os.listdir(os.path.abspath(os.curdir))True>>> os.remove(filename)Disclaimers------------I'm not affiliated in any way with both pwnyoutube.com and YouTube.com."YouTube" is a copyright of YouTube, LLC."PWNyoutube": see http://pwnyoutube.com/Changelog=========0.1.2 - urlopen did not conviced me at all--------------------------- used urlretrieve0.1.1 - download them all--------------------------- if the file is not fully downloaded, retry0.1.0 - quick and dirty----------------- Initial release
Package: candypen
candypenA tiny tool module for multi-process programs.Installcandypen could be easily installed using pip:$pipinstallcandypenExampleimportrequestsfromcandypenimportconcurrent# Define a source list for task function to parse.defget_source():"""Return a url list."""return['http://www.baidu.com'foriinrange(500)]# Define the task function and add a thread_func decorator# The thread_func decorator needs a source list, and other options (num_workers, has_result ...) as arguments@concurrent.thread_func(source=get_source(),num_workers=100,has_result=True)defmy_task(task_source):"""A customized task function.Process the task_source and return the processed results.Arguments:param task_source: the elem in the source list, which is a url here.:rtype: (int) A http status code."""url=task_sourceres=requests.get(url,timeout=5)returnres.status_code# Execute the task function.results=my_task()print(results)Results of the example is as below:[Info]500tasksintotal.[✔]100%━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━500/500[eta-0:00:00,0.9s,542.9it/s][200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,...,200,200,200,200]LicenseLicensed under theMIT License.
Package: candyshop
An assistant to determine if all your dependencies are declared properly in your odoo module.Current version: 0.2.2Candyshop is a helper to determine if all your dependencies are declared
properly. A Candyshop is a place where you can pick sweets and candies from
a list of wonderful options, but choose wisely.For more information, please read thefull documentation.FeaturesAccess an Odoo Module as an object abstraction.Get all module references from all xml files of a module.Generate and clone the dependency tree of a group of modules (bundle).Generate a virtual enviroment where you can add group of modules.Determine which Odoo Modules declare a dependency to another module that is not
present in the environment.Determine which XML files make reference to an Odoo Module that is not present
in the environment.Getting startedInstallationThecandyshopprogram is written in python and hosted onPyPI. Therefore, you can use
pip to install the stable version:$ pip install --upgrade candyshopIf you want to install the development version (not recomended), you can install
directlty from GitHub like this:$ pip install --upgrade https://github.com/LuisAlejandro/candyshop/archive/master.tar.gzUsageSeeUSAGE.rstfor details.Getting helpIf you have any doubts or problems, suscribe to ourDiscord serverand ask for help. You can also
ask your question onStackOverflow(tag itcandyshop) or drop me an email atluis@collagelabs.org.ContributingSeeCONTRIBUTING.rstfor details.Release historySeeHISTORY.rstfor details.LicenseCopyright 2016-2022, Candyshop Developers (readAUTHORS.rstfor a full list of copyright holders).Released under aGPL-3 License.Made with 💖 and 🍔Webluisalejandro.org· GitHub@LuisAlejandro· Twitter@LuisAlejandro
Package: candystore
candystoreFactories for randomised AFL data sets, selling candy to your unit tests.The shape and content of the data is based on what's returned by the R packagefitzRoy, which gets most of its data from the sitesFootywireandAFLTables. The column names are converted tosnake_casefor convenience.Installationpip3installcandystorefromcandystoreimportCandyStorecandy=CandyStore()candy.fixtures()DocumentationMore-detailed documentation can be found athttps://candystore.readthedocs.io/en/latest/Setting up dev environmentInstall DockerBuild Docker image for integration tests:dockerbuild-tcandystore_tests.pip3install-rrequirements.txtRun tests with the script file./scripts/tests.sh
Package: candy-wrapper
Candy WrapperCandy Wrapper is a "sticky" wrapper for any object, which adds syntax surgar.This wrapper wraps any object, and give the ability
to add attributes to the object like a dictionary,
much in the same way that pandas dataframs work.InstallationYou can install candy_wrapper with pip:pip install candy_wrapperOr with poetry:poetry add candy_wrapperUsagefromcandy.candy_wrapperimportWrapperfoo=SomeClass()# Wrap an objectcandy=Wrapper(foo)# Add an attribute to the objectfoo['bar']=42# Access the attributeprint(foo.bar)# prints 42# You can also use setattrsetattr(foo,'hey',420)# And getattrprint(foo['hey'])# prints 420