Saravanan666/pypi-org huggingface dataset:
Package: pymagnet
PymagnetUser friendly magnetic field calculations in PythonGetting StartedInstallingpymagnetcan be done usingpython-mpipinstallpymagnetPymagnet is a collection of routines to calculate and plot the magnetic field due to arbitrary 2D
and 3D objects, like cubes or cylinders, as well as complex non-convex structures stored in STL
files. The library can also calculate the magnetic forces and torques on one magnet due to all other magnets in the system.The approach assumes the magnets are uniformly magnetised, and fully transparent to magnetic fields.
There are some drawbacks to this compared to Finite Element Methods (FEM), but with the advantage of
significantly faster calculations.The current version is written in Python with some speed up usingNumpyandNumba, but the backend is being ported toRustfor improved performance.FeaturesThis code uses analytical expressions to calculate the magnetic field due to
simple magnets:3D: cubes, prisms (cuboids), cylinders, spheres2D: rectangles, squares, circlesand complex compound objects:3D: Polyhedra stored as STL meshes2D: Polygons constructed from collections of line elementsThere are helper functions to plot the data as line, contour, slice, and volume plots,
but the underlying data is also accessible.DocumentationFull documentation can be found here:https://pdunne.github.io/pymagnet/ExamplesExamples can be foundin the repository.Or run on Colab:2D ExamplesGetting Started1D Simple Plots2D Standard Shapes2D Arbitrary PolygonsMisc. Examples3D ExamplesAnalytical ShapesSpheres3D STL Meshes3D Stanford BunnyUpload Your Own Custom MagnetForces and TorquesCubesCylindersSpheresSTL CubesSTL Pentagonal PrismsBinderThe example notebooks can be run as an instance using Binder:UsageForms of this library have been used in a number of projects includingLiquid flow and control without solid walls, Nature 2020.LicensingSource code licensed under theMozilla Public License Version 2.0Documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International(CC BY-SA 4.0)license.This is a human-readable summary of (and not a substitute for) the license, adapted fromCS50x. Official translations of this license are available in other languages.You are free to:Share— copy and redistribute the material in any medium or format.Adapt— remix, transform, and build upon the material.Under the following terms:Attribution— You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.ShareAlike— If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the originalNo additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.ContributionUnless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you shall be licensed as above, without any
additional terms or conditions.
Package: pymagnets
pymagnetsA python package containing the utilities needed by MANGO to generate a FE-model of a magnet and use it to produce magnetic fieldmaps and other post-processing features. See "https://gitlab.cern.ch/mango/mango_gitrepository" for more detailed information and the user guide of MANGO.AuthorsA. VisiveSetuppip install pymagnetsor for older versions than 1.2.1pip install -ihttps://test.pypi.org/simple/pymagnets
Package: pymagnification
PymagnificationMagnify Windows UI elements using PythonPymagnification is a Python wrapper to the C++ Windows Magnification API, with easy Pywin32 integration.the original API :https://docs.microsoft.com/en-us/previous-versions/windows/desktop/magapi/entry-magapi-sdkSupported functionsMagInitializeMagUninitializeMagSetWindowTransformMagGetWindowTransformMagSetWindowSourceMagGetWindowSourceMagSetWindowFilterListMagGetWindowFilterListTheir full signature and description can be found in the stub file.
Package: pymagnitude-light
Magnitude fork that only supports Word2Vec, GloVe and fastText embeddingsI've forked theother lite versionsince package naming was bad and was sometime mixup with the original oneThis repository makes the following changes to the excellent Magnitude project:Project simplified to only support Word2Vec, GloVe and fastText embeddingsApproximate indexing/search methods removedAnnoy, AllenNLP (ELMo) and Torch dependencies removedRemoved internal SQLite related libraries (pysqlite, apsw) and use system SQLite packageRemoved logic to download and stream models. Models must all be locally available, remote servers will not be checked.Build process simplified to use PyPi dependenciesSee Magnitude project for documentation and links to pre-trained models:https://github.com/plasticityai/magnitude
Package: pymagnitude-lite
Magnitude fork that only supports Word2Vec, GloVe and fastText embeddingsThis repository makes the following changes to the excellent Magnitude project:Project simplified to only support Word2Vec, GloVe and fastText embeddingsApproximate indexing/search methods removedAnnoy, AllenNLP (ELMo) and Torch dependencies removedRemoved internal SQLite related libraries (pysqlite, apsw) and use system SQLite packageRemoved logic to download and stream models. Models must all be locally available, remote servers will not be checked.Build process simplified to use PyPi dependenciesSee Magnitude project for documentation and links to pre-trained models:https://github.com/plasticityai/magnitude
Package: pymagnum
pyMagnum is a Python implementation of a read only interface to the
Magnum Energy network.The Python package siteThis software is not endorsed or supported by Magnum Energy, a product
of Sensata Technologieshttps://www.magnum-dimensions.com/Please read the documentation before installing this package.
Older versions of some operating systems, require you to usepython3andpip3to use the Python 3 version of these tools.If you have installed version 1.1.3 and it is working, there is no reason to upgrade to this version. The fundamental software is unchanged, although there ar a few enhancements to functionality.DocumentationChanges
Package: pymagsac
Important newsI am happy to announce that MAGSAC++ had been included in OpenCV.
You can check the documentation atlink.
A comparison of OpenCV MAGSAC++ with the other robust estimators is atlinkthanks to Dmytro Mishkin.The MAGSAC and MAGSAC++ algorithms for robust model fitting without using a single inlier-outlier thresholdThe MAGSAC and MAGSAC++ algorithms proposed for robust model estimation without a single inlier-outlier threshold.The MAGSAC paper is available atLink.The MAGSAC++ available atLink.Both methods are explained in theLatest developments in RANSAC presentationfrom CVPR tutorialRANSAC in 2020.Experiments on homography, fundamental matrix, essential matrix, and 6D pose estimation are shown in the correspondingpresentationfrom the tutorial RANSAC in 2020.Tested on OpenCV 3.46 and 4.3.
To run the executable with the examples, copy the "data" folder next to the executable or set the path in the main() function.If you use the algorithm, please cite@inproceedings{barath2019magsac,
	author = {Barath, Daniel and Matas, Jiri and Noskova, Jana},
	title = {{MAGSAC}: marginalizing sample consensus},
	booktitle = {Conference on Computer Vision and Pattern Recognition},
	year = {2019},
}

@inproceedings{barath2019magsacplusplus,
	author = {Barath, Daniel and Noskova, Jana and Ivashechkin, Maksym and Matas, Jiri},
	title = {{MAGSAC}++, a fast, reliable and accurate robust estimator},
	booktitle = {Conference on Computer Vision and Pattern Recognition},
	year = {2020},
}Install from PyPI with pipThere are pre-compiled wheels for Windows and Linux for Python 3.8 - 3.11 that you can install with:pip install magsacThanks to@akaszynskifor his contributions.Installation C++To build and install C++-onlyMAGSAC/MAGSAC++, clone or download this repository and then build the project by CMAKE.$gitclonehttps://github.com/danini/magsac--recursive
$cdbuild
$cmake..
$makeInstall Python package and compile C++python3./setup.pyinstallorpip3install-e.Example projectTo build the sample project showing examples of fundamental matrix, homography and essential matrix fitting, set variableCREATE_SAMPLE_PROJECT = ONwhen creating the project in CMAKE.Next to the executable, copy thedatafolder and, also, create aresultsfolder.Jupyter Notebook exampleThe example for homography fitting is available at:notebook.The example for fundamental matrix fitting is available at:notebook.The example for essential matrix fitting is available at:notebook.An example comparing different samplers on fundamental matrix estimation is available at:notebook.RequirementsEigen 3.0 or higherCMake 2.8.12 or higherOpenCV 3.0 or higherA modern compiler with C++17 supportGFlagsPerformance of MAGSAC++MAGSAC++ is the state of the art according to "RANSAC in 2020" CVPR tutorial'sexperiments.Performance of MAGSACMAGSAC is the state of the art according to the recent study Yin et.al."Image Matching across Wide Baselines: From Paper to Practice", 2020.
Package: pymahjong
Japanese Riichi MahjongBranchBuildmasterdevelopSimulator of Japanese Riichi Mahjong (https://en.wikipedia.org/wiki/Japanese_Mahjong) written in C++.关于C++部分的说明（中文版）Seeherefor the Python APIs for e.g., decision AI research.Citation@inproceedings{
han2022variational,
title={Variational oracle guiding for reinforcement learning},
author={Dongqi Han and Tadashi Kozuno and Xufang Luo and Zhao-Yun Chen and Kenji Doya and Yuqing Yang and Dongsheng Li},
booktitle={International Conference on Learning Representations},
year={2022},
url={https://openreview.net/forum?id=pjqqxepwoMy}
}Contact usEmail:hdqhdq58@outlook.comQQ group: 608064044
Package: py-maia
maiaTipsAbout maiaVersionsVersion 1.5Version 1.1Version 1.0FunctionsAutoInstallerAbout "maia"This python module was created to make code clear and easy.This page will be updated quite often, like the project itself, so I recommend checking for updates oftenYou can install this package by using a simple command:pip install py-maiaAnd import this package usingimport maiaVersion 1.519 February 2021switch & caseThat just popular method of iterating, which unfortunately was not added to this language
But in this function I tried to add this functionality in Pythonfrom maia import switch

x = 10
for case in switch(x):
    if case(0):
        print('num is 0')
        break
    elif case(10):
        print('num is 10')
        break
    else:
        print('num not in list')
        breakLoadings & printrNow you can use loadings in your project!from maia import Loading, printr
import time

for x in Loading.user_load(['x', 'b', 'c'], desc='Object: %'):
    printr(x)
    time.sleep(1)
print('All objets done.')Or you can load a usual onefrom maia import Loading, printr
import time

for x in Loading.usual(xrange=range(0, 100)):
    printr(x)
    time.sleep(0.01)So, what about "printr()" func? This function allows you to edit
last line into new line. It can be helpful in many situations then you need
to work with a console, so use it :)PhotoNow you can load photo from wedsite using just a one simple linePhoto(path).download(link)I will add some more functions in this class laterVersion 1.1AutoInstallerThat function will help you install packages without using a console command "pip install ..."Example:from maia import AutoInstaller
try:
    import colorama
except ImportError:
   AutoInstaller()
print("Hello, AutoInstaller" + colorama.Fore.GREEN)Version 1.0Just crashed package, so you can just skip it
Package: pymaibool
pymaiboolOverviewpymaibool is a library for adding ambiguity to bool.UsagefrompymaiboolimportpBool# credibility: 50%b=pBool(0.5)print(b)print(b)print(b)True
True
FalseMethods.get(true: Any, false: Any)# Trueb=pBool(1)print(b.get("yes","no"))yes.fix()Fix the return to last returnb=pBool(0.5)foriinrange(10):print(b)ifi==4:print("fix")b.fix()True
False
False
True
True
fix
True
True
True
True
True.unfix()Release fix()b=pBool(0.5)# fix itb.fix()foriinrange(10):print(b)ifi==4:print("unfix")b.unfix()True
True
True
True
True
unfix
False
False
True
False
Trueversion0.1.2Githubhttps://github.com/toripppppy/pymaibool
Package: pymaidol
PymaidolPymaidol 是一种标记语法，用于将 Python 代码嵌入文本中，使得文本在运行时可动态更改包含的内容。与ProMaid相比，Pymaidol 不只是单纯的将数据嵌入至模板（Template）的对应位置，还能将复杂的处理逻辑呈现在模板中，甚至可使用在模板中定义的函数对数据进行处理。⚠警告：Pymaidol 目前处于开发阶段，语法和一些对空白符、换行符的处理逻辑尚未确定，以后可能会被修改。强烈不建议在生产环境中使用。环境要求与安装python >= 3.10pipinstallPymaidol-ihttps://pypi.python.org/simple第一个 Pymaidol 模板创建模板文件首先，假设你创建了一个名为pymaidol_test的文件夹。使用编辑器或者 IDE 打开该文件夹作为工作目录。在pymaidol_test文件夹下打开命令行，输入以下命令：python-mpymaidol-nFirstTemplateFirstTemplate是模板类的类名。命令行会输出以下内容，同时文件夹中会生成FirstTemplate.pymd和FirstTemplate.py两个文件：Success:file"FirstTemplate.pymd"created
Success:file"FirstTemplate.py"created编写模板设计文件首先，用以下代码将FirstTemplate.pymd中的全部内容替换掉：frompymaidolimportTemplateBasefrompymaidol.AnnotationTypeimportFULL_ANNOTATION_TYPE,AnnotationTypeEnumclassFirstTemplate(TemplateBase):def__init__(self,package_name:str,template:str|None=None,template_file_path:str|None=None,supported_annotation_types:list[AnnotationTypeEnum]=FULL_ANNOTATION_TYPE)->None:super().__init__(template,template_file_path,supported_annotation_types)self.package_name=package_namedefmain():template=FirstTemplate("Pymaidol")string=template.Render({"says":"Hello World"})print(string)if__name__=="__main__":main()这段代码主要修改了以下部分：为FirstTemplate类添加了package_name属性。添加了main函数，以实例化FirstTemplate类。向FirstTemplate类的构造函数传入了package_name参数，该参数的值为Pymaidol。调用了Render方法，向其传入了一个字典{"says": "Hello World"}。然后，用以下代码替换FirstTemplate类中的全部内容：@{importtime}Now(@(time.ctime())),Say"@(says)"using@(self.package_name)!运行FirstTemplate.py，命令行会输出以下内容：Now(TueMay2319:21:192023),Say"Hello World"usingPymaidol!另请参阅Pymaidol 语法参考Pymaidol_API目录
Package: py-mail
py-mailThe project will provide the ability to receive data from the gmail mailbox in human readable type.
For these purposes, there are two main functions:get_mail_text_from_last_fewget_mail_text_by_id1. get_mail_text_from_last_fewThis function looks at each letter in the mailbox and return the letter for the specified user.
"How is this possible?" -get_mail_text_from_last_fewrequires a unique email address. For example:some.address+9014@gmail.comsome.address+currnet_date()@gmail.comsome.address+datetime.now()@gmail.comArguments:expected_email: expected email address who received the message ~some.address+9014@gmail.comflag: additional filter for gmail messages ~flag='Subject "Welcome to Gmail!"'timeout: time to exit the loop in sec. (end fetching data) ~timeout=60last_few: number of recent emails among which will be searched by expected_email ~last_few=5label: target label. Will be used this label if then different from MailClient ~label='inbox'fromdatetimeimportdatetimeimportpytestfrompy_mailimportMailClient@pytest.fixturedefmail_client():mail_client=MailClient(email_address='some.address@gmail.com',password='AmazingPass',label='inbox')yieldmail_clientmail_client.logout()defget_email_by_idimap_client(mail_client):expected_email=f'some.address+{datetime.now()}@gmail.com'mail=mail_client.get_mail_text_from_last_few(expected_email=expected_email,last_few=10,timeout=60)returnmail# or you can search some specific data from letter via regex2. get_mail_text_by_idThis function takes the letter by index (the last one is by default) and returns its content (text).
The downside is that you can get the wrong email:
because of problems with long delivery or because of the large number of incoming lettersArguments:label- additional filter for gmail messages ~flag='Subject "Welcome to Gmail!"'flag- target label. Will be used this label if then different from MailClient ~label='inbox'index- index of required mail (bigger is newer) ~index=-1importpytestfrompy_mailimportMailClient@pytest.fixturedefmail_client():mail_client=MailClient(email_address='some.address@gmail.com',password='AmazingPass',label='inbox')yieldmail_clientmail_client.logout()defget_email_by_id(mail_client):mail=mail_client.get_mail_text_by_id(label='other inbox',flag='subject "Confirm your device"')returnmail# or you can search some specific data from letter via regexUseful Links:regexall flags variables
Package: pymailcheck
Suggest corrections to user-misspelled email addresses.Python port ofmailcheck.js.Installation$pipinstallpymailcheckUsage>>>importpymailcheck>>>pymailcheck.suggest("test@example.con"){'domain':'example.com','full':'test@example.com','address':'test'}>>>pymailcheck.suggest("test@example.org")FalseYou can override or append the built-in list of domains, top-level domains,
and/or second-level domains:ParameterDefaultsExampledomainspymailcheck.DOMAINSyahoo.comtop_level_domainspymailcheck.TOP_LEVEL_DOMAINSyahoosecond_level_domainspymailcheck.SECOND_LEVEL_DOMAINScom>>>pymailcheck.suggest("test@contosl.com")False>>>custom_domains=["example.com","contoso.com"]>>>pymailcheck.suggest("test@contosl.com",domains=custom_domains){'domain':'contoso.com','full':'test@contoso.com','address':'test'}>>>pymailcheck.suggest("test@contosl.com")False>>>custom_domains=pymailcheck.DOMAINS.union(("example.com","contoso.com"))>>>pymailcheck.suggest("test@contosl.com",domains=custom_domains){'domain':'contoso.com','full':'test@contoso.com','address':'test'}>>>defmy_distance_function(s1,s2):...>>># Have a look at `strsim` PyPI package, for example>>>pymailcheck.suggest("test@contosl.com",distance_callable=my_distance_function){'domain':'contoso.com','full':'test@contoso.com','address':'test'}Running Tests$python-munittestdiscover
Package: pymailers
PyMailersThe classic email sending library for Python.InstallationStart to do the installation.pipinstallpymailersExampleA simple example is just sending an email message with PyMailer, indisplayyou can replace it withfalsethen it will not get any logs but if it is madetruethen you will get a log after sending the email message.frompymailers.PyMailerimportPyMailerpymailer=PyMailer({'smtp_host':'smtp.gmail.com','smtp_port':587,'email':'xxxxx@gmail.com','password':'xxxxxxxxxx','to':'xxxxx@gmail.com','subject':'Hello World','body':'<p>Hi im Rio</p>','display':True})pymailer.send()DonatePaypal :Support meContact meContact me via email:rioagungpurnomo.ak@gmail.com, I'm waiting for your input or suggestions.
Package: pymailgen
pymailgenStarting from the content of a CSV file and a template text file,pymailgengenerates a list of emails to be sent out using a command-line SMTP client.pymailgendoes not send the emails itself, but it relies on external command-line tools to do it.pymailgengenerates a shell script calledsendall.shthat contains the list of commands to send out the emails using a command line STMP client.This two-stage procedure has at least two advantages:you can inspect the emails before sending them out;in case of any issue in the sending, you have a log of what happened, and you can send the failed emails by just manually editing thesendall.shscript to keep the necessary corresponding commands.At the moment, the only supported SMTP client isssmtp.
Some useful info to configuressmtpfor being used with Gmail are reportedin this blog.The logic ofpymailgenis super simple.
Therefore, it is easy to hack and customize in case a more complex logic is required to fill the template.How it worksThe elements required to generate the emails are:the body of the email: a plain text file template with placeholders;the header of the email: a plain text file with standard email header format;the list of recipients: a CSV file with as many optional fields as needed.The body and the header of the email can contain placeholders in the form of{Field}.
For each email,pymailgenreplaces the placeholder with the value in the columnFieldin a CSV file containing the necessary information.
Association between field and placeholder is case-sensitive.Each individual generated email is stored in a file namedemail_X.txt, whereXis an incremental number.Once all the necessary data are in place, run the following command to generate the emails:pymailgen body.txt contacts.csv --ssmtp header.txtIf the SMTP client is properly configured, the emails will be sent out by runningbash sendall.shBlacklistingIf the input CSV file contains a column namedBlacklist(case-sensitive), every row with any non-empty content in that column will be skipped during the generation of the set of emails.
Package: pymail-io
An Asynchronous mail server that's built on CPython's AsyncIO library.Read the docs:Documentationpipinstallpymail-io# Install & run RedisdockerrunredisQuick StartRun PyMailIO as a complete emailing solution:frompymail_io.pymailio_taskimportTaskp=Task(password="wizard",receiver_email="joe@blogs.com",# Or a list of emails receiver_email=["joe@blogs.com", ...],sender_email="your_email@gmail.com",email_host="smtp.gmail.com",)# if you are running PyMailIO within the life time of a long running process, such as# a web framework of rest API, then set `run_forever=True` as this will yield much# better performances.Create your email subject & bodyr=p.send_email(subject="The subject...",body="The email body...",)The response from callingp.send_email:"""{"metadata": { # metadata... },"email": {"subject": subject,"body": body,"email_init": # time that PyMailIO sent your email,}}"""To get the results of the email from the store, pass the metadata
toget_email_response. For example:# r is the return value from calling p.send_email (see above)r=p.send_email(subject="The subject...",body="The email body...",)email_meta=p.get_email_response(r)There are 2 datetime values that reference when PyMailIO executed thesend_emailmethod & also when the email was actually sent from the background queue:
Thedatetime_execmethod will give you the datetime value that PyMailIO executed
thesend_emailmethod.
For example:r=p.send_email(subject="The subject...",body="The email body...",)self.datetime_exec()There are 2 datetime values that reference when PyMailIO executed thesend_emailmethod & also when the email was actually sent from the background queue:
Theexec_timemethod will give you the datetime value that PyMailIO'squeueexecuted
thesend_emailmethod.
For example:r=p.send_email(subject="The subject...",body="The email body...",)# Some time in the future...r=get_email_response(r)time_email_sent=self.exec_time(r)To update the task queue & store settings, you can pass in extra values as kwargs to
theTaskclass. For example:p=Task(password="wizard",receiver_email="joe@blogs.com",# Or a list of emails receiver_email=["joe@blogs.com", ...],sender_email="your_email@gmail.com",email_host="smtp.gmail.com",# extra settings:store_port=6379,store_host="localhost",db=0,workers=1,)Built WithPyTaskIO- Asynchronous Tasks Library using asyncioAuthorsJoe Gasewicz-Initial work-JoeGasewiczLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsThis library is based on & influenced byflask-mail.
Package: pymailorganizer
PyMailOrganizerPython command line mail organizer.Allows you to browse your emails, read, filter, see a graphic of the top 10 senders and delete what you don't need. I created it initially for my personal use but then I decided to share.Works only with Gmail and Outlook mail accounts at the moment.InstallationYou can install the PyMailOrganizer fromPyPI:python -m pip install pymailorganizerThe PyMailOrganizer is supported on Python 3.7 and above.Command line optionsd                   Delete by sender
 d[index]            Delete by [index]
 f                   Filter by sender
 g                   Graph top 10 senders
 h                   Help manual
 l                   List last 20 mails
 l[number]           List last [number] mails
 r                   Reload mails from server
 s                   Set number of mails loaded from server
 [number]            Show selected mail on console
 [number] as html    Show selected mail on browserSettingsSettings can be changed in the settings.json file. Example:{
"max_default_loaded_mails": 25,
"remove_urls": false
}wheremax_default_loaded_mails = default number of emails loaded from server
remove_urls = removes all urls from mail messages to improve readability