Saravanan666/pypi-org huggingface dataset:
Package: magick-tile
magick-tileThis package and command-line utility relies on Imagemagick to efficiently create derivative tiles of a very large image, and structure them into directories compliant withIIIF Level 0specification for static sites.This takes inspiration heavily fromhttps://github.com/zimeon/iiif/blob/master/iiif_static.py, but uses ImageMagick rather than Pillow in order to speed up generation at the expense of a less flexible treatment of images.PrerequisitesPython > 3.9Imagemagickmust be available on your pathInstallationpip install magick-tileRunUsage: magick_tile [OPTIONS] SOURCE OUTPUT IDENTIFIER

 Efficiently create derivative tiles of a very large image, and structure them into
 directories compliant with IIIF Level 0.

╭─ Arguments ──────────────────────────────────────────────────────────────────────╮
│ *    source          FILE       [required]                                       │
│ *    output          DIRECTORY  Destination directory for tiles [required]       │
│ *    identifier      TEXT       Image identifier to be written to final          │
│                                 info.json (e.g.                                  │
│                                 https://example.com/iiif/my_image)               │
│                                 [required]                                       │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ --tile-size                 INTEGER                   Tile size to produce       │
│                                                       [default: 512]             │
│ --format                    [jpg|tif|png|gif|jp2|pdf  File formats to generate   │
│                             |webp]                    (must be supported by      │
│                                                       Imagemagick's 'convert')   │
│                                                       [default: jpg]             │
│ --install-completion                                  Install completion for the │
│                                                       current shell.             │
│ --show-completion                                     Show completion for the    │
│                                                       current shell, to copy it  │
│                                                       or customize the           │
│                                                       installation.              │
│ --help                                                Show this message and      │
│                                                       exit.                      │
╰──────────────────────────────────────────────────────────────────────────────────╯This will create and populate the specified output directory with tiles from a given image.N.b. because several of the Imagemagick utilities called here already utilize multiple cores, returns for running this script in parallel diminish rapidly.Matthew Lincoln
Package: magick-tweet-preprocessor
Magick Tweet Preprocessor Vihaus LjovanMagick Tweet processor is a small program that does some NLP-magick on tweet-strings.
It comes with a cli-interface on which the language (english or spanish) can be chosen
as well as what kinds of modifications on the original string (tokenisation,
hiding URLs, hiding @-mentions etc.) the program should undertake.We used the MIT Licence because "I want it simple and permissive" sounded
perfect for our usecase. Also we read through the LICENSE.txt and it sounded
good to us.Example: processing tweets in file 'tweets.txt' without emoji-removal but with
stopword-, hashtag- and url-removal as well as anonymization of mentions:tpp --file tweets.txt --no_emoji_removalAll possible flags:-h, --help                 Show this help message and exit
  -f, --file                 Use file(s) instead of string.
  -u, --no_url_removal       Process without url-removal
  -E, --no_emoji_removal     Process without emoji-removal
  -H, --no_hashtag_removal   Process without hastag-removal
  -a, --no_anonymize         Process without anonymization
  -S, --no_stopword_removal  Process without stopword-removal
  -e, --english              Set Language to english (already default)
  -s, --spanish              Set Language to spanish
Package: magickwand
AbstractThese are Python bindings for the ImageMagick MagickWand C-API.AuthorsOliver Berger,http://digitalarchitekt.deIan Stevens,http://crazedmonkey.com/Victor Ng,http://www.monkeybeanonline.com/Benjamin Schweizer,http://benjamin-schweizer.de/contactLicenseCopyright (c) 2010 Oliver Berger and others. All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.Neither the name of Benjamin Schweizer nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS
IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NOT YET AVAILABLE# eof.
Package: magicli
magiᴄʟɪ✨Automatically turn functions of file into command line interface.Installpip install magicliGet startedBasic usage example.
By default, every function except for themainfunction is callable through command line arguments.frommagicliimportmagiclidefmain():magicli()Define name of CLI insetup.pyIn order to define the name of the CLI, it needs to be defined in thesetup.pyfile. The following code sets up a sample CLI with the following folder structure.hello/
└──setup.py
└──hello.pysetup.pyfromsetuptoolsimportsetupsetup(name='hello',version='0.1.0',install_requires=['magicli'],entry_points={'console_scripts':['hello=hello:main']})hello.pyfrommagicliimportmagiclidefmain():magicli()defhello(name='World',amount=1):for_inrange(int(amount)):print(f'Hello{name}!')The script can then be called in the following way.helloName--amount3This outputsHelloName!
HelloName!
HelloName!Help messageBy default, a help message will be created based on the available functions.
For the example above, callinghello --helpwill display this help message.Usage:hello--name--amount
Package: magic_lightning_remote
Web controller for the magic lightning irda lamplight
(a cheap rgb irda controlled lightbulb)I currently have this one:_http://es.aliexpress.com/store/product/3W-E27-16-Color-80LM-LED-RGB-Magic-Light-Bulb-Wireless-Remote-Control/1147259_32224553056.htmlAs you can see, is really cheap!To be able to use this, you’ll probably want a micro-pc and a IR receiver/emmiter.
I’ve used a prototype board, a receiver and an infrared led, nothing more.Free software: BSD licenseDocumentation:https://magic_lightning_remote.readthedocs.org.FeaturesWeb interface emulating the full remote controlSimple API enabling RestTasker controlHistory0.1.0 (2015-05-18)First release on PyPI.
Package: magiclog
magiclogsimplifies application and library logging, allowing you to use
loggers where you would use print statements without complicated setup or
logger discovery.frommagiclogimportlogdefmain():log.configure()log.info('Hello, INFO.')if__name__=='__main__':main()magiclogtunes the logging config in a way that’s friendlier than theloggingmodule’s basic config, without asking any more work from the
library author:from magiclog import logretrieves the logger for your application, using
a little meta-programming, obviating the need to figure whether you should
use__package__,__name__or thesys.argv[0].When you’re running your task in the background,magiclogrecognizes
this and logs to Syslog; otherwise it logs tostderr.magiclogprovides a simply one-line format forstderr, with the time
and a message, but can also log in an extended format, with logging and
level, when requested. Andmagiclogalways includes this information when
logging to Syslog.magiclogonly arranges to log at all when you calllog.configure().
If you’d like to customize levels, you can explicitly pass them tolog.configure()with thelevel=...,syslog=...andstderr=...named parameters. Otherwise, your logger has a null handler, as described inConfiguring Logging for a Librarylog.configure()# Same as the above.log.configure(level='info')# Use Syslog or stderr based on whether or not we're in the foreground,# but at debug level instead of info level.log.configure(level='debug')# Enables both channels, whether foregrounded or backgrounded.log.configure(syslog='info',stderr='info')# Enables the more verbose console logging format, with module and function# name information as well as time.log.configure(level='info',extended=True)Configuring Other Modules’ LoggersTheloggerfunction inmagiclogprovides for logger discovery, walking
the stack and using the module or package name, or the name of the running
executable, depending on the situation. You can useloggerto retrieve and
configure the loggers of other modules, too, following the same rules as your
application logger.importmagiclogfrommagiclogimportlogdefmain():# You can pass a module object or a string to ``logger``. Here, we# configure magiclog's own (usually not very useful) logger.magiclog.logger(magiclog).configure()# Obtain a reference to Boto3's logger and auto-configure it. The# logger for ``magiclog`` will print out a few things as it sets this# logger up.magiclog.logger('boto3').configure()log.configure()log.info('Hello, INFO.')if__name__=='__main__':main()
Package: magic-logger
magic_loggerCoverageReleaseThis very simple module does its best to help you use Python'sloggingcorrectly, by making sure you always
invoke the rightLoggerfor a module. No more boilerplacelogger.getLogger(__name__)! All this
without any external dependencies - this is just a tiny wrapper forlogging.Getting startedTo install:pipinstallmagic_logger==1.0.0OverviewImportloggerfrommagic_loggerand just call any methods you'd normally call on alogging.Loggerinstance:# Let's assume we are in `mypackage.mymodule`frommagic_loggerimportloggerlogger.info("Someting very informative")# equivalent to logging.getLogger(__name__).info(...)magic_logger.loggeralso acts like a proxy for other commonly used functions inlogging.config:logger.dict_config(...)# dispatches to logging.config.dictConfiglogger.file_config(...)# dispatches to logging.config.file_configlogger.listen(...)# dispatches to logging.config.listenlogger.stop_listening(...)# dispatches to logging.config.stopListeningWhat about the other stuff inloggingFor anything else, just useloggingdirectly.magic_loggerjust proxies calls over anyway so you can useloggingas usual.How does it work?When you ask for an attribute ofmagic_logger.logger(other than the configuration ones listed above),
it looks at the stack and determines the module from where the call originates. It then returns the attribute
of the same name of the correct logger for that module, usinglogging.getLogger. As simple as that!What if I call a module usingpython -mand log something from it, will that use the logger for__main__?No, it will simply look at the module's__spec__for the name. Unless you run an interactive session and log straight from it,
you won't ever use the logger for__main__!
Package: magiclondrina
Procurador de carta de Magic - LondrinaDescriÃ§Ã£o:O objetivo do programa Ã© melhorar a velocidade de pesquisa de cartas de Magic em lojas noMYP, inicialmente o programa funciona com os 3 maiores de Londrina:Piedade,Wladebasdao.Como funcionaAo rodar o programa, Ã© necessÃ¡rio inserir o nome da carta desejada para pesquisa, em seguida o script verifica se a carta existe no banco de dados do Scryfall e returna a carta com a melhor conpatibiidade, caso nÃ£o exista, o programa vai dar um reprompt. Com o web scrapping doBeautifulSoupÃ© pÃ³ssivel extrair informaÃ§oes da carta desejada em cada uma das lojas, retornando em forma tabulada os dados obtidos.
Package: magicmapper
MagicmapperUnconventional (?) approach to mapping data from one object to another.UsageCheck out test_magic.py for some examples. The fundamental idea is that we
define a target schema which we can populate using the magicmapper.
Consider the following source datasource_data=[{"person":{"name":"foo1"}},{"person":{"name":"foo2"}},]Say we'd like to map this to thisdestination_data=[{"name":"foo1"},{"name":"foo2"},]This could be done with the following magicmappingfrommagicmapperimportmagic_map,Schema,Valuemagic_map([Schema({"name":Value("person")>>Value("name")})],test_source_data)
Package: magic-marker
magic-markerThe magic-marker tool will read off the flake8 config and fix any missing marks that it is able to fix.Fixable MarksMarks that are configured to have value_match=uuid.  Magic Marker will read the configuration and generate the correct mark with a valid UUID as the argument.Marks that are configured to have name=test_case_with_steps.  Magic Marker will generate a mark named ‘test_case_with_steps’ with no arguments.Quick Start GuideInstallmagic-markerfrom PyPI with pip:$ pip install magic-markerFor more information on using the magic-marker launch help by:$ magic-marker --helpContributingSeeCONTRIBUTING.rstfor more details on developing for the magic-marker project.Release ProcessSeerelease_process.rstfor information on the release process for ‘magic-marker’CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History
Package: magic-maze
magic_maze介绍迷宫游戏项目目的娃最近迷恋迷宫游戏，买的迷宫书走完就没了，他表示还没玩够。所以就做了这个迷宫游戏，可以实现随机生成迷宫、走迷宫、显示答案等效果，让他可以无限玩。二维版本的玩腻了，小孩子还是比较喜欢有故事情节的迷宫，又追加做了三维视图模式(姑且叫: 好饿的熊猫找竹叶球吃)。安装使用源码安装:git clone https://github.com/HeLiangHIT/magic_maze.git && cd magic_maze && python setup.py installpip源安装:pip install magic_maze源地址https://pypi.org/project/magic-maze/下载可执行文件: 到https://github.com/HeLiangHIT/magic_maze/releases下载可执行文件三维视图的迷宫: 下载的 exe 二进制 >> 右键 >> 创建快捷方式 >> 修改快捷方式文件的目标(在后面追加-d 3d) >> 双击打开快捷方式查看帮助使用: 源码python main.py --help/ 二进制maze --help支持自动生成迷宫、寻找最佳路径，且动态显示迷宫生成和搜索过程支持手动绘制迷宫(鼠标左键绘制通道、右键绘制墙体)、走迷宫(鼠标左键走、右键取消)maze -d 2d运行二维视图的迷宫maze -d 3d运行三维视图的迷宫软件架构核心目录结构解释:algorithm 里面核心算法已抽象为通用接口，以支持扩展多种界面展现方式，详情查看帮助文档magic_maze├──README.md# 项目介绍├──algorithm# 核心算法和数据结构实现├──demo# 使用示例模型等├──doc# 帮助文档，主要基于 script/generate_doc.sh 脚本在提交时自动生成├──main.py# 主程序├──requirement.txt# 依赖├──script# 单元测试、帮助文档生成等自动化脚本└──ui# pyqt/panda3d 的 UI 主程序欢迎扫码关注作者，获取更多好玩的程序哦～
Package: magicmemoryview
A helper / hack to allow us to cast ammap.mmapor other buffer to
a Cython pointer of the correct type.Cython is capable of casting a lot of things to a C pointer of the
correct type, especially with the aid ofmemoryview. However,
in Python 2,memoryviewlacks thememoryview.castmethod
(so Cython won’t let us change the dimensions of the array). Further,
both Python 2 and 3 require the memory map to be writable (making
the pointer typeconstdoes not seem to help here either).This class takes a (possibly read-only) memmap object, and produces a
Python object with a__getbuffer__method that returns The Right Thing.It pretends that the underlying buffer is writableto make Cython
happy. If you give it a read-only buffer, and try to write to the result,
then you will have a bad time.When a Python object is cast by Cython to a pointer, it holds a
reference to the underlying Python object in order to prevent the
memory to which it refers being garbage collected. TheMagicMemoryViewin turn keeps a reference to the underlying data, so everything should
behave as expected.Usage:from magicmemoryview import MagicMemoryView

cdef double data[:, :, :]

data = MagicMemoryView(source_buffer, (24, 12, 25), "d")
Package: magicml
☕️ AboutMagicMLis an open sourcesoftwarewith aGraphical User Interface (GUI)to simplify Machine Learning (ML) models usage following theMLOpsparadigm. It provides acollectionof (scientific)machine learning algorithmsand the necessary tooling formodel management.MagicMLtake some inspiration from theWekasoftware but in a lightweight manner, leverage the python ML ecosystem, the modern web stack (pythonDash) and try to follow theMLOpsguidelines.🎯 GoalsMake ML algorithms moreacessibleCreate anopen sourceMLworkbenchfor researchers and enginners🚀 FeaturesModel architecture-> model manager for using  pre-implemented models and allow the user to add this owns. In addition, by supporting theOpen Neural Network Exchange format (ONNX), MagicML is frameworkagnostic.Model training-> train from scratch the model using the built-in tooling. In addition pre-trained models could also be used for specific tasks.Model evaluation-> for a selected model, the corresponding State Of The Art (SOTA) metrics are provided in order to assess the model performances.Model versioning-> a tool for versioning ML training runs and experimentsModel deployment-> utilities for model deployment in productionSummary-> automatic ML experiments reports after each runStand on theshoulders of giants->MagicMLis built on top ofDash,Pandas,Keras,scikit-learn,mlflow, andseaborn.⚠️ WarningsFor the moment:The development of the project takes place in aprivateGitHub repositoryThe project is at a veryearly stage->Nothingis implemented in thispublished versionThedocumentationismissingTheGitHub repositoryas well as ausablePython package will beavailablein theupcoming monthswhen the project will bemore advanced.🤝 Community-drivenMagicMLis foremost acommunity-drivenproject ! The project will behighly collaborativeand everyone is welcome to the project ! 🤗Don't hesitate to contact me if you want to know more or are interested in ! 😃Stay tuned !🗓️
Package: magic-module-scaffolder
magic-module-scaffoldergenerates or updates a Magic Module Resource definitions with the metadata
of the Google Cloud APIs.When generating the definitions, it will first use thegainterface, and
supplement the definition with thebetainterface, so that it can
determine which fields are only available on thebetainterface.The resulting definitions are not perfect and may need some polishing. Most
properties required by the magic module are derived from the free text
description field. So, please do check the result.Existing field definitions are not overwritten, so once inspected and
correct you can rerun the merge operation as often as you want. Note that
fields of a resource which do not exist in the API are removed.example - updateTo update an existing resource definition, type:$ mm-scaffolder update --inplace --resource-file tests/mmv1/products/compute/BackendService.yaml

INFO: adding port as ga field to definition of BackendService
INFO: adding kind as ga field to definition of BackendService
INFO: adding network as ga field to definition of BackendService
INFO: adding maxStreamDuration as ga field to definition of BackendService
INFO: adding region as ga field to definition of BackendService
INFO: adding connectionTrackingPolicy as ga field to definition of BackendService
INFO: adding failoverPolicy as ga field to definition of BackendService
INFO: adding subsetting as ga field to definition of BackendService
INFO: adding selfLink as ga field to definition of BackendService
INFO: adding serviceBindings as ga field to definition of BackendService
INFO: adding failover as ga field to definition of BackendService.backends.
INFO: keeping beta field connectTimeout from definition of BackendService.circuitBreakers in ga 
INFO: adding requestCoalescing as ga field to definition of BackendService.cdnPolicy
INFO: adding signedUrlKeyNames as ga field to definition of BackendService.cdnPolicy
INFO: adding bypassCacheOnRequestHeaders as ga field to definition of BackendService.cdnPolicy
WARNING: mismatch in field name BackendService.localityLbPolicies: expected "localityLbPolicyConfig" defined ""
INFO: adding optionalFields as ga field to definition of BackendService.logConfig
INFO: adding optionalMode as ga field to definition of BackendService.logConfig
WARNING: mismatch in field name BackendService.localityLbPolicies: expected "localityLbPolicyConfig" defined ""
INFO: adding authentication as beta field to definition of BackendService.securitySettings
INFO: adding awsV4Authentication as beta field to definition of BackendService.securitySettings
INFO: adding subsetSize as beta field to definition of BackendService.subsettingexample - generateTo generate a new resource definition, type:$mm-scaffoldergenerate\--product-directorytests/mmv1/products/networksecurity\serverTlsPoliciesaddressGroups
INFO:WritingtodefinitionofServerTlsPolicytotests/mmv1/products/networksecurity/ServerTlsPolicy.yamlinstallto install, type:pip install magic-module-scaffolder