Saravanan666/pypi-org huggingface dataset:
Package: mikrotikapi
MikrotikApiMikrotikApi is a project intended for managing RouterOS.:warning:WARNING: This project is currently in a beta stage. It's still under active development and might undergo changes. Use it at your own risk.InstallationMikrotikApi was developed using thePythonprogramming language. You can install the project's dependencies with pip:pipinstallmikrotikapiOr using poetry:poetryaddmikrotikapiUsageimportosfrommikrotikapiimportROSApifrommikrotikapi.schemesimportNatSchemefrommikrotikapi.schemes.fields.actionimportActionControllerfrommikrotikapi.schemes.fields.chainimportChainControlleryour_login=os.getenv("your_login")your_password=os.getenv("your_password")mikrotik_address=os.getenv("mikrotik_address")# look setting www-ssl portmikrotik_port=os.getenv("mikrotik_port")api=ROSApi(url=mikrotik_address,username=your_login,password=your_password,)nat=NatScheme(src_address="172.22.8.0/30",chain="srcnat",action="masquerade",)# NatScheme(to_addresses=None, chain=<ChainController.srcnat: 'srcnat'>,# dst_addresses=None, dst_address=None, src_addresses=None, src_address=IPv4Network# ('172.22.8.0/30'), action=<ActionController.masquerade: 'masquerade'>,# to_ports=None, protocol=None, id=None, bytes=0, comment='', disabled=False,# dst_port=None, dynamic=None, invalid=None, log=False, log_prefix='', packets=None,# routing_mark=None, in_interface='', out_interface='')# or...nat=NatScheme(src_address="172.22.8.0/30",chain=ChainController.srcnat,action=ActionController.masquerade,)# or...nat=NatScheme()nat.src_address="172.22.8.0/30"nat.chain=ChainController.srcnatnat.action=ActionController.masquerade# createapi.create(nat)# or updatenat.comment="first comment"api.update(nat)# old api.objects(NatScheme).update(nat)# or...all_nats=api.objects(NatScheme).all()
Package: mikrotik-html-documentation
Mikrotik HTML DumperThis is a small project written since my team worked with mikrotiks and we sometimes needed to present audits of the configuration for upper manangement in a quick and easy to read format.InstallingYou can use pip to install this scriptpip install mikrotik_html_documentationGeneral UseOne installed, you can see the options available to you by running the help parametermt-html--help
Usage:mt-html[OPTIONS]COMMAND[ARGS]...ThissimpletoolloginstoaMikrotikandcreatsanHTMLdump

Options:--helpShowthismessageandexit.

Commands:dumpenvRequirementsYou'll need to setup a .env file for the username and password. You can do so by running the following commandmt-html generate-envIt will then ask you to enter the username and password which will be stored in a .env file for you from the current working directory of the script.UsageTo use the script, simply run the followingmt-html html-dump -f <firewall>It will then ask you to enter the IP or FQDN of the firewall and dump out HTML code so you can easily upload to markup language supported documentation systems, or simply share it as a web file.
Files are created and can be located in your home directory~/mikrotik_html_dumpLicenseApache-2.0
Package: mikud
mikud: Search for Israeli zip code numbers☎️ mikud is a Python3 library to search israel’s zip codes (mikud) by their addresses.📖 For acomplete documentationof available functions, see theReference.>>️This tool based on israelpost website -Click here.🎛 InstallationInstall using pip3:pip3install-UmikudInstall from source:gitclonehttps://github.com/david-lev/mikud.gitcdmikud&&python3setup.pyinstall🎉FeaturesSearch zip code by addressSearch address by zip codeGet citiesGet streets👨‍💻UsagefrommikudimportMikudmikud=Mikud()mikud_res=mikud.search_mikud(city_name="ירושלים",street_name="כנפי נשרים",house_number="20")print(mikud_res.zip)#> 9546432addr=mikud.search_address(zip_code=9546432)print(addr.city_name,addr.street_name,addr.house_number)#> ירושלים כנפי נשרים 20💾RequirementsPython 3.6 or higher -https://www.python.org📖Setup and UsageSee theDocumentationfor detailed instructions⛔DisclaimerThis application is intended for educational purposes only. Any use in professional manner or to harm anyone or any organization doesn’t relate to me and can be considered as illegal.
Package: mikutoolkit
mikutoolkitA Simple Toolkit.あなたもミクと創ろう、世界を繋ごう。Create your own Miku, which connects the World!創造屬於你的初音未來吧，連接起整個世界。---- Livetune(kz) in "Tell Your World"RequirementsEnsureNumPy(NumPyon GitHub), andMatplotlib(Matplotlibon GitHub) is installed already before installingmikutoolkit.One of most simple ways to install them is installing it withconda:$condainstallnumpymatplotlibInstallationCurrently the latest version ofmikutoolkitcan be installed withpipas following:$pipinstallmikutoolkit--upgradeorfrom sourcelike other packages.ImportationTo accessmikutoolkitand its functions import it in your Python code like this:>>>importmikutoolkitasmikuあなたもミクと創ろう、世界を繋ごう。ChangelogVersion 0.0.8Completed Implementation of Crypto Functions (crypto);Version 0.0.6Added HMM (Hidden Markov Model) (HMM_Traid) and Fourier Series (fourier.Series), Dataset Class (Linsep_Binary_Normal_Dataset);ReferencesExtraHatsune Miku SAIKOU !!
Package: mila
lib-namestep to commit:
    step rename:
        rename:
        ./
        |__src/
            |__packge_name/
        to your package name
    step edit:
        edit:
            ./
            |__setup.cfg
        name, version, author, author_email
    step build:
        step-1:
            make a pypi account
        step-2:
            run code on command line:
                Unix/macOS:
                    python3 -m pip install --upgrade build
                    python3 -m pip install --upgrade twine
                    python3 -m build
                    twine upload dist/*
                Windows:
                    py -m pip install --upgrade build
                    py -m pip install --upgrade twine
                    py -m build
                    twine upload dist/*Uploading distributions tohttps://test.pypi.org/legacy/Enter your username:[your username]Enter your password:[your password, this is hidden]Uploadingpackage-name-version-py3-none-any.whl100%|█████████████████████| 4.65k/4.65k [00:01<00:00, 2.88kB/s]Uploadingpackage-name-version.tar.gz100%|█████████████████████| 4.25k/4.25k [00:01<00:00, 3.05kB/s]
Package: milad
This repository contains code for creating rotation invariant descriptions of atomic environments.
The resulting fingerprint vectors can be decoded back into the original atomic system allowing one to build generative models of atomic environments in materials or entire molecules.Code examples will be coming soon!To find out more check out the paper:Uhrin, M. (2021). Through the eyes of a descriptor: Constructing complete, invertible, descriptions of atomic environments,arXiv:2104.09319.Contact martin [at] digitalbaker.net for more details.MILAD is FOSS, under the GPLv3 license.
Package: milagro-bls-binding
BLS12-381 Milagro Rust Binding for PythonThis Python package is a performance-focused alternative toethereum/py_ecc. It bindssigp/milagro_bls(Apache 2.0) rust library.This library is unaudited. Please don't use it in production.For other technical details, seeFAQGet Startedpipinstallmilagro-bls-bindingSeetest.pyfor example usage.BuildThe releasing is unstable at this moment. In case a desired version for your platfrom can't be found viapip install milagro_bls_binding, try build it from the source.It requiresnightlyversion of rust.pipinstall.Testpytesttest.py
Package: milanesas
Imagen de vecstocken FreepikMilanesas / EDA helperTired of wrangling data wrangling during EDA?  Unleash the Python data analysis beast within with milanesas, your new secret weapon for effortless Exploratory Data Analysis!Say goodbye to repetitive coding and hello to intuitive automation: visualize distributions, uncover missing values, identify relationships, and generate comprehensive reports – all with a few lines of code.Stop drowning in data, start diving for insights with milanesas!P.S. It's so user-friendly, even pandas ninjas will be impressed.FeaturesFunctions to draw simple graphs.Functions for drawing orizontal and vertical comparative graphs.Functions for transforming percentage values.Functions for counting unique values.InstallationInstall my-project with pipy.pipinstallmilanesasUsage/Examplesimportpandasaspdimportmilanesas.eda_helperaseh#Importing the library.# Create a test dataframe.df=pd.DataFrame({'Category':['A','B','F','C'],'count':[4,2,3,1]})# Make a horizontal barchart.eh.make_custom_horizontal_bar(df,"col","Custom horizontal bar chart.","Count","Category",False)This simple code will show the following chart.LicenseMIT
Package: milanote-unofficial-api
Unofficial Milanote API for PythonThis is an unofficial api forMilanote. It can be used to automate planned tasks on Milanote.It isnotaffiliated with Milanote in any way.Disclaimer:Please do not use this to spam or do anything illegal.I am not responsible for any misuse of this library.Table of ContentsDocumentationInstallationQuickstartHow to get headers and cookiesExample usageDocumentationDocumentation can be foundhere.Installationpipinstallmilanote-unofficial-apiQuickstartHow to get headers and cookiesLogin your Milanote account in your browser and go to home page.Open the developer tools (F12) and go to the network tab.Filter the results byFetch/XHRand reload the page.You should see a request tome. Right click on it and clickCopy -> Copy as cURL (bash).Go tocurlconverter.comand paste the copied text.Get the headers and cookies from the generated code.Now you can use the headers and cookies in the example below.Example usagefromMilanoteUnofficialApiimportMilanoteApimy_headers={...}my_cookies={...}api=MilanoteApi(headers=my_headers,cookies=my_cookies)# Get the user's home board.home_board=api.get_home_board()# Get the board by id.my_board=api.get_board_by_id("1Pwm1W1wCvBF4C")# Get the sub elements of the board.forboardinmy_board.elements["BOARD"]:api.get_board_elements(board)if(my_board.elements["TASK"]):fortaskinmy_board.elements["TASK"]:print(task.text_content,"completed"iftask.is_completeelse"not completed")
Package: milapy
milapymilapy is an extensible Python 3 interface designed for Ethereum and various
EVM-based chains. It offers a command-line interface, supports multiple chains,
and provides synchronous and asynchronous APIs.Getting startedInstall milapy using pip:pipinstallmilapyNow, let's get started:>>>frommilapyimportChain
>>>mainnet=Chain(id=1)>>>mainnet.get_block_number()18719286Acknowledgementsmilapy were inspired by or directly modified from many sources, primarily:viemweb3.pyethers.js
Package: milasdk
milasdkPython SDK for Mila Air Purifiers.
The primary goal is to use this to power integrations forHome Assistant.Installationpip install milasdkUsageSimple exampleasync def main():
    logging.basicConfig(level=logging.DEBUG, format='%(asctime)-15s %(levelname)-8s %(message)s')

    #create the authenticated session
    async with DefaultAsyncSession(aiohttp.ClientSession(), USERNAME, PASSWORD) as session:
        api = MilaApi(session)

        while True:
            await update(api)
            await asyncio.sleep(60)Please seesimple_example.pyfor a full working example of usage of this library.ObjectsMilaAPIThe main client class that handles communications between the client and Mila service using GraphQLAPI OverviewThe Mila GraphQL schema can be found inmila_schema.gql.
Package: milauth
MilaCoins APIFull documentation:api.milacoins.comSample UsageimportmilauthapiKey="apiKey"secretKey="secretKey"url="https://sandbox-api.milacoins.com"milacoinsApi=milauth.Api(url,apiKey,secretKey)Set the Environment (url)SandBox :https://sandbox-api.milacoins.comProduction:https://api.milacoins.comConfigure Your CredentialsGo to MilaCoins Dashboard(production,sandbox)Navigate to api settingsGenerate the api keysadd IP to the white listRequest MethodmilacoinsApi.request(endpoint:string,method:string[default:'GET'],query:Object,body:Object)Request Exampletry:invoices=milacoinsApi.request('/api/v1/transactions/invoices/',query={'limit':2})print(invoices)exceptmilauth.MilaCoinsErrorasApiError:print(ApiError.code)print(ApiError)API ErrorsAny response status > 399 will throw Error.Error properties:requestID : stringcode: numbermessage: stringname: stringFull errors list:click here
Package: mildom
これは何？Python用Mildom APIの非公式ライブラリです。
開発途中です。バグがあればGithubのissueをお願いします。This is an unofficial api wrapper for Mildom.
If you find any bugs, please report it on issues by English or Japanese.対応状況ProfileV2 APIPlayBack API (配信アーカイブ)アーカイブの範囲取得EnterStudio API (ライブ配信)対応予定async/await(非同期処理)注意 - notice-あくまでも非公式APIの非公式ラッパーです。開発が継続される保証はありません。This is unofficial wrapper. There is no guarantee of continuous development.開発者は募集中です。※バージョン2.0には破壊的変更を含む予定です。使い方 -how to use-下の例に沿って各種オブジェクトを生成して使用する。Use as the instruction below.mildom.api_request から各種API1のレスポンスをJSON(dict)で受け取る。Use mildom.api_request to get API response as json(dict).Userオブジェクト -ProfileV2 API-情報を更新する時は、User.updateで情報を更新できます。You can refresh the data with User.update.importmildomuser_id=12345678# 8桁のIDを指定してユーザーオブジェクトを作成user=mildom.User(user_id)Examples:# bool値でライブ中かどうかを取得print(user.is_live)# プロフィールの画像URLを取得print(user.avatar_url)# レベルを取得print(user.level)ライブ中かどうかだけを取得 -get only if it's streaming or not-importmildomuser_id=12345678ifmildom.is_live(user_id):print('now on live')PlayBack(アーカイブ)オブジェクト -PlayBack API-複数のアーカイブをリストで取得 -get multiple playbacks as a list-importmildomuser_id=12345678user=mildom.User(user_id)# "limit" argument is optional.playback_list:list=user.fetch_playback(limit=10)特定のアーカイブを取得 -fetch specific PlayBack-importmildomuser_id=12345678user=mildom.User(user_id)# index starts from 0.playback=user.fetch_playback(index=10)Examples:# URLを取得print(playback.url)# タイトルを取得print(playback.title)# MP4のURLを取得print(playback.source_url)注意 -notice-「最新から2番目のアーカイブを取得したい」といった場合にはindexを指定してください。使用しているAPIが異なるため、レスポンスを高速化できます。以下は指定範囲のアーカイブをランダムに取得するテストにおけるレスポンス時間の平均値です。0~425
index api time: 0.045539161014556885
----------------------------------------------
legacy api time: 0.06734103298187255


200~425
index api time: 0.049199145197868346
----------------------------------------------
legacy api time: 0.08169150960445404

300~425
index api time: 0.049523269319534304
----------------------------------------------
legacy api time: 0.10116533222198486LiveStream(ライブ配信)オブジェクト -EnterStudio API-importmildomlive_stream=mildom.LiveStream(user_id)# 配信状況を取得print(live_stream.is_live)# タイトルを取得print(live_stream.title)# m3u8形式でストリーミングのURLを取得(VLCなどで再生可能)iflive_stream.is_dvr_enabled:# 配信者がDVRを有効にしていないと取得不可video_stream_links=live_stream.dvr_videosSearch APIcategory引数に指定できるstr一覧List of str that can be used as the category argument.["user", "live_stream", "video", "playback", "recommended_live_stream", "clip_video"]importmildomsearch_result:mildom.SearchResult=mildom.search("query")search_result_with_category_specified=mildom.search("query",category="user")SearchResultオブジェクトの値一覧List of variables of SearchResult object.SearchResult.clip_videos:listSearchResult.live_streams:listSearchResult.recommended_live_streams:listSearchResult.videos:listSearchResult.users:listSearchResult.playbacks:list
Package: mildom-dl
Mildom_dlthis project is currently under development.(日本語/English)How to install mildom_dl$pip3installgit+https://github.com/NDSLib/mildom_dlTODOarchive downloadlive downloadcommand supportResolution Change supportUsage$mildom-dl-uhttps://www.mildom.com/playback/10738086?v_id=10738086-1598025891-oout.mp4orfrommildom_dl.mildomDLimportMildomDLmdl=MildomDL(url="https://www.mildom.com/playback/10738086?v_id=10738086-1598025891")mdl.download("test.mp4")切り抜いて保存(not working)args :
-s : start（seconds)
-e : end (seconds)$mildom-dl-uhttps://www.mildom.com/playback/10738086?v_id=10738086-1598025891-s30-e530-oout.mp4or...mdl.download("test.mp4",start=30,end=530)args-u URL
-o output filename

-s start time (seconds)
-e end time (seconds)
Package: milesConverter
Convert KMs to MilesThis is a basic library that converts given Kilometers into Miles.InstallationYou can install this library using Python Package Manager.python -m pip install milesConverterThe milesConverter is supported on Python 3.6 and above.How to Use?Once installed you can import and use milesConverter in your python program as follows:from milesConverter import km2miles
a = km2miles.km2miles(16)
print(a)
Package: milestone
This is useful for XML files containing multiple hierarchies.ExampleOne example is an XML dialect called TEI which might have been created
to represent a book using chapters (div elements) but you want to use
the text by page (pb element).Imagine an XML file called myfile.xml that contains milestone
elements <pb/> dotted throughout the XML.The following command will split the input file into separate output
files for each pb element:python3 milestone.py -t pb myfile.xmlOr if you have installed the module through pip, you can use:python3 -m milestone -b pb myfile.xmlThe above commands will name the output files with integers.Now imagine that the <pb> elements have an attribute called ‘n’ that
we want to use for the name of each output file.The following command will split the input file into separate output
files, named according to the ‘n’ attribute:python3 milestone.py -t pb -n n myfile.xmlIf you want to transform the hierarchy but not split the data into
separate files, you can use the -x flag:python3 milestone.py -x -t pb -n n myfile.xml > outputfile.xmlTo use this as a library in your own code, import the
Milestone class:from milestone import MilestoneTo share ideas or improvements, please visit the github project at:https://github.com/zeth/milestone
Package: miley
Miley - a proof of concept malware scanner for containersMiley is a proof of concept malware scanner built for scanning container images, as well as local files.Miley works by taking file hashes from the container/directory, and querying the hashes against a malware databse,Malware Bazaar.This tool was created to satisfy classwork for Dakota State University's CSC-842 Security Tool Development.Demo video: [here](coming soon!)PrerequisitesPython 3 interpreterPip3Docker for container scanningUsagepipinstallmiley

miley--helpScan a hash (MD5, SHA-1, or SHA-256)miley--hashf617abd6a9ccb98e34a6e32184004d5a08ea11d198fca9fed88b04b9dfc96de2Scan a directory for malwaremiley--path/path/to/directory/Scan a remote container imagemiley--imagealpine:latestFuture WorkIf I were to maintain this program going forward, I would:speed up the programsupport additional malware databases, such as Virus Totaladd a GUIWhy is it named Miley?Miley is my beloved family dog, who passed away in 2023 due to old age.Miley was always good at detecting and alerting to potentially dangerous situations, despite being blind.I wrote this tool with her memory at the forefront of my mind.
Package: milho-multi-sqlite3-manager
milho-multi-sqlite3-managerDescriptionThe idea is to have an environment with multiple SQLITE3 files, aiming at ease of access and use.
The inspiration for creating this module came from the ease of working with Spark in BigData environments where, generally, everything is integrated, without the need to make several explicit connections in the code.If you want an integrated environment on your machine, create an environment variable called "MULTISQLITE3MANAGER_FOLDER_PATH" with the directory of your folder. You will need to make sure that all files in this folder are SQLITE3 databases.When "to_dataframe" is used, the result is a Pandas DataFrame. The query is previously parsed to map all the databases used in the SQL. Then the module create a sqlalchemy connection and attach that databases to the connection. After that, the query is executed and the result is a Pandas DataFrame.Code Samplesfrommultisqlite3managerimportprint_databases,print_tables,to_dataframeprint_databases()print_tables("DB_NAME")df=to_dataframe("SELECT * FROM db_1.tMisto")df2=to_dataframe("SELECT * FROM db_2_copy.tMisto")
Package: milian-blockchain-sdk
UN链盟 Python SDK欢迎使用UN链盟 SDK. UN链盟 SDK 让您不用复杂编程即可部署、调用、查询合约等服务. 这里向您介绍如何获取UN链盟 Python SDK 并开始调用.如果您在使用 SDK 的过程中遇到任何问题, 欢迎通过我们UN链盟服务平台提问. 亦可在当前 GitHub 提交 Issues.环境准备要使用UN链盟 Python SDK, 您需要一个 APPID 和 一个 Public Key. 请在UN链盟控制台中的控制台上创建和查看项目的 APPID, 或者联系您的系统管理员.要使用UN链盟 Python SDK 在某个区块链进行上链, 您需要在控制台的项目中添加该区块链平台.SDK 获取和安装使用 pip 安装pipinstallmilian-blockchain-sdk开始调用以下这个代码示例向您展示了调用UN链盟 SDK 的4个主要步骤:创建请求类 LMChainRequest 实例 (根据使用情况实例其子类)为实例化的请求类的属性赋值创建服务类 LMChainService 实例根据使用情况调用服务类实例中相应的方法并处理结果# -- coding:utf-8 --# 此处以在 `ETH` 上 `部署合约` 为例importjsonfromlm_sdkimportLMChainDeployRequest,LMChainService# 创建部署合约请求类实例lm_deployReq=LMChainDeployRequest()# 为请求类实例属性赋值lm_deployReq.appId="UN链盟控制台中项目的 APPID"lm_deployReq.chainType="ETH"# 要上的区块链的代码lm_deployReq.hostUrl="API域名"lm_deployReq.publicKey="UN链盟控制台中项目的 Public Key"lm_deployReq.contractData="要部署的合约的 Data"lm_deployReq.inputParams="合约中构造函数的入参"lm_deployReq.ethAddress="以太坊账户地址"lm_deployReq.privateKey="以太坊账户的私钥"# 创建服务类 LMChainService 实例lm_sevice=LMChainService()# 调用部署函数, 并打印返回值result=lm_sevice.chainDeploy(lm_deployReq)print(json.loads(result))
Package: milieu
A helping hand to manage your settings among different environments## IntroManaging application configuration that runs on multiple environmentscan be tough. So **milieu** comes to help you pretend you have onlyone settings file that magically works whenever you deploy.## ProductionThe system environment is the first place **milieu** will try to findthings. So, when the application runs inside of an environment with the rightvariables set, it will just work.So, if you know you have the environment variable `DATABASE_URI` like this:```bash$ export DATABASE_URI=mysql://root@localhost:3306/mydb```The application settings glue code will look like this:```python>>> from milieu import Environment>>> env = Environment()>>> dburi = env.get_uri('DATABASE_URI')>>> dburi.hostu'localhost'>>> dburi.port3306```## LocalIf you just want to load things from a file locally, the`Environment.from_file()` constructor will help you out.```python>>> from milieu import Environment>>> env = Environment.from_file('/etc/app.cfg')>>> env.get_bool('BOOL_FLAG')True>>> env.get_float('FLOAT_VAL')3.14```The file `app.cfg` will look like this:```yamlBOOL_FLAG: TrueFLOAT_VAL: 3.14```## From a folderYou can also load variables from a folder, where each file will be anenvironment variable and the file's content will be the value. Justlike [envdir](http://cr.yp.to/daemontools/envdir.html).Now, say that you have the folder `/etc/envdir/app` and this foldercontains the file `MYSQL_CONN_URI` with a database URL inside ofit. Just like this one here:`mysql://root:secret@localhost:3306/mydb`.To read that directory and load the variable properly, you just haveto do the following:```python>>> from milieu import Environment>>> env = Environment.from_folder('/etc/envdir/app')>>> uri = env.get_uri('MYSQL_CONN_URI')>>> uri.host'localhost'>>> uri.port3306>>> uri.user'root'>>> uri.password'secret'```# Hacking on it## Install dev dependencies```consolepip install -r requirements-dev.txt```## Run tests```consolemake test```## Change itMake sure you write tests for your new features and keep the testcoverage in 100%## Release itAfter you already made your commits, run:```consolemake release```follow the instructions and do the[harlem shake](http://www.youtube.com/watch?v=8vJiSSAMNWw)
Package: milinamaso
MilinamasoThe goal of this repo is to gather everything necessary to train a computer vision model.This repository is based onhttps://github.com/frgfm/Holocron, you should look at it first.Getting startedPrerequisitesPython 3.6 (or more recent)pipInstallationYou can install the package usingpypias follows:pipinstallmilinamasoLicenseDistributed under the MIT License. SeeLICENSEfor more information.
Package: militarynlp
Python Narrative packagespoliticsnlpfor Politicsreligionnlpfor Religionlawnlpfor Laweconomynlpfor Economycpanlpfor Businessmilitarynlpfor MilitaryCommunicate effectively within a common Military frameworkInstall & ImportDependenciesnumpypandasFor detailed installation instructions, see thedocumentation.pipinstallmilitarynlpimportmilitarynlpasmpCheck out:https://cpanlp.com