Saravanan666/pypi-org huggingface dataset:
Package: jerryExcel
#Demo##新建Excel文件
import os
import jerryExcel# step 1
excel=jerryExcel.ExcelUtil()
path=os.getcwd()
# 设置文件保存路径
filepath=os.path.join(path,"test.xls")
# 传入文件路径 以及表名
newExcel=excel.NewExcelFile(filepath,"sheet1")

# step 2 准备写入的数据
content=["test1","test2","test3"]
newExcel.write(content)
# 传空值相当于换行
newExcel.write()
newExcel.write(content)
# step 3 保存
newExcel.save()追加excel数据# 追加excel文件

# step 1 设置文件路径
excel=jerryExcel.ExcelUtil()
path=os.getcwd()
filepath=os.path.join(path,"test.xls")
addtion=excel.AddtionWrite(filepath)
# step 2 写入数据
content=["test1","test2","test3"]
addtion.write(content)
addtion.write()
addtion.write(content)
# step 3 保存
addtion.save()读取excel数据# step 1 设置文件路径
excel = jerryExcel.ExcelUtil()
path = os.getcwd()
filepath = os.path.join(path, "test.xls")
cursor = excel.Cursor(filepath)
# step 2 读取数据
datas = cursor.read(ignoreFirstLine=False, index=0)
# step 3 遍历输出数据
for data in datas:
    print(data)
Package: jerryrigserialgen
jerry-rigged license system with UUID check (preventing more than one installation) and expiration dateTested against Python 3.9.16 (Anaconda) -  Windows 10jerry-rigged???Fromhttps://www.urbandictionary.com/define.php?term=jerry-rigjerry-rig - To put together in a way that works, but is contrary to the "norm" or specific directions (instructions)The serial number system can be cracked easily (which one can't?), but it should be secure enough for any average user.pip install jerryrigserialgen - if you want to generate serial numberspip install jerryrigserialver - if you want to verify serial numbers (client)fromjerryrigserialgenimportSerialgenerator,serialgenconfig# transfer.sh seems to be offline (https://github.com/dutchcoders/transfer.sh/issues/556), that's why i added this:serialgenconfig.transfershdomain='https://temp.sh'# Generates serial numbers# pip install jerryrigserialgenseri=Serialgenerator(product="myproduct",# Name of the productsavefolder="c:\\mynicefolder\\new",# just for the record - files are not neededhardcodedpasswort_transfer="topsecret",# for transfer.sh - must be hard-coded in the app the client useshardcodedpasswort_url="5248614597016233",# 16 digits to encrypt the URL - must be hard-coded in the app the client usesaddinformationtoserial=("info1","info2",),# extra information you want to transmit to the app the client useslicensedays=17,# duration of the license - from today onsubtract_from_time=0,# for debugging - to create expired licenses)serialnumber,debuginfo=seri.upload()print(serialnumber)# This is the serial number you are going to give to your client, like: 566978376a4b356956775955427a4779636e533856705a59534d314369387735526e59744230396f6c6771795256675a31365a756947344753616d3757536d5961704f736a362f63506871724a792f3845664d4845773d3d475ac18a6927938b4ede1613058f253e# output# File written to: c:\mynicefolder\new\2023_03_23_09_23_18_28484401.cfg# 566978376a4b356956775955427a4779636e533856705a59534d314369387735526e59744230396f6c6771795256675a31365a756947344753616d3757536d5961704f736a362f63506871724a792f3845664d4845773d3d475ac18a6927938b4ede1613058f253e########################################################################### Check serial numbers - client's PC# pip install jerryrigserialverfromjerryrigserialverimportcheck_serialisvalid,daysleft,duration_of_license,product,otherinfos=check_serial(hardcodedpasswort_transfer="topsecret",# hardcodedpasswort_transfer for transfer.sh - must be hard-codedhardcodedpasswort_url="5248614597016233",# 16 digits to encrypt the url - must be hard-codedserialnumber=serialnumber,notvalidanymore=f"The license you're using is not valid anymore. It expired %d day[s] ago",stillvalid=f"The license you're using is valid for %d more day[s].",serialusedanotherpc="The license has been used on another PC",)print(isvalid,daysleft,duration_of_license,product,otherinfos)# The license you're using is valid for 17 more day[s].# True 17 17 myproduct ['info1', 'info2']# Compile the code of your app using PyInstaller or some other tool
Package: jerryrigserialver
jerry-rigged license system with UUID check (preventing more than one installation) and expiration dateTested against Python 3.9.16 (Anaconda) -  Windows 10jerry-rigged???Fromhttps://www.urbandictionary.com/define.php?term=jerry-rigjerry-rig - To put together in a way that works, but is contrary to the "norm" or specific directions (instructions)The serial number system can be cracked easily (which one can't?), but it should be secure enough for any average user.pip install jerryrigserialgen - if you want to generate serial numberspip install jerryrigserialver - if you want to verify serial numbers (client)fromjerryrigserialgenimportSerialgenerator# Generates serial numbers# pip install jerryrigserialgenseri=Serialgenerator(product="myproduct",# Name of the productsavefolder="c:\\mynicefolder\\new",# just for the record - files are not neededhardcodedpasswort_transfer="topsecret",# for transfer.sh - must be hard-coded in the app the client useshardcodedpasswort_url="5248614597016233",# 16 digits to encrypt the URL - must be hard-coded in the app the client usesaddinformationtoserial=("info1","info2",),# extra information you want to transmit to the app the client useslicensedays=17,# duration of the license - from today onsubtract_from_time=0,# for debugging - to create expired licenses)serialnumber,debuginfo=seri.upload()print(serialnumber)# This is the serial number you are going to give to your client, like: 566978376a4b356956775955427a4779636e533856705a59534d314369387735526e59744230396f6c6771795256675a31365a756947344753616d3757536d5961704f736a362f63506871724a792f3845664d4845773d3d475ac18a6927938b4ede1613058f253e# output# File written to: c:\mynicefolder\new\2023_03_23_09_23_18_28484401.cfg# 566978376a4b356956775955427a4779636e533856705a59534d314369387735526e59744230396f6c6771795256675a31365a756947344753616d3757536d5961704f736a362f63506871724a792f3845664d4845773d3d475ac18a6927938b4ede1613058f253e########################################################################### Check serial numbers - client's PC# pip install jerryrigserialverfromjerryrigserialverimportcheck_serialisvalid,daysleft,duration_of_license,product,otherinfos=check_serial(hardcodedpasswort_transfer="topsecret",# hardcodedpasswort_transfer for transfer.sh - must be hard-codedhardcodedpasswort_url="5248614597016233",# 16 digits to encrypt the url - must be hard-codedserialnumber=serialnumber,notvalidanymore=f"The license you're using is not valid anymore. It expired %d day[s] ago",stillvalid=f"The license you're using is valid for %d more day[s].",serialusedanotherpc="The license has been used on another PC",)print(isvalid,daysleft,duration_of_license,product,otherinfos)# The license you're using is valid for 17 more day[s].# True 17 17 myproduct ['info1', 'info2']# Compile the code of your app using PyInstaller or some other tool
Package: jersey
The Jersey Core libraries are primarily a set of extensions to the Twisted
networking framework [http://twistedmatrix.com].   The following modules are
provided:jersey.cli –  Provides a framework for writing lightweight, pluggableCommand Line utilities.  Extends twisted.application.jersey.log –  Extends twisted.python.log with additional logging methodsand an Observer that can filter events based on log level.jersey.inet – Internet Address representations.This software is distributed under a 3-Clause BSD license.  See the LICENSE file
for details.
Package: jertl
jertl - A minimum viable package for processing structured dataWhere developers declaratively define and execute common operations on complex data structures.Operations are specified using a mini-language in which target structures are visually similar to their textual representation.ExamplesMatchingJertl can be used to verify the structure of data, select nested values, or both.>>>movie={"title":"Pinocchio","MPAA rating":"PG"}>>>>>>match=jertl.match('{"title": title, "MPAA rating": "PG"}',movie)>>>>>>ifmatchisnotNone:...print(match.bindings['title'])...PinocchioFillingJertl can also be used as a template library.>>>jertl.fill('{"name": name, "age": age, "status": status}',...name="Ray",...age=66,...status='employed'){'name':'Ray','age':66,'status':'employed'}TransformingData transformations are defined using representations of the source and target data.>>>retire='{"status": "employed", **the_rest} --> {"status": "retired", **the_rest}'>>>>>>ray={'name':'Ray','age':66,'status':'employed'}>>>>>>transformation=jertl.transform(retire,ray)>>>transformation.filled{'status':'retired','name':'Ray','age':66}CollatingYou can use Jertl to verify relationships between data structures.>>>supervises='''...     supervisor ~ {"underlings": [*_, name, *_]}...     employee   ~ {"name": name}...     '''>>>>>>jeremy={'name':'Jeremy'}>>>jeff={'name':'Jeff','underlings':['Jimmy','Johnny','Jeremy','Joe']}>>>>>>collation=jertl.collate(supervises,supervisor=jeff,employee=jeremy)>>>collationisnotNoneTrueInferringCombining all these operations gives you an inference engine.>>>rule='''...    //...    // Create a list of movies with their ratings explained...    //...    movies       ~ [*_, {"title": title, "MPAA rating": rating},        *_]...    MPAA_ratings ~ [*_, {"rating": rating, "explanation": explanation}, *_]... -->...    movie       := {"title": title, "contents": explanation}...'''...>>>movies=[{'title':'Toy Story','MPAA rating':'G'},...{'title':'South Park: Bigger, Longer & Uncut','MPAA rating':'NC-17'}]...>>>MPAA_ratings=[{'rating':'G',...'summary':'GENERAL AUDIENCES',...'explanation':'Nothing to offend parents for viewing by children.'},...{'rating':'PG',...'summary':'PARENTAL GUIDANCE SUGGESTED',...'explanation':'May contain some material parents might not like for their young children'},...{'rating':'PG-13',...'summary':'PARENTS STRONGLY CAUTIONED',...'explanation':'Some material may be inappropriate for pre-teens.'},...{'rating':'R',...'summary':'RESTRICTED',...'explanation':'Contains some adult material.'},...{'rating':'NC-17',...'summary':'NO ONE 17 AND UNDER ADMITTED',...'explanation':'Clearly for adults only.'}]...>>>forinferenceinjertl.infer_all(rule,movies=movies,MPAA_ratings=MPAA_ratings):...print(inference.fills['movie'])...{'title':'Toy Story','contents':'Nothing to offend parents for viewing by children.'}{'title':'South Park: Bigger, Longer & Uncut','contents':'Clearly for adults only.'}Installationpipinstalljertl
Package: jes4py
JES4py - a JES emulator for Python 3JES, the Jython Environment for
Students, is an educational IDE used in the Media Computation curriculum
developed by Mark Guzdial and Barbara Ericson at Georgia Tech. More details
on the curriculum are available athttp://www.mediacomputation.org/.Jythonis a Java implementation of Python 2.x
and was designed to allow rapid application development and scripting access
to Java functionality.JES4pyimplements a subset of JES
features that can be used in Python 3.x scripts.  The goal is to provide the
pedagogical assets of JES without requiring Jython or needing to use JES's IDE.PrerequisitesAn IDE (Integrated Development Environment) of your choice.Visual Studio Codeis recommended if you
have no preference.Python3.6 or higherA Supported OS: Windows, MacOS, LinuxInstalling JES4pyJES4py needs Python 3.6 or higher.  Before proceeding, find out how to run
Python 3 from the command line on your computer.  Usually this is done by
typingpythonorpython3at the command prompt.  You can check your
version withpython --versionorpython3 --version.Ideally you will be able to install JES4py using a single command: use eitherpython -m pip install -U jes4pyorpython3 -m pip install -U jes4pyIf this fails, it is probably due to some missing prerequisites on your system.
Study the error message for clues as to what is needed.  Trying to install the
prerequisite one-by-one may be helpful (usingpythonorpython3as
appropriate):python3 -m pip install -U wxPython
python3 -m pip install -U wave
python3 -m pip install -u simpleaudioOnce these are installed, rerun the commandpython3 -m pip install -U jes4pyto install the JES4py package.Using JES4pyTo use JES4py functions in a Python interactive session you should type the
following command at the Python prompt.from jes4py import *To access JES4py functions in from a Python program, you should include the
same line at the top of any file containing a Python program that uses JES4py
functions.  For example:from jes4py import *

filename = pickAFile()
print('Hello! You picked the file', filename)
Package: jes4py-NickWestcoast
jes4py - a JES emulator for Python 3JES, the Jython Environment for Students, is an educational IDE used in the Media Computation curriculum developed by Mark Guzdial and Barbara Ericson at Georgia Tech. More details on the curriculum are available athttp://www.mediacomputation.org/.Jythonis a Java implementation of Python 2.x and was designed to allow rapid application development and scripting access to Java functionality.Thejes4pyimplements a subset of JES features that can be used in Python 3.x scripts.  The goal is to provide the pedogocial assets of JES without requiring Jython or needing to use JES's IDE.PrerequisitesAn IDE (Integrated Development Environment) of your choiceVisual Studio Codeis recommended if you have no preference.Python3.x InstalledA Supported OS:  Windows, Linux, macOSInstallation of DependenciesSeveral dependencies need to be installed before you can use jes4py:PIL (the Python Image Library) or Pillow (an updated fork of PIL)wxPython (GUI toolkit for the Python language)Simpleaudio (Audio toolkit for Python 3)Instructions to do this are OS-dependent:WindowsNote: The pip and python command may vary between platforms and Python versions. Substitute the correct one for usages in these examples. Some possible variants are: python, python3, pip, pip3 and pip3.xThe following Python packages must be installed:Simpleaudiopip install simpleaudiowxPythonpip install -U wxPythonPillow (PIL: the Python Imaging Library)(This normally comes with wxPython so you should not need to install it separately)Mac OS-XNote: The pip and python command may vary between platforms and Python versions. Substitute the correct one for usages in these examples. Some possible variants are: python, python3, pip, pip3 and pip3.xSimpleaudiopip install simpleaudiowxPythonpip install -U wxPythonPillow (PIL: the Python Imaging Library)(This normally comes with wxPython so you should not need to install it separately)LinuxNote: The pip and python command may vary between platforms and Python versions. Substitute the correct one for usages in these examples. Some possible variants are: python, python3, pip, pip3 and pip3.xpython3 -m pip install --upgrade pip
python3 -m pip install --upgrade simpleaudio
python3 -m pip install --upgrade wx
python3 -m pip install --upgrade PillowUsing jes4pyUsers should include the following line at a Python 3.x command prompt
or in a Python 3.x script to make use of JES functions"from jes4py import *
Package: jesse
Algo-trading was 😵‍💫, we made it 🤩JesseJesse is an advanced crypto trading framework that aims tosimplifyresearchingand definingYOUR OWN trading strategies.Why Jesse?In short, Jesse is moreaccuratethan other solutions, and way moresimple.
In fact, it is so simple that in case you already know Python, you can get started today, inmatter of minutes, instead ofweeks and months.Hereyou can read more about Jesse's features and why you should use it.Getting StartedHead over to the "getting started" section of thedocumentation. The
documentation isshort yet very informative.Resources⚡️ Website🎓 Documentation🛟 Help center🎥 Youtube channel (screencast tutorials)💬 Discord communityScreenshotsCheck out Jesse'sYoutube channelfor tutorials that go through example strategies step by step.Here are a few screenshots just to get you excited:Backtest results:Example strategy code:Live trading (requireslive plugin):What's next?You can see the project'sroadmap here.Subscribeto our mailing list atjesse.tradeto get the good stuff as soon they're released. Don't worry, We won't send you spam—Pinky promise.How to contributeThank you for your interest in contributing to the project. The best way to contribute is byparticipating in the communityandhelping other users.You can also contribute by submittingbug reportsandfeature requestsor writing code (submitting PRs) which can be incorporated into Jesse itself.In that case, here's what you need to know:Before starting to work on a PR, pleasereach outto make sure italignswith theproject's roadmapandvision.If your PR makes changes to the source code, please make sure toadd unit tests. If you're not sure how to do that, just check out some of the already existingtests.First, you need to install Jesse from the repository instead of PyPi:# first, make sure that the PyPi version is not installedpipuninstalljesse# now install Jesse from the repositorygitclonehttps://github.com/jesse-ai/jesse.gitcdjesse
pipinstall-e.Now every change you make to the code will be affected immediately.After every change,make sureyour changes did notbreakany functionality byrunning tests:pytestDisclaimerThis software is for educational purposes only. USE THE SOFTWARE ATYOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUMENO RESPONSIBILITY FOR YOUR TRADING RESULTS.Do not risk money that you are afraid to lose. There might bebugsin the code - this software DOES NOT come withANY warranty.
Package: jesse-dydx-v3-python
Python client for dYdX (v3 API).The library is currently tested against Python versions 2.7, 3.4, 3.5, 3.6, 3.9, and 3.11.InstallationThedydx-v3-pythonpackage is available onPyPI. Install withpip:pipinstalldydx-v3-pythonGetting StartedTheClientobject can be created with different levels of authentication depending on which features are needed. For more complete examples, see theexamplesdirectory, as well asthe integration tests.Public endpointsNo authentication information is required to access public endpoints.fromdydx3importClientfromweb3importWeb3## Access public API endpoints.#public_client=Client(host='http://localhost:8080',)public_client.public.get_markets()Private endpointsOne of the following is required:api_key_credentialseth_private_keyweb3web3_accountweb3_provider## Access private API endpoints, without providing a STARK private key.#private_client=Client(host='http://localhost:8080',api_key_credentials={'key':'...',...},)private_client.private.get_orders()private_client.private.create_order(# No STARK key, so signatures are required for orders and withdrawals.signature='...',# ...)## Access private API endpoints, with a STARK private key.#private_client_with_key=Client(host='http://localhost:8080',api_key_credentials={'key':'...',...},stark_private_key='...',)private_client.private.create_order(# Order will be signed using the provided STARK private key.# ...)Onboarding and API key management endpointsOne of the following is required:eth_private_keyweb3web3_accountweb3_provider## Onboard a new user or manage API keys, without providing private keys.#web3_client=Client(host='http://localhost:8080',web3_provider=Web3.HTTPProvider('http://localhost:8545'),)web3_client.onboarding.create_user(stark_public_key='...',ethereum_address='...',)web3_client.eth_private.create_api_key(ethereum_address='...',)## Onboard a new user or manage API keys, with private keys.#web3_client_with_keys=Client(host='http://localhost:8080',stark_private_key='...',eth_private_key='...',)web3_client_with_keys.onboarding.create_user()web3_client_with_keys.eth_private.create_api_key()Using the C++ Library for STARK SigningBy default, STARK curve operations such as signing and verification will use the Python native implementation. These operations occur whenever placing an order or requesting a withdrawal. To use the C++ implementation, initialize the client object withcrypto_c_exports_path:client=Client(crypto_c_exports_path='./libcrypto_c_exports.so',...)The path should point to a C++ shared library file, built from Starkware'scrypto-cpplibrary (CMake target) for the particular platform (e.g. Linux, etc.) that you are running your trading program on.Running testsIf you want to run tests when developing the library locally, clone the repo and run:pip install -r requirements.txt
docker-compose up # In a separate terminal
V3_API_HOST=<api-host> toxNOTE:api-hostshould behttps://api.stage.dydx.exchangeto test in staging.
Package: jesse-ftx
FTX plugin for JesseThis is the initial release of the FTX driver for Jesse. At the moment, it is only meant for importing candles and running backtests.InstallationInstall by running:pipinstalljesse-ftxRegister your driverNow you need to tell Jesse where to find this driver. We do that by adding it as a driver for importing candles inplugins.pyfile that exists in the root of Jesse projects. Here is an example where I register a driver for the FTX exchange:fromjesse.modes.import_candles_mode.drivers.binanceimportBinancefromjesse.modes.import_candles_mode.drivers.binance_futuresimportBinanceFuturesfromjesse.modes.import_candles_mode.drivers.binance_inverse_futuresimportBinanceInverseFuturesfromjesse.modes.import_candles_mode.drivers.bitfineximportBitfinexfromjesse.modes.import_candles_mode.drivers.coinbaseimportCoinbasefromjesse.modes.import_candles_mode.drivers.testnet_binance_futuresimportTestnetBinanceFuturesfromjesse_ftximportFTXimport_candles_drivers={'Binance':Binance,'Binance Futures':BinanceFutures,'Binance Inverse Futures':BinanceInverseFutures,'Testnet Binance Futures':TestnetBinanceFutures,'Bitfinex':Bitfinex,'Coinbase':Coinbase,'FTX':FTX}Now I should be able to run import candles from FTX:jesseimport-candles'FTX''BTC-USDT''2012-06-04'Add new config values for running backtestsUsually the reason for importing candles in the first place is to run backtests on them. So we need to tell Jesse where to find the config values for our newly added exchange in order for it run backtests on it.We can do that by openingconfig.pyand coping and pasting values from an existing exchange such asBinance Futuresand changing the values according to our needs for out exchange:# https://www.ftx.com'FTX':{'fee':0.0004,# backtest mode only: accepted are 'spot' and 'futures''type':'futures',# futures mode only'settlement_currency':'USDT',# accepted values are: 'cross' and 'isolated''futures_leverage_mode':'isolated',# 1x, 2x, 10x, 50x, etc. Enter as integers'futures_leverage':3,# used for spot exchange only'assets':[{'asset':'USDT','balance':10_000},{'asset':'BTC','balance':0},],},