Saravanan666/pypi-org huggingface dataset:
Package: sigmatmpy
SIGMATMPYSIGMATMPY-library is an APIRequest driven trading and monitoring platform. Each functionality (trades, price etc.) is represented by it's own class covering all aspect of that functionality.Getting StartedInstallation$pipinstallsigmatmpyBasic functionsimportsigmatmpy# initualize APIRequest tokenusername='username'password='password'API=sigmatmpy.API(username,password)# open a live orderAPI.open_order('EURUSD-R',1,0.01,1.18245,3,0,0,'comment')# open a pending order (limit and stop order)API.open_order('EURUSD-R',3,0.01,1.18245,3,0,0,'comment')# modify a orderAPI.modify_order(2313839,1.18245,1.1825,1.1824,0)# check if open order succeedresult=API.open_order('EURUSD',1,0.01,1.18245,3,0,0,'comment')ifresult['code']==0:# successfulcontinueelse:# unsuccessfulcontinue# close a live orderAPI.close_order(9999999,0.01,1.18245)# delete a pending orderAPI.close_order(9999999)# get trades history by datetimeAPI.trades_history_by_datetime('2021-07-04 000000','2021-07-16 075150')# get trades history by unixtimeAPI.trades_history_by_unixtime(1625991769,1626423769)# get live tradesAPI.live_trades()# get account informationAPI.account_info()# get server timeAPI.server_time()Price data# initialize data streaming for XAUUSDAPI.initialize_price_stream('XAUUSD')# get current priceAPI.current_price('XAUUSD')# get XAUUSD 5 min bar chart dataAPI.bar_chart('XAUUSD',5)# check appearance of new barAPI.check_new_bar('XAUUSD',5)Error CodeCodeDescription129Invalid price.130Invalid stops.131Invalid trade volume.134Not enough money.151The order you close is not under your account.153The symbol of order you placed is invalid.AuthorsSIGMATM-Initial work- [SIGMATM]Please readcontributorsfor more information.LicensePlease readLICENSE.mdfor more detail.
Package: sigmatools
Sigma ToolsThis package contains the following tools forSigma:sigmac: the Sigma convertermerge_sigma: Merge a Sigma collection into a minimal set of Sigma rulessigma2misp: Import Sigma rules into MISPsigma2attack: Create a MITRE ATT&CK® coverage mapsigma_similarity: Measure similarity of Sigma rulessigma_uuid: Check Sigma identifiers
Package: sigmentation
Sigmentation ToolUnivariate Data Segmentation using Genetic AlgorithmPackage ContentsThis package contains the following commands:sigmentationPerforms the segmentation process.
Take a look atsigmentation --helpto get a list of all available options.nparray2jsonConverts numpy files to json arrays.
Take a look atnparray2json --helpto get a list of all available options.SetupYou can install the latest released version by executingpip install sigmentationYou can also install the latest version available in the repository by executingpip install git+https://gitlab.com/sigmentation/sigmentation@master
Package: sigmet
sigmetInstallationSigmet (Signal Metrics Toolkit) is an end-to-end solution for the detection and measurement of negative shocks in time series data.Sigmet requires the following packages:Pandas: primary data format for easy data manipulation and datetime functionalityNumpy: for computationStatsmodels: AU3 uses statsmodel’s ARIMA and SARIMAX models for predictionMatplotlib: plotting for .graph() methodTo install, run the following on the command linepip install sigmetExampleFirst we instantiate an AU3 objectfromsigmetimportSigmetdata=pd.read_csv('time-series.csv')ex=Sigmet(start,end,data)ex.fit(window_start,window_end)# graph the result as followsimportmatplotlib.pyplotaspltfig,ax=plt.subplots()ax=ex.graph()plt.show()ContributeIssue Tracker:https://github.com/agupta01/sigmet/issuesSource Code:https://github.com/agupta01/sigmetLicenseThe project is licensed under the GNU General Public License.
Package: sigmoidcolon
Sigmoid ColonThe biologically inspired activation function.Read our (toilet) paper.InstallationInstall with pip:pipinstallsigmoidcolonUsageClass versionfromtorchimportnnfromsigmoidcolonimportSigmoidColonmodel=nn.Sequential(nn.Linear(784,64),SigmoidColon()nn.Linear(64,10))Functional versionfromtorchimportnnfromsigmoidcolon.functionalimportsigmoidcolonx=torch.randn(100)y=sigmoidcolon(x)DevelopmentNot satisfied with the function? Redo it with:# install dev requirementspipinstallPillownumpymatplotlib# run code generation toolpythonscripts/codegen.pydocs/sigmoidcolon.png
Package: sign
SignDecorators to inherit signature form one function to another.Mainly useful when a function or method takes*args, **kwargsand pass them
(mostly unmodified) to another function or methods.This will merge the signature of the decorated function, with the target function to simplify inspection.exampledef foo(a=1, b=2):
    pass

@sign.inherit(foo):
def bar(*args, **kwargs):
    return foo(*args, **kwargs)barsignature should appear as:bar(*args, a=1, b=2, **kwargs)
Package: signa
SignaUtility lib to create authorized requests for various services.Supported services:AWS S3Digital Ocean SpacesYandex Object storageAlibaba Cloud OSSCurrently in alpha, use with caution!InstallpipinstallsignaUsage exampleimportosimportrequestsimportsignaAWS_S3_REGION='...'AWS_S3_BUCKET='...'AWS_S3_UPLOAD_ACCESS_KEY='...'AWS_S3_UPLOAD_SECRET_KEY='...'S3_SIGNA=signa.Factory('s3',region=AWS_S3_REGION,bucket=AWS_S3_BUCKET,payload='UNSIGNED-PAYLOAD',auth={'access_key':AWS_S3_UPLOAD_ACCESS_KEY,'secret_key':AWS_S3_UPLOAD_SECRET_KEY,})CONTENT_TYPES={'.jpg':'image/jpeg','.jpeg':'image/jpeg','.png':'image/png','.mp4':'video/mp4','.json':'application/json',}defput_file(*,key=None,path_or_data=None,make_public=True,s3_signa=S3_SIGNA):"""Put file to S3 with signa example. Return uploaded URL."""ext=os.path.splitext(key)[1]headers={'content-type':CONTENT_TYPES.get(ext,'application/octet-stream')}ifmake_public:headers['x-amz-acl']='public-read'signed=s3_signa.new(method='PUT',key=key,headers=headers)ifisinstance(path_or_data,str):path=path_or_datawithopen(path,'rb')asdata_fp:response=requests.put(signed['url'],headers=signed['headers'],data=data_fp)else:data=path_or_dataresponse=requests.put(signed['url'],headers=signed['headers'],data=data)ifresponse.status_code==200:print('put_file: OK')returnsigned['url']returnNone
Package: signac
signac - simple data managementThesignacframeworkhelps users manage and scale file-based workflows, facilitating data reuse, sharing, and reproducibility.It provides a simple and robust data model to create a well-defined indexable storage layout for data and metadata.
This makes it easier to operate on large data spaces, streamlines post-processing and analysis and makes data collectively accessible.ResourcesFramework documentation:
Examples, tutorials, topic guides, and package Python APIs.Package documentation:
API reference for thesignacpackage.Discussion board:
Ask thesignacuser community for help.Slack workspace:
Chat aboutsignac.signacwebsite:
Framework overview and news.InstallationThe recommended installation method forsignacis throughcondaorpip.
The software is tested for Python 3.8+ and is built for all major platforms.To installsignacviatheconda-forgechannel, execute:condainstall-cconda-forgesignacTo installsignacviapip, execute:pipinstallsignacDetailed information about alternative installation methods can be found in thedocumentation.QuickstartThe framework facilitates a project-based workflow.
Set up a new project:$mkdirmy_project
$cdmy_project
$signacinitand access the project handle:>>>project=signac.get_project()TestingYou can test this package by executing:$python-mpytesttests/AcknowledgmentWhen usingsignacas part of your work towards a publication, we would really appreciate that you acknowledgesignacappropriately.
We have prepared examples on how to do thathere.Thank you very much!The signac framework is aNumFOCUS Affiliated Project.
Package: signac-dashboard
signac-dashboard - data visualization for signacThesignacframeworkhelps users manage and scale file-based workflows, facilitating data reuse, sharing, and reproducibility.Thesignac-dashboardpackage allows users to rapidly visualize and analyze data from asignacproject in a web browser.ResourcesDashboard topic guide:
Introduction tosignac-dashboard.Dashboard documentation:
Package reference and APIs.Dashboard examples:
Example dashboards demonstrating a variety of use cases.Framework documentation:
Examples, tutorials, topic guides, and package Python APIs.Slack Chat Support:
Get help and ask questions on thesignacSlack workspace.signacwebsite:
Framework overview and news.InstallationThe recommended installation method forsignac-dashboardis throughcondaorpip.
The software is tested for Python 3.8+ and is built for all major platforms.To installsignac-dashboardviatheconda-forgechannel, execute:condainstall-cconda-forgesignac-dashboardTo installsignac-dashboardviapip, execute:pipinstallsignac-dashboardDetailed information about alternative installation methods can be found in thedocumentation.QuickstartIn an existingsignacproject directory, create a filedashboard.py:fromsignac_dashboardimportDashboardfromsignac_dashboard.modulesimportStatepointList,DocumentList,ImageViewer,Schemaif__name__=='__main__':modules=[StatepointList(),DocumentList(),ImageViewer(context="JobContext"),ImageViewer(context="ProjectContext"),Schema()]Dashboard(modules=modules).main()Then launch the dashboard:$pythondashboard.pyrun
Package: signac-flow
signac-flow - manage workflows with signacThesignacframeworkhelps users manage and scale file-based workflows, facilitating data reuse, sharing, and reproducibility.Thesignac-flowtool provides the basic components to set up simple to complex workflows for projects managed by thesignacframework.
That includes the definition of data pipelines, execution of data space operations and the submission of operations to high-performance super computers.ResourcesFramework documentation:
Examples, tutorials, topic guides, and package Python APIs.Package documentation:
API reference for thesignac-flowpackage.Discussion board:
Ask thesignac-flowuser community for help.Slack workspace:
Chat aboutsignac-flow.signacwebsite:
Framework overview and news.InstallationThe recommended installation method forsignac-flowis throughcondaorpip.
The software is tested for Python versions 3.6+ and is built for all major platforms.To installsignac-flowviatheconda-forgechannel, execute:condainstall-cconda-forgesignac-flowTo installsignac-flowviapip, execute:pipinstallsignac-flowDetailed information about alternative installation methods can be found in thedocumentation.TestingYou can test this package by executing$ python -m pytest tests/within the repository root directory.AcknowledgmentWhen usingsignacas part of your work towards a publication, we would really appreciate that you acknowledgesignacappropriately.
We have prepared examples on how to do thathere.Thank you very much!The signac framework is aNumFOCUS Affiliated Project.
Package: signal2html
signal2html: Convert Signal backups to pretty HTMLThis is a Python script to convert a backup ofSignalmessages to pretty HTML:Why?My phone was getting full and I wanted to preserve my Signal messages in a
nice way.How?Install this package using pip:$ pip install signal2htmlNext, clone and compilesignalbackup-toolsas
follows:$ git clone https://github.com/bepaald/signalbackup-tools
$ cd signalbackup-tools
$ bash BUILDSCRIPT.shThis should give you asignalbackup-toolsexecutable script.Create an encrypted backup of your Signal messages in the app (Settings ->
Chats and Media -> Create backup), and transfer this to your computer. Make
sure to record the encryption password.Unpack your encrypted backup usingsignalbackup-toolsas follows:$ mkdir signal-backup/
$ signalbackup-tools signal-YYYY-MM-DD-HH-MM-SS.backup <PASS> --output signal_backup/where you replacesignal-YYYY-MM-DD-HH-MM-SS.backupwith the actual
filename of your Signal backup and<PASS>with the 30-digit encryption
password (without spaces).Now, runsignal2htmlon the backup directory, as follows:$ signal2html -i signal_backup/ -o signal_html/This will create a HTML page for each of the message threads in thesignal_htmldirectory, which you can subsequently open in your browser.NotesThis is a hastily-written script that has only been tested on a few Signal
database versions. I hope it works on other backup versions as well, but if
you encounter any issues please submit a pull request.See the LICENSE file for licensing details and copyright.Please be aware that Signal messages are encrypted for a reason, and your
contacts may use it specifically because it provides significant privacy. By
exporting and decrypting your messages, you should take responsibility for
maintaining this same level of privacy (for instance by only storing the
plaintext messages on encypted volumes/drives).Originally written byGertjan van den Burg. See thecontributorsfile for a full list of all contributors.
Package: signal-analyzer
idn() -> str:
"""
Returns: Instrument ID
"""__get_pK():
"""
Returns [x,y] marker position
"""get_pk_pow(start,stop,rbw,vbw,x_or_y):
"""
Args: start,stop,rbw,vbw,x_or_y
Returns: Peak Power (dBm) or frequency (GHz)
Note: x_or_y = (0,1) = (x,y)
"""delta_pow(start,stop,rbw,vbw):
"""
Args: start,stop,rbw,vbw
Returns: Difference (peak_power)-(mian_peak_power)
Note: To get Delta, you must run get_pk_pow() first.
"""recall_state(state):
"""
Args: Pass State Number to Recall
"""Example Use of this Module:from signal_analyser import sg
from signal_analyser import loggingrm = pyvisa.ResourceManager()
signal_analyzer = sg(rm,"USB0::0x0957::0x0E0B::MY53030107::INSTR")
log = logging()
Package: signal-application-python-sdk
signal-application-python-sdkSetupAdd Signal-Application-SDK as a dependency to requirements.txtsignal-application-python-sdk==<latest>Install dependenciespython setup.py installEntry point for Signal Application SDKCreates a bi-directional communication between device agent and applicationInitialize SDKself.app = SignalApp()
self.app.initialize(self.onConfigUpdated, self.onEventReceived, self.onCommandReceived)Provide a callback method to get notified when a configuration change is requesteddef onConfigUpdated(self, config):Will be triggered when a new configuration change requested from the cloudProvide a callback method to get notified when an event is received from event busdef onEventReceived(self, event):Will be triggered when a new event received from application's subscribed topicProvide a callback method to get notified when an command is received from event busdef onCommandReceived(self, command):Will be triggered when a new command received from device agentCall next to forward the event to the next edgesignal application which has sdk integrated, if next_app_id(optional) is specified, it forwards the event to the specified applicationself.app.next(event: object, next_app_id)Call next to forward the event to the next node-red application running on node-red.self.app.nextNode(event: object)Sample usageConsider adding these two params to the application detailconfig object will be reveived as below{
    message: 'some text message',
    param2: 101
}
Package: signal-backtester
Signal Backtestera small repo Based onBacktestingLib .easiest way to backtest your generated signalQuick Startinstallationpipinstallsignal-backtesterUsagefromsignal_backtesterimportSignalBacktester# address of your dataset file# columns should include "Open, High, Low, Close, Volume, signal"backtest=SignalBacktester(dataset="/home/xibalbas/sample.csv",strategy='two_side_sl_tp_reversed',cash=1000,commission=0.0005,# equal 0.05 %percent_of_portfolio=99,stop_loss=1,take_profit=10,trailing_stop=3,# if you are using trailing stoptime_frame='30m',output_path='.'# path of result files)backtest.run()strategyavailable strategy to use are :two_side_sl_tp_reversedtwo_side_sl_trailing_reversedone_side_buy_sl_tpone_side_sell_sl_tpone_side_buy_sl_trailingone_side_sell_sl_trailingdataset structureyour data set structure should be like this tableyour buy signals should generate as 2
and your sell signals should generate as 1you must have this columns in your datasetDateOpenHighLowCloseVolumesignal
Package: signal-bot-framework
Signal-BotAnasyncioPython 3.11 module for buildingSignalbots that interact withAsamK/signal-cli.FeaturesConstruct different "personalities" for different contexts (users, groups, etc).Callbacks for the following events:Cron schedules.Any message is received.Message matches a prefix (e.g.,/command ...).Message contains a keyword.Message contains an@-mention.Currently supported signal-cli functions:"Typing..." indicators.Reacting to messages.Sending messages, including:Inline mentions.Inline text styles.More to come...Deleting messages.UsageFor development:python3.11 -m pip install signal_bot_framework.# test_bot.pyimportasynciofromsignal_bot_frameworkimportcreate,Accountasyncdefcrabby_callback(signal:Signal,context:Context,message:DataMessage)->bool:to=context[1]awaitsignal.send_reaction(message,"🦀")awaitsignal.send_message(to,f"Sorry, just feeling a little crabby,{message.sender_name}.",args=SendMessageArgs(mention=[f"37:{len(message.sender_name)}:{message.sender}"]))returnTrueasyncdefmain():# The default, finds `signal-cli` on path and launches it as a subprocessconnection='ipc://'# or, use TCP: connection = 'tcp://HOST:PORT'signal=awaitcreate(Account('+12345678900'),connection)signal.on_keyword('ok?',crabby_callback)awaitsignal.run()if__name__=='__main__':asyncio.run(main())DockerFor convenience, a base Docker image can be built assidneys1/signal_bot, based onpython:3.11-alpine.
You can base your bot on it like so:FROMsidneys1/signal_bot:latestCOPY./test_bot.py.CMD["python","test_bot.py"]You can easily combine this in Docker-Compose with asignal-clicontainer.
Make sure to change yourtest_bot.py'sconnectionstring totcp://signal-cli:7583.Additionally, an easy way to keep your Signal account from being stored in your image ordocker-compose.ymlis to
store it in a Docker secret, as shown below.secrets:
  signal-account:
    file: .signal-account

services:
  test_bot:
    build: .
    depends_on: [signal-cli]
  signal-cli:
    image: registry.gitlab.com/packaging/signal-cli/signal-cli-native:latest
    volumes:
     # Mount an existing signal-cli configuration directory from the host.
     - "${HOME}/.local/share/signal-cli:/var/lib/signal-cli:rw"
    ports: ["7583"]
    secrets: [signal-account]
    entrypoint: sh -c
    command: "'signal-cli -c /var/lib/signal-cli --account $(cat /run/secrets/signal-account) daemon --receive-mode on-connection --no-receive-stdout --send-read-receipts --tcp 0.0.0.0:7583'"BuildingClone this repository and install the prerequisites:Python >= 3.11 withvenvsupport (included with Python for Windows,python3.11-venvon most package managers).python3.11 -m pip install buildRunpython3.11 -m buildin the repository folder.Distribute or install./dist/signal_bot_framework-X.Y.Z-py3-none-any.whl.Dependenciescron-converter(for Cron-based hooks).humanize(for debugging output related to Cron-based hooks).Signal-Bot assumes that you already havesignal-cliavailable and registered with an account from which messages will
be sent and received.
Package: signal-cli
signal-cli - A python wrapper for the signal-cli-rest-apiDocumentationThe documentation of the code can be found here:https://fhune.de/signal_cli_documentation/For the documentation of the signal-cli-rest-api, seehere(GitHub) andhere(Swagger).Quick StartFor using the module, you have to create a client object first:signal_cli.Client(<address>, <port>, <phone_number>), withaddressandportbuilding the access point to the signal-cli-rest-api andnumberbuilding the phone number which should be used as client number.After creating the client object, you can use the other methods in their respective classes by passing the client object to the class object the method is inSpecial care needs to be taken if you plan to register a number with getting the code via voice; read the documentation of the code for further details!Licensesignal_cliisCopyright(c) 2023 Felix Hune
Package: signal-cli-douglasadams-42
signal-cli - A python wrapper for the signal-cli-rest-apiDocumentationThe documentation of the code can be found here:https://fhune.de/signal_cli_documentation/For the documentation of the signal-cli-rest-api, seehere(GitHub) andhere(Swagger).Quick StartFor using the module, you have to create a client object first:signal_cli.Client(<address>, <port>, <phone_number>), withaddressandportbuilding the access point to the signal-cli-rest-api andnumberbuilding the phone number which should be used as client number.After creating the client object, you can use the other methods in their respective classes by passing the client object to the class object the method is inNote that special care must be taken for the registration process of a number if you prefer to get the verification code via phone call; read in the documentation of the code for more informations!Licensesignal_cliisCopyright(c) 2023 Felix Hune
Package: signal-cli-rest-api
signal-cli-rest-apisignal-cli-rest-api is a wrapper aroundsignal-cliand allows you to interact with it through http requests.Featuresregister/verify/unregister a numbersend messages to multiple users/a group with one or multiple attachmentsreceive messages (with attachments)block/unblock users and groupslink to existing devicelist/create/update/leave groupsupdate profile (name/avatar)To-Dointegrate dbus daemon for faster sendingauthenticationInstallationpipIf you install signal-cli-rest-api through pip you need to manually installsignal-clion your system.#bydefaulttheappwilllookforthesignalconfigfilesin~/.local/share/signal-cli#youcanchangethedirectorybysettingtheSIGNAL_CONFIG_PATHenvvartothedesiredpath#e.g.exportSIGNAL_CONFIG_PATH=/opt/signalpip install signal-cli-rest-apiuvicorn signal_cli_rest_api.main:app --host 0.0.0.0 --port 8000Dockerexport SIGNAL_DATA_DIR=~/signal/docker run --name signal --restart unless-stopped -p 8000:8000 -v $SIGNAL_DATA_DIR:/root/.local/share/signal-cli sebastiannoelluebke/signal-cli-rest-apidocker-composegit clone https://github.com/SebastianLuebke/signal-cli-rest-api.gitcd signal-cli-rest-api#docker-composebuilddocker-compose up -dSecurity Noticesignal-cli-rest-api doesn't have any authentication for now. Everyone who knows the service address+port and the number is able to get your messages and send messages. So only use it a trusted environment and block external access.Interactive DocumentationAfter installing signal-cli-rest-api start it and open the following pagehttp://localhost:8000/docs
Package: signal-composer
signal_composerLibrary for composing signals from arrays and functions.UsageCreating SignalsFrom interpolated arrayssignal=Signal([1,0,1,-1,1])From functionsf=lambdax:x**3-x**2signal=Signal(f)f=lambdax:x**3-x**2signal=Signal(f,function_input_span=[0,1+0.25])Composing SignalsFrom adding signalssignal_1=Signal([0,1])signal_2=Signal(lambdax:1+x**3)composed_signal=signal_1+signal_2From listssignals=[lambdax:x**2,[-1,0,1],lambdax:4+x**(1/2)]composed_signal=Signal.compose_from_list(signals)How to installOption 1: ManuallyClone the GitHub repo and install manually by passinggh repo clone danlessa/signal_composer
cd signal_composer
pip install -e .Option 2: PyPiJust pass:pip install signal_composer