Saravanan666/pypi-org huggingface dataset:
Package: magictrader
MagicTraderMagicTraderとは、zaif-exchangeでシステムトレードを行うためのフレームワークです。ローソク足、テクニカルインディケーターの取得はもちろん、チャートの表示や、バックテスト・フォワードテストの機能を備えます。各種テストでは、シグナルをチャートにプロットすることができるため、チャートを確認しならアルゴリズムを検証することができます。セットアップ1. MagicTraderをインストールするpipコマンドを実行し、MagicTraderをインストールしてください。$ pip install magictrader2. TA-LibをインストールするMagicTraderは「TA-Lib」のインストールを別途必要とします。下記の紹介記事等を参考に、各々の環境に応じてインストールしてください。python3でTA-Libをインストールする方法をまとめてみたhttps://qiita.com/ConnieWild/items/cb50f36425a683c914d2$ pip install TA_Lib-0.4.17-cp35-cp35m-win_amd64.whl使い方MagicTraderは、まず、プロジェクトを新規作成し、プロジェクトにアルゴリズムを記述し、プロジェクトを実行するという手順で使用します。1. プロジェクトを新規作成するMagicTradeをインストールすると、プロジェクトを新規作成するためのコマンド「create_tradeterminal」がインストールされます。下記コマンドを実行してプロジェクトを新規作成してください。$ create_tradeterminalプロジェクトの作成に成功すると、下記のファイルが作成されます。mytrade.py  # プロジェクト本体です。
mt.ini      # プロジェクトの設定ファイルです。2. プロジェクトを実行するmytrade.pyには、ゴールデンクロスでロングポジションを取るアルゴリズムがあらかじめ実装されています。デフォルトではバックテストモードに設定されているため、実際にポジションが取ることはありません。まずは試しに実行してみてください。チャートが表示されれば成功です。$ python mytrade.py
Package: magictranslator
Magic TranslatorMagic translator is a wrapper library of multiple translation APIs.
For different source languages, you can configure which translation API to use and/or which destination language to translate to.InstallationThe library is developed and tested in Python 3.7pipinstallmagictranslatorUsagefrommagictranslatorimporttranslatort=translator.FromJSONConfigFile('config.json')res=t.Translate('hola amigo buenas noches')print(res.translated_text)Config JSON file structureMagicTranslator accepts JSON-like data config as input. The config JSON data (example can be found in config.json) has the following structure. All language codes are valid two-character ISO-639-1 codes, such as 'en', 'ar', 'ko'translatorsList of translators to use. Each object in the list has the following itemsname (required): Name of translator. Currently supported names are: googletrans, google, aws, yandexoptional data specific to each translatorgoogletrans: no additional data is neededgoogle: "service_account" is required with path to the service account JSON fileaws: "region" is required for the AWS Translate API region nameyandex: "api_key" is requireddefault_translatorName of the default translator. Should be one of the translators in "translators" sectiondefault_destDefault destination language code to translate tono_translatesList of language codes not to translatesrc_langsList of source languages to configure specifically. All other languages not in this list will be translated to default_dest by default_translator.Each object in the list has three fieldssrc (required): Source language codedest (optional): Destination language code, if different from default_desttranslator (optional): Name of translator to use, if different from default_translator
Package: magictree
Creating tree structures like those used for HTML and XML should be dead easy.
The xml.etree.ElementTree library goes quite far in creating a simple to use library
for creating and modifying such structures. I’d like to go a step further, building
on top of ElementTree:from magictree import html, head, title, body, h1, p
doc = html(
        head(
          title('Chapter 1: Greeting')),
        body(
          h1('Chapter 1: Greeting'),
          p('Hello, world!')))

from xml.etree import ElementTree as et
et.dump(doc)Results in this: (added some whitespace for formatting)<html>
  <head>
    <title>Chapter 1: Greeting</title>
  </head>
  <body>
    <h1>Chapter 1: Greeting</h1>
    <p>Hello, world!</p>
  </body>
</html>This works by replacing this module with a wrapper object in sys.modules that
creates factory functions for elements based on their name.I used this page as a basis for the hack:http://stackoverflow.com/questions/2447353/getattr-on-a-module
Package: magicurl
magicurlSmall library for managing URL constantsInstallationpipinstall-Umagicurlor install withPoetrypoetryaddmagicurlMakefile usageMakefilecontains a lot of functions for faster development.1. Download and remove PoetryTo download and install Poetry run:makepoetry-downloadTo uninstallmakepoetry-remove2. Install all dependencies and pre-commit hooksInstall requirements:makeinstallPre-commit hooks coulb be installed aftergit initviamakepre-commit-install3. CodestyleAutomatic formatting usespyupgrade,isortandblack.makecodestyle# or use synonymmakeformattingCodestyle checks only, without rewriting files:makecheck-codestyleNote:check-codestyleusesisort,blackanddarglintlibraryUpdate all dev libraries to the latest version using one comandmakeupdate-dev-deps4. Code securitymakecheck-safetyThis command launchesPoetryintegrity checks as well as identifies security issues withSafetyandBandit.makecheck-safety5. Type checksRunmypystatic type checkermakemypy6. Tests with coverage badgesRunpytestmaketest7. All lintersOf course there is a command torulerun all linters in one:makelintthe same as:maketest&&makecheck-codestyle&&makemypy&&makecheck-safety8. Dockermakedocker-buildwhich is equivalent to:makedocker-buildVERSION=latestRemove docker image withmakedocker-removeMore informationabout docker.9. CleanupDelete pycache filesmakepycache-removeRemove package buildmakebuild-removeDelete .DS_STORE filesmakedsstore-removeRemove .mypycachemakemypycache-removeOr to remove all above run:makecleanup📈 ReleasesYou can see the list of available releases on theGitHub Releasespage.We followSemantic Versionsspecification.We useRelease Drafter. As pull requests are merged, a draft release is kept up-to-date listing the changes, ready to publish when you’re ready. With the categories option, you can categorize pull requests in release notes using labels.List of labels and corresponding titlesLabelTitle in Releasesenhancement,feature🚀 Featuresbug,refactoring,bugfix,fix🔧 Fixes & Refactoringbuild,ci,testing📦 Build System & CI/CDbreaking💥 Breaking Changesdocumentation📝 Documentationdependencies⬆️ Dependencies updatesYou can update it inrelease-drafter.yml.GitHub creates thebug,enhancement, anddocumentationlabels for you. Dependabot creates thedependencieslabel. Create the remaining labels on the Issues tab of your GitHub repository, when you need them.🛡 LicenseThis project is licensed under the terms of theMITlicense. SeeLICENSEfor more details.📃 Citation@misc{magicurl,author={ravensiris},title={Small library for managing URL constants},year={2022},publisher={GitHub},journal={GitHub repository},howpublished={\url{https://github.com/ravensiris/magicurl}}}CreditsThis project was generated withpython-package-template
Package: magicway-payment-gateway
MagicWay Payment Gateway Integration - Python  PackageNote: If you're using this package with our sandbox environment is_sandbox is True and live is_sandbox is False.
Please contactinfo@momagicbd.comto get credentials.Package Directory|-- magicway_payment_gateway/
    |-- __init__.py
    |-- momagic_connector.py (core file)
    |-- status_code.py (core file)
 |-- sample_checkout.py
 |-- sample_ipn.py
 |-- setup.py
 |-- LICENSE
 |-- README.md
 |-- .gitignoreInstallationpip install magicway-payment-gatewayUsageSample Payment Session API example:from magicway_payment_gateway import MoMagicsettings = {
'store_id': '',
'store_secret': '',
'store_username': '',
'store_email': '',
'is_sandbox': True
}mmbd_connector = MoMagic(settings)Organize the checkout data and all fields must be filled up proper valuecheckout_data = {
'currency': "BDT",
'amount': "10.00",  # amount must be greater than or equal to 10
'cus_name': "test name",
'email': "test@test.com",
'msisdn': "01800000000",
'cus_country': "BD",
'cus_state': "customer state",
'cus_city': "customer city",
'cus_postcode': "customer postcode",
'cus_address': "customer address",
'product_name': "product name",
'num_of_item': 1,
"success_url": "success url",
"fail_url": "fail url",
"cancel_url": "cancel url",
"ipn_url": "ipn url"
}response=mmbd_connector.checkout(checkout_data)print(response)response['status_code'] == 200, Need to customer post redirection response['checkout_url']  and save response['order_id'] for payment validationSample Payment Validation API example:from magicway_payment_gateway import MoMagicsettings = {
'store_id': '',
'store_secret': '',
'store_username': '',
'store_email': '',
'is_sandbox': True
}mmbd_connector = MoMagic(settings)Organize the payment validation datapayment_validation_data = {
'opr': "",
'order_id': "",
'reference_id': "**********"
}response=mmbd_connector.instant_payment_notification(payment_validation_data)print(response)If response['status_code'] == 200 and response['charge_status'], then we can decide transaction is successfulContributorsArifur Rahmaninfo@momagicbd.com
Package: magic-wormhole
Magic WormholeGet things from one computer to another, safely.This package provides a library and a command-line tool namedwormhole,
which makes it possible to get arbitrary-sized files and directories
(or short pieces of text) from one computer to another. The two endpoints are
identified by using identical "wormhole codes": in general, the sending
machine generates and displays the code, which must then be typed into the
receiving machine.The codes are short and human-pronounceable, using a phonetically-distinct
wordlist. The receiving side offers tab-completion on the codewords, so
usually only a few characters must be typed. Wormhole codes are single-use
and do not need to be memorized.PyCon 2016 presentation:Slides,VideoFor complete documentation, please seehttps://magic-wormhole.readthedocs.ioor the docs/ subdirectory.This program uses two servers, whose source code is kept in separate
repositories: themailbox server,
and thetransit relay.License, CompatibilityMagic-Wormhole is released under the MIT license, see theLICENSEfile for details.This library is compatible with Python 3.8 and higher (tested against
3.8, and 3.9). It also still works with Python 2.7 although that is no
longer supported by upstream libraries like Cryptography, so it may
stop working at any time.Packaging, InstallationMagic Wormhole packages are included in many operating systems.To install it without an OS package, follow theInstallation docs.
Package: magic-yara-python
# magic-yara-pythonThis is a fork of the officialyara-pythonlibrary developed by VirusTotal
([GitHub](https://github.com/VirusTotal/yara-python),
[PyPI](https://pypi.org/project/yara-python/),
[documentation](https://yara.readthedocs.org/en/latest/yarapython.html)).It introduces no functional differences but enables the following YARA modules
by default:[magic](https://yara.readthedocs.io/en/latest/modules/magic.html)[dotnet](https://yara.readthedocs.io/en/latest/modules/dotnet.html)In other words, installingmagic-yara-pythonis equivalent to installingyara-pythonwith the–enable-magic –enable-dotnetflags.The reason this fork exists is that it is sometimes hard or inconvenient to
provide these flags, depending on your method of installation. For example,setuptoolsprovides no means to supply additional build options for itsinstall_requiresentries. If you install viapipyou can set these options
through–global-optionflags, but that becomes unwieldy quickly.magic-yara-pythonis meant as an easy workaround for these cases.
Package: magma
Magma lists are lists of files which can be downloaded via magnet links.They are written in yaml format to be easily readable as well as flexible and powerful.You can install this script via setuptools:$ easy_install magma!!! IN PLANNING PHASE !!!This script parses the basic features of MAGMAv0.4, which is being specified at the moment.
It doesn’t parse the current MAGMAv0.2 files!Use it only, if you want to take a peek at what the updated specification can bring.It depends onpyyaml:http://pyyaml.org/.tagpyThe API documentation is available fromhttp://gnuticles.gnufu.net/pymagma/,
and the code is available from a Mercurial repository:http://freehg.org/u/ArneBab/magma/.Changes:0.3.9:Added script to create magma lists for phex releases: create_phex_release_magmas.py0.3.8:No longer depend on IPy - don’t check alt-loc IP:PORT, so other settings can be included, like i2p addresses and similar. No use restricting users when it doesn’t gain much.Updated usage information and instruction for adding alt-locs in magma_creator_cli.pyUpdated usage information for sha1_gnutelly.pyA bit nicer API documentation.0.3.7:Added script sha1_gnutella.py, which calculates the sha1 hash in Gnutella style (encoded BASE32 uppercase) for all input files.0.3.6:Added alt-locs to the magnets of the files and to the v0.2 compatibility magnet list.0.3.5:Added compatibility section, so the magnet links can also be read out
by programs supporting only Magmav0.2Remove empty items in all listed files before saving, so they are more readable.FIX: Magma module wasn’t included in the egg.0.3.4:FIX: API was only callable via magma.magma.* - now you can just call “import magma” again. .0.3.3:FIX: Import error - only imported from modules in the development dir, not from installed ones.0.3.2:FIX: magma_list.py had wrong header line (tried to open with ‘pythons’).0.3.1:Added support for multiple substitude urls and altlocs.0.3.0:Added ebuild_creator_cli.py as script.0.2.9:Added (mostly fake) ebuild_creator_cli as proof of concept.Changed “name” parameter in files to “filename” to avoid ambiguity (you remember, that this IS in planning phase).0.2.8:FIX: Parsing failed, when passed invalid lists.0.2.7:Added return values to all method and function docstrings.0.2.6:Added docstrings to all functions and classes.0.2.5:Added load and dump function to work with magma more easily:magma.load(filedata) returns a Magma object with all the attributes like magma.magnets, magma.files and magma.metadata .magma.dump(Magma object) returns its string presentation for saving in a file.Name of the file list parameter and of the URN parameter can now be changed easily.Some cleaning up.0.2.4:FIX: Header missed the #0.2.3:FIX: Saved magma list missed the magma header.0.2.2:magma_list.py magma_from_files TARGET file1, file2, … now works.0.2.1:names in the magma list no longer contain the path to the file.Improved documentation.0.2:Uses setuptools.Adds Usage info.magma_list.py now callable from commandline.Documentation improvements and API docs.Multiple file magma creation.0.1:Creates and reads Magma lists.
Package: magma-orc8r-client
magma-orc8r-clientA simple API client to communicate withMagma's orchestrator service via HTTP.warning: This project is under construction!Installationpip3installmagma-orc8r-clientUsageLeveraging built-in methodsfrommagma_orc8r_client.orchestratorimportOrc8rfrommagma_orc8r_client.schemas.network_dns_configimportNetworkDNSConfigfrommagma_orc8r_client.schemas.network_epc_configsimportNetworkEPCConfigsfrommagma_orc8r_client.schemas.network_cellular_configsimportNetworkCellularConfigsfrommagma_orc8r_client.schemas.lte_networkimportLTENetworkfrommagma_orc8r_client.schemas.network_ran_configsimportNetworkRANConfigs,TDDConfigorc8r_client=Orc8r(url="https://api.magma.com",admin_operator_pfx_path="/path/to/admin_operator.pfx",admin_operator_pfx_password="my_pfx_password",)network_id="my_new_networkid"new_network=LTENetwork(dns=NetworkDNSConfig(dhcp_server_enabled=True,enable_caching=True,local_ttl=0),cellular=NetworkCellularConfigs(epc=NetworkEPCConfigs(gx_gy_relay_enabled=True,hss_relay_enabled=False,lte_auth_amf="gAA=",lte_auth_op="EREREREREREREREREREREQ==",mcc="001",mnc="01",tac=1,),ran=NetworkRANConfigs(bandwidth_mhz=20,tdd_config=TDDConfig(earfcndl=44590,special_subframe_pattern=7,subframe_assignment=2,),),),description=network_id,id=network_id,name=network_id,)orc8r_client.lte.create_network(lte_network=new_network)list_of_networks=orc8r_client.lte.list()Custom callsfrommagma_orc8r_client.orchestratorimportOrc8rorc8r_client=Orc8r(url="https://api.magma.com",admin_operator_pfx_path="/path/to/admin_operator.pfx",admin_operator_pfx_password="my_pfx_password",)network_id="pizza"apn_list=orc8r_client.get(endpoint=f"lte/{network_id}/apns")
Package: magna
magnaMagna is a collection of bioinformatic datasets and utilities I use in my everyday life.This has been written with the intention of personal use, but feel free to use/contribute.No guarantees are made that the API will remain stable between so ensure you fix the version.Documentation:https://aaronmussig.github.io/magna/ContributingThis project usesSemantic VersioningandConventional Commitsto automatically generate release notes usingSemantic Release.Please ensure that your commits are property formatted.
Package: magnatune
Introductionpython-magnatuneprovides a simple command line utility calledmagnatunethat can be used to search themagnatunedatabase and get the streaming urls.For example, to get all the albums from Curlmagnatune --artist CurlTo get the streaming urls of all songs from Curlmagnatune --artist Curl --streamThe result can be user with mpc, for example to add all those songs to mpdmagnatune --artist Curl --stream | mpc addIf you have a subscription login and want to hear the music without ads, you can use itmagnatune --artist Curl --login login:passwd --streamYou can also download albums. This will download all the albums of curl, and extract them to the current dirmagnatune --artist Curl --login login:passwd --download --dlformat ogg --extractOf course, there is a short version. With theloginanddlformatset in my config file, I just domagnatune -a Curl -deInstallpython-magnatunerequires python 3. I strongly recommend that you usevirtualenv. With virtualenv installed, you can install python-magnatune by doingpip install magnatuneTo work with the development version, clone the repository athttps://github.com/madjar/python-magnatuneand dopip install -e .Config filepython-magnatunelooks for default values of all arguments in the config file~/.python-magnatune/config.ini. Seeconfig.ini.examplefor more information.ContributeThe source code is available ongithub.If you notice a bug or have a request, please file areportCreditsAuthor:Georges Dubus (madjar)
Package: magnelPy
magnelPymagnelPy is a Python toolbox for the ea14 research group of Ghent UniversityGetting StartedPrerequisitesPython 3.6or later; andThe following Python libraries:numpy==1.15.0pandas==0.23.3scipy==1.1.0Installationpippip is a package management system for installing and updating Python packages. pip comes with Python, so you get pip simply by installing Python. On Ubuntu and Fedora Linux, you can simply use your system package manager to install thepython3-pippackage.The Hitchhiker's Guide to Pythonprovides some guidance on how to install Python on your system if it isn't already; you can also install Python directly frompython.org. You might want toupgrade pipbefore using it to install other programs.magnelPy uses Python3.If you are using Windows with Python version 3.3 or higher, use thePython Launcher for Windowsto usepipwith Python version 3:pipinstallmagnelPyIf your system has apython3command (standard on Unix-like systems), install with:python3-mpipinstallmagnelPyYou can also just use thepythoncommand directly, but this will use thecurrentversion of Python in your environment:python-mpipinstallmagnelPyUsageUsing the help(.) functionality to explore the package functionalities is recommended.Application steps:pip install magnelPy (e.g. within conda environment)explore magnelPy functionality
$\gt\gt\gt$ import magnelPy
$\gt\gt\gt$ help(magnelPy)[example] explore magnelPy.SFE.FireCurve functionality
$\gt\gt\gt$ import magnelPy.SFE as sfe
$\gt\gt\gt$ help(sfe.FireCurve)Command line functionality:SAFIR runpython-c"import magnelPy.SAFIRshell as x; x.runSAFIR()"concrete slab temperature calculation EN1992-1-2:2004, ISO 834python-c"import magnelPy.SFE as x; x.EC_concreteSlab_ISO834()"AuthorsBalsa Jovanovic-balsa.jovanovic@ugent.beMengying Peng-mengying.peng@ugent.beFlorian Put-florian.put@ugent.beEvelien Symoens-evelien.symoens@ugent.beThomas Thienpont-thomas.thienpont@UGent.beRuben Van Coile-ruben.vancoile@ugent.bePast contributors and acknowledgementRanjit Chaudhary-ranjit.chaudhary@ugent.beWouter Botte-wouter.botte@ugent.beNicky Reybrouck-nicky.reybrouck@ugent.beLicenseThis project is licensed under the MIT License - see theLICENSEfile for details - under the additional requirement of acknowledging the magnelPy development community.
Package: magnet
magnetA library that makes it easy to load YAML config files in a hierarchical
manner. Also loads YAML content fromCONFIGenvironment variable.Minimal Python version is Python 3.5.InstallationpipinstallmagnetUsageConsider the following yaml fileconfig/default.yml:app:url:https://www.example.com/appcerts:pem:/path/to/cert.pemkey:/path/to/cert.keyclients:-a-bAnd the followingconfig/local.ymlfile:app:url:https://app.example.com/frommagnetimportConfigconfig=Config().read_all()config['app.url']# ==> "https://app.example.com"config['app.certs.pem']# ==> "/path/to/cert.pem"config['non.existing.key']# ==> raises KeyErrorAdditional options:frommagnetimportConfig# Listed below are the default parametersconfig=Config(config={# set default configuration here},filenames=('config/default.yml','config/local.yml',),env_variable='CONFIG',separator='.',)config.read_all(filename=None,# string, can be set to load an additional file)This will load the configuration in the following order:./config/default.yml- can be committed to the repository./config/local.yml- should not be committed to allow custom config for devsAn additional YAML config file (iffilenameargument is defined)YAML contents from theCONFIGenvironment variable (ifenv_variableis defined)All of these files are optional, but the key lookups will result withKeyErrorif a key is missing. Iffilenameis defined, but the file is not
found, it will raise aFileNotFoundError.Developmentmake ci            - Run the CI pipeline (deps, lint, test-coverage)
make lint          - Lint all project files
make test          - Run all tests
make test-watch    - Run all tests and re-run on file changes
make test-coverage - Run all tests and calculate test coverage
make deps          - Create a virtual environment and install dependencies
make freeze        - Freeze the requirements
make env           - Create a virtual environment
Package: mag-net
Princeton MagNet is a large-scale dataset designed to enable researchers modeling magnetic core loss using machine learning to accelerate the design process of power electronics. The dataset contains a large amount of voltage and current data of different magnetic components with different shapes of waveforms and different properties measured in the real world. Researchers may use these data as pairs of excitations and responses to build up analytical magnetic models or calculate the core loss to derive static models.WebsitePrinceton MagNet is currently deployed athttps://mag-net.princeton.edu/DocumentationThe web application for Princeton MagNet uses themagnetpackage, a python package under development where most of
the functionality is exposed. Beforemagnetis released on PyPI, it can be installed usingpip install git+https://github.com/PrincetonUniversity/magnet.API Documentation formagnetcan be viewed online athttps://princetonuniversity.github.io/magnet/How to CiteIf you used MagNet, please cite us with the following.H. Li, D. Serrano, T. Guillod, E. Dogariu, A. Nadler, S. Wang, M. Luo, V. Bansal, Y. Chen, C. R. Sullivan, and M. Chen, "MagNet: an Open-Source Database for Data-Driven Magnetic Core Loss Modeling," IEEE Applied Power Electronics Conference (APEC), Houston, 2022.E. Dogariu, H. Li, D. Serrano, S. Wang, M. Luo and M. Chen, "Transfer Learning Methods for Magnetic Core Loss Modeling,” IEEE Workshop on Control and Modeling of Power Electronics (COMPEL), Cartagena de Indias, Colombia, 2021.H. Li, S. R. Lee, M. Luo, C. R. Sullivan, Y. Chen and M. Chen, "MagNet: A Machine Learning Framework for Magnetic Core Loss Modeling,” IEEE Workshop on Control and Modeling of Power Electronics (COMPEL), Aalborg, Denmark, 2020.Team MembersPrinceton MagNet is currently maintained by the Power Electronics Research Lab as Princeton University. We also collaborate with Dartmouth College, and Plexim.SponsorsThis work is sponsored by the ARPA-E DIFFERENTIATE Program, Princeton CSML DataX program, Princeton Andlinger Center for Energy and the Environment, and National Science Foundation under the NSF CAREER Award.