Saravanan666/pypi-org huggingface dataset:
Package: mfpsync
MyFitnessPal are moving to a new API protocol. This library implements the
original V1 binary protocol - it’s unknown how long that API will be supported.You may have better luck with this V2 library:https://github.com/coddingtonbear/python-myfitnesspalmfpsyncMyFitnessPal sync API client. Consists of a program that outputs sync data as a
JSON object, and a Python library for programmatic use.Command-line:$ pip install mfpsync
$ mfpsync USERNAME PASSWORD
[
...
  {
      "type": "Food",
      "data": {
          "original_master_id": 13599087,
          "is_deleted": false,
          "description": "Oats",
          "nutrients": {
              "calories": 371.0,
              "fat": 8.0,
              "protein": 12.0,
              "carbohydrates": 59.0,
...
]Python:from mfpsync import Sync

for packet in Sync(username, password).get_packets():
    print packet
Package: mfpy
mfpyMoneyForward クラウド勤怠といい感じに通信していい感じに打刻するやつRequests + bs4 でできてますSeleniumなどブラウザで殴る系パッケージは使ってないので軽量！そのままCLIツールとして使えて便利！もちろんimportしてご自身の時間管理ツールと結合して使って頂けます今ある機能出勤・退勤・休憩・休憩終了のリアルタイム打刻過去の打刻を一括登録（「日時勤怠」ページでの打刻に相当）環境Python 3.8.23.7.7で動くことを確認しました3.6では動きませんmacOS Catalina (10.15.4)その他のOSでも多分動きます入れ方$ pip install mfpy失敗する場合: setuptoolsが古いとsetup.cfgを解釈してくれないので、pip install mfpyに失敗する場合はpip install -U setuptoolsを実行してみてください。使い方 (CLIツールとして)基本形は$ python -m mfpy -c {会社ID} -u {ユーザーID} -p {パスワード}で、ここにサブコマンドを指定します。出勤・退勤・休憩・休憩終了$ python -m mfpy -c {会社ID} -u {ユーザーID} -p {パスワード} startjob    # 出勤
$ python -m mfpy -c {会社ID} -u {ユーザーID} -p {パスワード} finishjob   # 退勤
$ python -m mfpy -c {会社ID} -u {ユーザーID} -p {パスワード} startbreak  # 休憩
$ python -m mfpy -c {会社ID} -u {ユーザーID} -p {パスワード} finishbreak # 休憩終了成功したらOK!、失敗したらFailed ({ステータスコード})と表示します。打刻一括登録複数打刻の登録にはpostentriesサブコマンドを使用します。-dで日付を指定し（省略すると今日扱い）、残りの引数にHH:MM,HH:MMの形式で1つ以上作業時間を記述します。作業時間が1つのみだった場合は、そのまま「出勤」→「退勤」で打刻し、2つ以上ある場合は「出勤」→「休憩開始」→「休憩終了」→「休憩開始」→…→「休憩終了」→「退勤」という風に打刻します。（現在のところ、打刻の種類を手動で指定できるローレベルAPI的なのは用意していません)例えば、$ python -m mfpy -c {会社ID} -u {ユーザーID} -p {パスワード} postentries \
         -d 2020-04-28 \
         "10:00,11:00" "11:22,12:34"と実行すると、10:00 出勤11:00 休憩開始11:22 休憩終了12:34 退勤と登録されます。使い方 (Python モジュールとして)mfpyパッケージをimportしてご自身のプログラムからMF勤怠に打刻するのに使えます。
サンプルとして、使用例の全パターンを/mfpy/__main__.pyに記述しています。参考にしてください。例えば、出勤打刻するには以下のように呼びます。import mfpy

with mfpy.client('company_id', 'user_id', 'password') as client:
    print(f'Starting job... ', end='')
    ok, status = client.start_job()
    print('OK!' if ok else f'Failed ({status})')
Package: mFractal
mFractalThis is a development version of a module for multifractal analyses in Python. It already includes a version of the Chhabra-Jensen method.:warning: Please, use the following article for references of the Chhabra-Jensen function:França, L.G.S., Miranda, J.G.V., Leite, M., Sharma, N.K., Walker, M.C., Lemieux, L. and Wang, Y., 2018.Fractal and Multifractal Properties of Electrographic Recordings of Human Brain Activity: Towards its Use as a Signal Feature for Machine Learning in Clinical Applications. Frontiers in Physiology, 9, p.1767. DOI: 10.3389/fphys.2018.01767The code was developed based on the method described in:Chhabra, A. & Jensen, R., 1989.Direct determination of the f(α) singularity spectrum. Physical Review Letters, 62(12), pp.1327–1330.If you have any questions or suggestions, pleaseopen an issue in the relevant tab.Please do not hesitate to suggest improvements to this module.InstallationThe easiest way to install mFractal is via pip (PyPI) with the command below.pip install mFractalIf you would like to specify a version use the following command to install version0.0.1a1, for example.pip install mFractal==0.0.1a1Alternatively one can clone this repository and add it to a project. For that use the following command.git clone https://github.com/lucasfr/mFractal/LICENSEThis software is licensed under an MIT License.Copyright (c) 2021Lucas G S França,Yujiang Wang, José G V Miranda.Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: mframe
A lightweight single file DataFrame implementation that works on older Python distrubtions such as Jython.I use it with Java data tools such asStreamsets.Feel free to fork, add tests and features and make a pull request.Install$ pip install mframeor copy mframe.py to your project folder.UsageIt’s goal is to be familar to pandas users without promising 100% compatability. My workflow usually involves writing the code in a Jupyter notebook using Python 3 and then testing it with Jython before deploying it to Streamsets.>>> from mframe import DataFrame
>>> data = {'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']}
>>> df = DataFrame(data)
>>> df
{'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']}>>> df.pd #  the pd alias returns a pandas dataframe, useful for printing in Jupyter when developing
     col_1 col_2
0      3     a
1      2     b
2      1     c
3      0     d>>> df['col_1'] # Subscript access
[3, 2, 1, 0]>>> df.col_1 # Attribute access
[3, 2, 1, 0]>>> df[df.col_1 > 1] # filtering works
     col_1 col_2
0      3     a
1      2     b
>>> df[(df.col_1 > 1) & (df.col_2 == 'a')]
     col_1 col_2
0      3     a>>> df['col_1'] = df.col_1.apply(str) # Apply is available
>>> df.col_1
['3', '2', '1', '0']>>> list(df.iterrows()) # returns a generator of dictionaries
[{'col_1': '3', 'col_2': 'a'}, {'col_1': '2', 'col_2': 'b'}, {'col_1': '1', 'col_2': 'c'}, {'col_1': '0', 'col_2': 'd'}]Tested onPython 3.7Jython 2.7
Package: mfranceschi-minesweeper
Mfranceschi Minesweeper(Far from) The best possible Minesweeper code!ContextI am doing this side-project as a hobby. It is relatively easy to write a working minesweeper but it's harder to code nicely. My intention here is to write and enhance my code as I learn new coding guidelines. I am currently learning from the following sources:book "Clean Code" by Robert C. Martin (2002)book "The Pragmatic Programmer" by Andy Hunt and Dave Thomas (2019 Remaster)YouTuber ArjanCodesHow to useRequirements: Python >=3.7, Tkinter (for GUI code = for playing!).Helper for Debian:sudo apt install -y python3.7 python3-tk.Using PyPIYou can download and install the package from PyPI:pipinstallmfranceschi-minesweeperPlay the game by running directly in your terminalmf-mines.Use the code by importing the packagemfranceschi_minesweeper(beware of the underscore '_').Git cloneYou can also clone this repo! Once it is done:Install dependencies withpip install -r requirements.txt.Other packages used during development (not required to interpret the files):pylint(code linting)mypy(type checking)pytest(unit testing)poetry(building and PyPI stuff)Play the game by running from the repo's rootpython .It will actually execute the file__main__.py.Use the code at will! Recommended IDE is VS Code since I used it and added a.vscode/settings.jsonfile in the repo.
Package: mfrc522
mfrc522A python library to read/write RFID tags via the budget MFRC522 RFID module.This code was published in relation to ablog postand you can find out more about how to hook up your MFRC reader to a Raspberry Pi there.InstallationUntil the package is on PyPi, clone this repository and runpython setup.py installin the top level directory.Example CodeThe following code will read a tag from the MFRC522fromtimeimportsleepimportsysfrommfrc522importSimpleMFRC522reader=SimpleMFRC522()try:whileTrue:print("Hold a tag near the reader")id,text=reader.read()print("ID:%s\nText:%s"%(id,text))sleep(5)exceptKeyboardInterrupt:GPIO.cleanup()raise
Package: mfrc522-i2c
MFRC522 RFID reader/writer I2C driver in Python 3The MFRC522 is a highly integrated reader/writer IC for contacless
communication at 13.56 MHz. The MFRC522 reader supports ISO/IEC 14443
A/MIFARE and NTAG.OverviewThis library provides a Python interface to the MFRC522.Installationpython3-mpipinstallmfrc522_i2c
Package: mfreport
mfreportmfreport retrieves a list of assets from moneyforward.com, formats and outputs it.
Please use this tool for personal purposes only.Usage$pipinstallmfreport
$mfreport-h
usage:main.py[-h][-uUSER][-pPASSWORD][-oOTP][-e]options:-h,--helpshowthishelpmessageandexit-uUSER,--userUSERusername-pPASSWORD,--passwordPASSWORDpassword-oOTP,--otpOTPonetimepassword-e,--exampleUsesampledatainsteadofdatadownloadedfrommoneyforwardExample$mfreport-e2022-09-0518:54:23,097mfreportstarted.2022-09-0518:54:23,097Usingexampledata.2022-09-0518:54:23,097Done.2022-09-0518:54:23,098Downloadingfromyfinancestarted.Pleasewait.2022-09-0518:54:23,099Done.
──────────────────────────────────────────────────────────────────────────────────────────────────unitspriceprofitshortNamedivTotaldivJandivFeb\IBM301080000222222InternationalBusinessMachines26707065717203.T5010000011111TOYOTAMOTOR255000divMardivAprdivMaydivJundivJuldivAugdivSepdivOctdivNovdivDec
IBM00661100661100691507203.T1350000001200000──────────────────────────────────────────────────────────────────────────────────────────────────
Totalunrealizedcapitalgainis233,333JPY.
──────────────────────────────────────────────────────────────────────────────────────────────────Monthlydividends(totalannualdividendis29,257JPY)┌──────────────────────────────────────────────────────────────────────┐
Jan┤│
Feb┤███████████████████████████████████████████████████████████████████│
Mar┤██████████████│
Apr┤│
May┤███████████████████████████████████████████████████████████████████│
Jun┤│
Jul┤│
Aug┤███████████████████████████████████████████████████████████████████│
Sep┤█████████████│
Oct┤│
Nov┤██████████████████████████████████████████████████████████████████████│
Dec┤│└┬────────────────┬─────────────────┬────────────────┬────────────────┬┘0.01728.53457.05185.56914.0
──────────────────────────────────────────────────────────────────────────────────────────────────2022-09-0518:54:23,104mfreportfinished.
Package: mfrpy
Risk Uncertainty ValueExpansion Suiteis an open source Python toolbox for macro-finance research. It solves the nonlinear DSGE model with recursive utility formulation motivated by robustness or risk concerns based on the small-noise expansion method.Expansion Suiteis built on the Linear Quadratic framework proposed byBorovička and Hansen (2014). It follows the algorithm inExploring Recursive Utilityto approximate the model solution under uncertainty.Jupyter Notebook Illustrationsuncertainexpansion.ipynbA guide to solve the DSGE model withExpansion Suite.An example of the Adjustment Cost Model is provided in the notebook.shockelasticity.ipynbA guide to compute shock elasticities withExpansion SuiteAn example of the Bansal Yaron Long-run Risk Model is provided in the notebook.quickguide.ipynbProvides a five-minute guide to solve the DSGE model using the expansion suite, as well as how tocompute shock elasticities and IRFapproximate and simulate variables based on model solutions.Provides some examples forLinQuadVarcomputationsSource Fileslin_quad.pyDefines the linear-quadratic variable structure to facilitate operations in expansion solvers and elasticity calculation withLinQuadVarclass.lin_quad_util.pyIntegrated operation tools onLinQuadVar.utilities.pyMatrix and linear algebra operation functions facilitate the computation.derivatives.pyFunctions to compute numerical derivatives used in the expansion solver.uncertain_expansion.pyFunctions to implement first and second order expansion, approximate the continuation values, change of probability measure, and iteration schemes.elasticity.pyFunctions to compute shock elasticities.BY_example_sol.pyProduce the solutions for the Bansal Yaron Long-run Risk Model used in theshockelasticity.ipynb.Recent Updates, by Jan. 27, 00:12, CTuncertainexpansion.ipynbremovegb_tp1as a state variableparameters updating for the adjustment cost model example, which are consistent with the homework.Note the $\gamma=1$ cannot be solved by theExpansion Suite, the reason is that $1-\gamma$ will show in denominators of the recursive utility adjustment terms, we can try to use values close to $1$,γ=1+1e-5, for example.γ=10.ρ=4./3β=np.exp(-0.0025)a=0.0288ϕ_2=88.ϕ_1=1/ϕ_2α_k=0.0088σ_k=np.array([[0.477],[0]])*0.01A=np.exp(-0.014)B=np.array([[0.011,0.025]])*0.01uncertain_expansion.py,lin_quad_util.py,BY_example_sol.pyNew functions and methods addedquickguide.ipynbNew notebook addedSection 1 is a five-minute guide for theExpansion Suiteas a DSGE solver.Section 2 are examples for the computations inLinQuadVar.
Package: mfs
mfs is a set of utilities to ease image download from some Russian modelling forumsFree software: MIT licenseInstallationpip install mfsfor local editingpip install -e .Documentationhttps://mfs.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-09-06)First release on PyPI.
Package: mft
pymft-rsPython bindings forhttps://github.com/omerbenamram/mft/.InstallationAvailable on PyPi -https://pypi.org/project/mft/.To install from PyPi -pip install mftWheelsWheels are currently automatically built for python 3.6,3.7,3.8,3.9 for all 64-bit platforms (Windows, macOS, andmanylinux).Installation from sourcesInstallation is possible for other platforms by installing from sources, this requires a rust compiler andsetuptools-rust.Runpython setup.py installUsageNote that the iterators created byparser.entries()andentry.attributes()may returnRuntimeErrorobjects if there was an error while trying
to parse one of the attributes, so check them before continuing.frommftimportPyMftParser,PyMftAttributeX10,PyMftAttributeX30defmain():parser=PyMftParser("/Users/omerba/Workspace/pymft-rs/samples/MFT")forentry_or_errorinparser.entries():ifisinstance(entry_or_error,RuntimeError):continueprint(f'Entry ID:{entry_or_error.entry_id}')forattribute_or_errorinentry_or_error.attributes():ifisinstance(attribute_or_error,RuntimeError):continueresident_content=attribute_or_error.attribute_contentifresident_content:ifisinstance(resident_content,PyMftAttributeX10):print(f'Found an X10 attribute')print(f'Modified:{resident_content.modified}')ifisinstance(resident_content,PyMftAttributeX30):print(f'Found an X30 attribute')print(f'Modified:{resident_content.modified}')print(f'Name:{resident_content.name}')print('--------------------------------')Will print:Entry ID: 0
Found an X10 attribute
Modified: 2007-06-30 12:50:52.252395+00:00
Found an X30 attribute
Modified: 2007-06-30 12:50:52.252395+00:00
Name: $MFT
--------------------------------
Entry ID: 1
Found an X10 attribute
Modified: 2007-06-30 12:50:52.252395+00:00
Found an X30 attribute
Modified: 2007-06-30 12:50:52.252395+00:00
Name: $MFTMirr
--------------------------------
.....
Package: mft2parquet
mft to parquet (pyarrow dtypes)Tested against Windows 10 / Python 3.11 / Anacondapip install mft2parquetReadsHDD(HardDiskDrive)informationfromaspecifieddriveandreturnsitasapandasDataFrame.Args:drive(str,optional):Thedrivepathtoreadfrom.Defaultis"c:\\".outputfile(str,optional):Ifprovided,theDataFramewillbesavedasaParquetfileatthispath.DefaultisNone.Returns:pd.DataFrame:ADataFramewithpyarrowdtypescontainingHDDinformationwiththespecifiedcolumns.Raises:subprocess.CalledProcessError:Iftheexternalcommandfailstoexecute.Note:-Thisfunctionusesanexternalcommand-lineutilityhttps://github.com/githubrobbi/Ultra-Fast-File-SearchtoretrieveHDDinformation.-TheDataFramewillhavethefollowingcolumns:-aa_path-aa_name-aa_path_only-aa_size-aa_size_on_disk-aa_created-aa_last_written-aa_last_accessed-aa_descendents-aa_read-only-aa_archive-aa_system-aa_hidden-aa_offline-aa_not_content_indexed_file-aa_no_scrub_file-aa_integrity-aa_pinned-aa_unpinned-aa_directory_flag-aa_compressed-aa_encrypted-aa_sparse-aa_reparse-aa_attributesExample:df=read_hdd(drive="d:\\",outputfile="hdd_info.parquet")# Reads HDD information from the 'D:' drive and saves it as 'hdd_info.parquet'.
Package: mft-cli
MFT (Managed File Transfer) CLI ToolA powerful tool to jumpstart your WSO2 MFT projects!Table of ContentsAbout The ProjectGetting StartedPrerequisitesInstallationUsageRoadmapContributingLicenseContactAcknowledgmentsAbout The ProjectThis Python CLI tool helps you bootstrap WSO2 ESB MFT (Managed File Transfer) projects easily. With this tool, you can create projects either by using the CLI interface or by passing a configuration file to the application.Using the CLI interface, you can create WSO2 ESB MFT projects interactively by following the prompts. Alternatively, you can create a configuration file that defines your project's details, and then pass this file to the CLI tool to create the project automatically.This project was developed with simplicity and ease-of-use in mind, with the aim of making it easier for developers to create and manage WSO2 ESB MFT projects.Getting StartedPrerequisitesBefore you can use this CLI tool, you need to have Python 3.10 or above installed on your machine. You can check your Python version by running the following command in your terminal:python3--versionIf you don't have Python 3.10 or above installed, you can download and install the latest version from the official Python website:https://www.python.org/downloads/After installing Python,This is an example of how to list things you need to use the software and how to install them.npmnpminstallnpm@latest-gInstallationBelow is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.Get a free API Key athttps://example.comClone the repogitclonehttps://github.com/your_username_/Project-Name.gitInstall NPM packagesnpminstallEnter your API inconfig.jsconstAPI_KEY='ENTER YOUR API';(back to top)UsageUse this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.For more examples, please refer to theDocumentation(back to top)What is this repository for?Quick summaryVersionLearn MarkdownHow do I get set up?Summary of set upConfigurationDependenciesDatabase configurationHow to run testsDeployment instructionsContribution guidelinesWriting testsCode reviewOther guidelinesWho do I talk to?Repo owner or adminOther community or team contact
Package: mftool
mftool is a library for getting real time Mutual Funds data in India. It can be used in various types of projects which requires getting live quotes for a given mutual fund scheme or build large data sets for further data analytics.FeaturesGetting last updated quotes for Mutual fund scheme using scheme codes.Return data in Dataframe, JSON and dictionary formats.Getting quotes for all the schemes available with AMFIHelper APIs to check whether a given Scheme code is correct.Getting all historical NAVs for a schemes.Getting list of all schemes with there Scheme codes.Get daily scheme performance.Project Pagehttps://github.com/NayakwadiS/mftool
Package: mftoolbox
mftoolboxPackage created to support myMF2project development.Functions:encoding(): returns the proper encoding for handling config files with configparser. It's based on the based on the operating system:UTF-16 for Windows;UTF-8 for Mac.Classes:Build: automatically controls build number based on changes made to the file;UltimaCotacaoDolar: gets the last available BRL/USD exchange rate from Brazilian's Central Bank;Proventos: works with dividends data;Timestamp: formats execution start time informationself.str_yyyymmdd: now() formatted as YYYYMMDDstr_hhmmss: now() formatted as HHMMSSdtt_timestamp: now() as timestampdtt_now: now() as datetimeCotacaoDolarData: gets USD/BRL exchange rate for a specific dateArguments:Date: string with date formatted as DD/MM/YYYYReturns:self.valor: float of the exchange rate for the specific dateCotacaoDolarHistorico: gets a list of USD/BRL exchange rate for a range of datesArguments:Start Date: string with date formatted as DD/MM/YYYYEnd Date: string with date formatted as DD/MM/YYYYReturns:self.cotacoes: list of tuples in the format [Date, Exchange Rate]self.itens: total itens in the listFII: colects data for Brazilian real estate fundsArguments:list that will be populated with funds dataReturns:populated listVersion history3.0.1Included parameter to limit the number of FIIs fetched. This will be used for testing the full MagicFII program3.0.0Released the FII module to colect data for Brazilian real estate funds2.3.7Changed from a single module ('mftoolbox') containing all classes and functions to a multi-module approachChanged internal imports to hide objects that don't need to be exposed (import xxx as _xxx)implemented error handling to cotacaodolar module2.3.0 - 2.3.6perfecting the process of package generation. No changes to code
Package: mftpclient
mftpclientAboutMinimal Python FTP client in order to allow file transfer on top of Multipath TCP (MPTCP). For a deeper read about Multipath TCP, please consult thiswebpage.Table of ContentsGetting StartedEnabling MPTCPGetting StartedThere are no extra python dependencies needed since the client extends the CPython FTP client.In order to use MultipathTCPyou have to ensure that your operating system support MultipathTCP. However for portability reasons if the operating system doesn't support MultipathTCPthen the implementation falls back to a normalTCPconnection.Enabling MPTCPLinuxMultipathTCPis supported in the official linux kernel starting from version 5.6.In order to verify is MultipathTCPis enabled, run the following command :sudosysctl-a|grepmptcp.enabledThe expected result should benet.mptcp.enabled = 1. It is possible that the output isnet.mptcp.enabled = 0. If you want to enable it run :sudosysctl-wnet.mptcp.enabled=1SomeFTPcommands (especiallyPORT) are changed when passing through the internet by middleboxes. In order forMTCPto detect such changes both the client and sender have to enable the MTCP Checksum. If the checksum calculated and sent by the sender mismatch the one calculated by the receiver, then the connections fallsback to a TCP connection to preserve the established connection. More about the topic on thispage. Note that for FTPS this step is not neccessary.To enable theMPTCPchecksum run :sudosysctl-wnet.mptcp.checksum_enabled=1