Saravanan666/pypi-org huggingface dataset:
Package: magic-docker
magic_dockerMagic Docker is an automated tools to build a Docker ImageHi there
I hope all is well, and you are enjoying the time.You are using the Magic-Docker Tools.
It is an automated python application to create an error-free Docker Image.
The current version has been programmed for Linux and MAC Os if you are a Linux or MAC user, good news! This magical tool will take care of all the steps.
If you are windows user, the program still will help you.
It will create the Dockerfile, requirements, and the shell script to build and save the created docker image. "
Please feel free to contact me if you needed any further assistance.Thank you.Babak.EAHow to install :PyPi :
pip install magic_dockerHow to run :using Jupyter notbookimport magic_dockermagic_docker.Magic()check version : magic_docker.Magic.version()source code : githubhttps://github.com/BabakEA/magic_dockerTraining :https://www.youtube.com/watch?v=Sh4PdZ9Mcn4https://www.youtube.com/watch?v=-AQWuDLIqms
Package: magiceden
Installationpip install magicedenUsageFind the slug of the NFT collection you're interested in by referencing the suffix of the collection URL.Example:https://magiceden.io/marketplace/solana_monkey_businessfrom magiceden import MagicEdenScraper

client = MagicEdenScraper()

print(client.get_floor_price('solana_monkey_business'))
print(client.get_total_volume('solana_monkey_business'))
print(client.get_avg_price('solana_monkey_business'))
Package: magic-eden-py
Python wrap for api solana NFT marketplace MagicEdenpip install magic-eden-pyApi classes have methods corresponded to endpoints from officialdocsHow to use?Import api classCreate class instanceUse methods of classImportantMethod ended with_dirtyits clear answer from marketplaceOther methods, contain processed data and correspond to type annotationsConstructor of api class parametersenvironment:description: Define environment for api (api-devnet.magiceden.dev, api-mainnet.magiceden.dev)values: 'MAINNET' | 'DEVNET'default: 'MAINNET'request_kwargs:description: For make requests used pythonrequestspackage,
its parameter for add additional kwargs to requestsvalues: dictdefault:{'headers': {'ME-Pub-API-Metadata': '{"paging":true}'}}>>> wallet_api = MagicEdenWalletsApi(
        environment = 'DEVNENT'
        requests_kwargs: dict = None
      )Also api class instance haverequestattribute with last request instanceExample>>> from magic_eden.api import MagicEdenCollectionsApi

>>> magic_eden_api = MagicEdenCollectionsApi()

>>> collections = magic_eden_api.collections()

>>> magic_eden_api.request   
<Response [200]>You can also import types for annotation>>> from magic_eden.api.utils.types import MECollectionInfo
>>> from typings import List

>>> collections: List[MECollectionInfo] = []Official MagicEden api python wrapper classes>>> from magic_eden.api import (
  MagicEdenTokensApi, 
  MagicEdenWalletsApi, 
  MagicEdenCollectionsApi, 
  MagicEdenLaunchpadApi
)python setup.py sdisttwine upload dist/*
Package: magiceden-solana
MagicEden APIs Python SDKPython SDK for interacting with theMagiceden Official APIs - https://api.magiceden.dev/.InstallationInstalling Using PIP (Recommended)pipinstallmagiceden_solanaInstalling from SourceClone the repository: git clonehttps://github.com/vmpyre/magiceden_solana.gitChange into the project directory: cd magiceden_solanaInstall the dependencies: pip install -r requirements.txtUsageFirst, import the SDK's classes:frommagiceden_solanaimportTokens,Wallets,Collections,Launchpad,InstructionsThen, create instances of the classes to interact with the corresponding API endpoints (in this case the Tokens class):tokens_api=Tokens()For example, you can use the get_token_metadata() method of the Tokens class to retrieve metadata of a token by its mint address:tokens_api.get_token_metadata("TOKEN ADDRESS HERE")The SDK also provides additional functionality for interacting with the Wallets, Collections, Launchpad and Instructions endpoints of the Magiceden API.
You can find details about the class methods belowClass MethodsSee the Official Magiceden documentation for function arguments here:https://api.magiceden.dev/Tokensget_token_metadata()get_token_listings()get_received_offers()get_token_activities()Walletsget_tokens_owned_by_wallet()get_wallet_activities()get_offers_made_by_wallet()get_offers_received_by_wallet()get_escrow_balance_for_wallet()get_wallet_by_address()Collectionsget_collections()get_collection_listings()get_collection_activities()get_collection_stats()Launchpadget_launchpad_collections()Instructionsbuy()buy_now()buy_cancel()buy_change_price()sell()sell_now()sell_cancel()sell_change_price()deposit()withdraw()ContributionFeel free to open issues, pull requests and submit feedback. We appreciate your help!LicenseThis project is licensed under the MIT License - see the LICENSE file for details.AcknowledgementsThanks to the Magiceden team for providing the API Key.DisclaimerThis SDK is not affiliated with, endorsed, or sponsored by magiceden. It was created byvmpyre.sol#0001(Discord) for personal use and is now being made open-source for others to use and contribute to. The developer of this SDK is not responsible for any errors or issues that may occur when using this SDK. Use at your own risk.
Package: magicembed
What is it?Magic Embed is an easy and simple Django template tag and tool to embed
video and get thumbnails from video providers.DemoYou can see here theMagic Embed
DemoScreenshotsDownloadingYou can download it from PyPI herePyPI-Magic
EmbedHow to install it?If you have a requeriments list add this to your requerimentsmagicembed==(version)pip install -r requirements.txtOr if you use setup.pyadd magicembed toINSTALLED_APPSrun python setup.py installHow to useFirst add this in the template to load the template tags{% load magicembed_tags %}Now if you need to embed a video, add this template tag to video url
field{{ video|magicembed:”width x height” }}Or to get a thumbnail url{{ video|magicthumbnail }}How to contribFork it (http://github.com/fitoria/django-magicembed/fork)Create your feature branch (git checkout-bmy-new-feature)Commit your changes (git commit-am'Add some feature')Push to the branch (git push originmy-new-feature)Create new Pull RequestLicenceLicensed underMIT
Package: magicenv
magicenvSimple way to parse common datatypes from env vars.SetuppipinstallmagicenvUsagefrommagicenvimportenvDB_HOST=env('DB_HOST',"localhost:1234")# string varDB_NUM_TRANSACTIONS=env('DB_NUM_TRANSACTIONS',1234)# int varENABLE_FEATURE_X=env('ENABLE_FEATURE_X',True)# bool varDB_SERVERS=env('DB_SERVERS',['server1',"server2"])# interprets a comma separated string as a listenv()defenv(key,default=None,return_type=None,list_element_type=str):ParamExplanationkeyname of environment variable.defaultOptional - default value if key is not present in environmentreturn_typeOptional - specify return_type.list_element_typeOptional - cast/parse each element of a list with provided callable. Only used if the setting is a list.​        If key is not present in environment, and there is not provided a default value,
​        None will be returned.Guidelines for settings in EnvironmentA couple of conventions exist when designing
environment variables for settings.All values are stored as strings in the environment variableBooleansAll boolean variables are encoded as one of "1", "True" or "true" if True,
all other values are interpreted as FalseLists are encoded as a comma separated stringin example:  "a,b,c,   d"
(intentionally put whitespace in there. It is allowed)Default Values are preffered to be set to the same type as the setting.The type of the default value implicitly sets the datatype of the env var.
May be overriden by settingreturn_typeexplicitly.list->[],str->''int->0bool->TrueorFalse
Package: magicfile
magicfile (A CFFI fork of python-magic)magicfile is a python interface to the libmagic file type
identification library.  libmagic identifies file types by checking
their headers according to a predefined list of file types. This
functionality is exposed to the command line by the Unix commandfile.Usage>>>importmagicfileasmagic>>>magic.from_file("testdata/test.pdf")'PDF document, version 1.2'>>>magic.from_buffer(open("testdata/test.pdf").read(1024))'PDF document, version 1.2'>>>magic.from_file("testdata/test.pdf",mime=True)'application/pdf'There is also aMagicclass that provides more direct control,
including overriding the magic database file and turning on character
encoding detection.  This is not recommended for general use.  In
particular, it's not safe for sharing across multiple threads and
will fail throw if this is attempted.>>>f=magic.Magic(uncompress=True)>>>f.from_file('testdata/test.gz')'ASCII text (gzip compressed data, was "test", last modified: Sat Jun 2821:32:522008,fromUnix)'You can also combine the flag options:>>>f=magic.Magic(mime=True,uncompress=True)>>>f.from_file('testdata/test.gz')'text/plain'VersioningMinor version bumps should be backwards compatible.  Major bumps are not.Name ConflictThere are, sadly, two libraries which use the module namemagic.  Both have been around for quite a while.If you are using this module and get an error using a method likeopen, your code is expecting the other one.  Hopefully one day these will be reconciled.InstallationThe current stable version of magicfile is available on pypi and
can be installed by runningpip install magicfile.Other sources:pypi:http://pypi.python.org/pypi/magicfile/github:https://github.com/messense/magicfileTroubleshooting'MagicException: could not find any magic files!': some
installations of libmagic do not correctly point to their magic
database file.  Try specifying the path to the file explicitly in the
constructor:magic.Magic(magic_file="path_to_magic_file").'WindowsError: [Error 193] %1 is not a valid Win32 application':
Attempting to run the 32-bit libmagic DLL in a 64-bit build of
python will fail with this error.  Here are 64-bit builds of libmagic for windows:https://github.com/pidydx/libmagicwin64'WindowsError: exception: access violation writing 0x00000000 ' This may indicate you are mixing
Windows Python and Cygwin Python. Make sure your libmagic and python builds are consistent.AuthorWritten by Adam Hupp in 2001 for a project that never got off the
ground.  It originally used SWIG for the C library bindings, but
switched to ctypes once that was part of the python standard library.You can contact me via mywebsiteorgithub.ContributorsThanks to these folks on github who submitted features and bugfixes.Amit Sethibigben87fallgesetzFlaPer87lukenowakNicolasDelabysacha@ssl.co.ukSimpleSebtehmazeLicensemagicfile is distributed under the MIT license.  See the included
LICENSE file for details.
Package: magicformulabr
magicformulabr - Script que implementa a magic formula de Joel Greenblatt para empresas listadas na Bovespa.Detalhes sobre a estratégia Magic Formula pode ser encontrado no livro "The Little Book That Still Beats the Market" escrito por Joel Greenblatt.O script consulta os dados das empresas no sitehttp://fundamentus.com.brOmagicformulabrfoi feito apenas para estudo, não é recomendação de investimento.InstalaçãopipinstallmagicformulabrUso$magicformulabr-h
usage:magicformulabr[-h][-d][-v][-m{1,2,3}][-tTOP]Gerarankdeacoesusandoamagicformula

optionalarguments:-h,--helpshowthishelpmessageandexit-d,--debugdebugflag-v,--verboseverbositylevel-m{1,2,3},--method{1,2,3}Camposusadosparaocalculodamagicformula-tTOP,--topTOPNumerodeempresasparamostrarnorankMethodsdisponiveis:1-P/LeROE2-EV/EBITeROIC3-EV/EBITDAeROICExemplosdeuso:magicformulabr-hmagicformulabr-m1magicformulabr-vmagicformulabr-vvmagicformulabr-m3-vv


$magicformulabr-t10-vPapelCotaçãoP/LDiv.YieldEV/EBITEV/EBITDAROICROERank_earnings_yieldRank_return_on_capitalRank_Final1PSSA347.719.144,49%0.330.3356.4818,83%1.03.04.02WIZS36.614.9510,12%1.921.7180.9460,60%4.02.06.03MRFG314.824.890,00%3.643.1129.77223,61%5.08.013.04MNPR36.84-3.390,00%0.950.8522.683,89%2.018.020.05BEEF39.636.403,11%5.534.7421.1067,81%13.021.034.06GEPA438.4915.044,90%6.354.5927.5213,64%26.09.035.07GEPA339.0015.244,84%6.434.6527.5213,64%28.09.037.08BOBR42.2415.170,00%6.505.5224.58-15,94%30.014.044.09ATOM34.167.170,00%7.467.4384.6073,56%47.01.048.010EQTL322.998.051,39%6.145.4716.3229,69%18.036.054.0
Package: magicfunc
magicfuncmagicfunc is a Python library that uses LLM to generate function bodies for function signatures and dynamically proxies them at runtime.中文文档InstallationYou can install magicfunc using pip:pipinstallmagicfuncUsageTo use magicfunc, you need to define a function signature and pass it to themagicfunc.magicdecorator. magicfunc will then generate a function body using LLM and dynamically proxy it at runtime.importmagicfunc@magicfunc.magicdefadd(x:int,y:int)->int:"""Add two integers together."""You can then call the function as you would any other function:result=add(2,3)print(result)# Output: 5magicfunc will generate a function body that adds the two integers together and returns the result.Configurationmagicfunc can be configured using these variables:DEFAULT_PROVIDER: The default provider for generate function body.ContributingIf you find a bug or have a feature request, please open an issue on GitHub. If you would like to contribute code, please fork the repository and submit a pull request.Licensemagicfunc is licensed under the MIT License. See the LICENSE file for more information.
Package: magicgui
build GUIs from type annotations, using magic.📖 Docshttps://pyapp-kit.github.io/magicgui/Installationmagicguiusesqtpyto support bothpyside2andpyqt5backends.  However, you
must have one of those installed for magicgui to work.install with pippipinstallmagicgui[pyqt5]# orpipinstallmagicgui[pyside2]or with conda:condainstall-cconda-forgemagicguipyqt# or pyside2 instead of pyqt:information_source: If you'd like to help us extend support to a different backend,
please open anissue.Basic usagefrommagicguiimportmagicguifromenumimportEnumclassMedium(Enum):Glass=1.520Oil=1.515Water=1.333Air=1.0003# decorate your function with the @magicgui decorator@magicgui(call_button="calculate",result_widget=True)defsnells_law(aoi=30.0,n1=Medium.Glass,n2=Medium.Water,degrees=True):importmathaoi=math.radians(aoi)ifdegreeselseaoitry:result=math.asin(n1.value*math.sin(aoi)/n2.value)returnmath.degrees(result)ifdegreeselseresultexceptValueError:return"Total internal reflection!"# your function is now capable of showing a GUIsnells_law.show(run=True)But that's just the beginning!  Please seeDocumentationfor many more details
and usage examples.ContributingContributions are welcome!See contributing guidehere.
Package: magichttp
Asynchronous http, made easy.Magichttp is an http stack for asyncio, which provides one the ability to create
their own async http client/server without diving into the http protocol
implementation.Install$pipinstallmagichttp-UUsageSeeexamples/echo_client.pyandexamples/echo_server.py.Under DevelopmentMagichttp is in beta. Basic unittests and contract checks are in place;
however, it still may have unknown bugs. Bug reports and pull requests are
always welcomed.LicenseCopyright 2021 Kaede HoshikawaLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: magichue
python-magichueMagicHue (aka MagicHome) is a cheap smart led bulb that you can control hue/saturation/brightness and power over WiFi. They are available at Amazon or other online web shop.I tested this library with RGB+WW+CW(v7), RGB(v8), RGB+WW(v8) bulbs.ExampleRainbow cross-fade.importtimeimportmagichuelight=magichue.Light('192.168.0.20')# change to your addresslight.on=Truelight.is_white=Falselight.saturation=1light.brightness=255forhueinrange(1000):light.hue=hue/1000time.sleep(0.05)Installation$ pip install magichueUsageimport magichue.importmagichuelight=magichue.Light('192.168.0.20')Discover Bulbs on LANfrommagichueimportdiscover_bulbsprint(discover_bulbs())# returns a list of bulb addressesPower StateGetting Power Statusprint(light.on)# => True if light is on else FalseSetting Light On/Offlight.on=Truelight.on=FalseGetting ColorThis shows a tuple of current RGB:print(light.rgb)# (255, 127, 63)or access individually:print(light.r)# 255print(light.g)# 127print(light.b)# 63White LEDsIf your bulbs support white LEDs, you can change the brightness (0-255) of white LEDs.Enable the white led:light.is_white=TrueIf white led is enabled, you can't change color of bulb!You will need to disable it before you can change the color.Disable the white led:light.is_white=FalseWarm White (ww)light.cw=0light.w=255Cold White (cw)light.w=0light.cw=255Setting ColorRed, Green, Blue (RGB)Assign all colors with a tuple of integers:light.rgb=(128,0,32)or assign each color individually with an integer:light.r=200light.g=0light.b=32Hue, Saturation, Brightness (HSB)Hue and saturation are float values from 0 to 1.Brightness is a integer value from 0 to 255.light.hue=0.3light.saturation=0.6light.brightness=255Note About Stripe BulbStripe bulb doesn't seem to allow jumping to another color when you change color.To disable the fading effect,light.rgb=(128,0,20)# Fades to set colorlight.allow_fading=False# Set to True by defaultlight.rgb=(20,0,128)# Jumps to set colorChanging ModesMagicHue bulb has built-in patterns.Check current mode:print(light.mode)# <Mode: NORMAL>print(light.mode.name)# 'NORMAL'print(light.mode.value)# 97Set current mode:light.mode=magichue.RAINBOW_CROSSFADEThese are the built-in modes:RED_GRADUALLY
GREEN_GRADUALLY
BLUE_GRADUALLY
YELLOW_GRADUALLY
PURPLE_GRADUALLY
WHITE_GRADUALLY
BLUE_GREEN_GRADUALLY

RAINBOW_CROSSFADE
RED_GREEN_CROSSFADE
RED_BLUE_CROSSFADE
GREEN_BLUE_CROSSFADE

RAINBOW_STROBE
GREEN_STROBE
BLUE_STROBE
YELLOW_STROBE
BLUE_GREEN_STROBE
PURPLE_STROBE
WHITE_STROBE

RAINBOW_FLASH
NORMALChanging The Speed of a ModeThe instance memberspeedis a float value from 0 to 1:light.speed=0.5# set speed to 50%Creating Custom ModesYou can create custom light flash patterns.Mode:MODE_JUMP
MODE_GRADUALLY
MODE_STROBESpeed:A float value 0 to 1.Colors:A list of RGB tuples. Max length of 17 tuples.frommagichueimport(CustomMode,MODE_JUMP,)# Creating Modemypattern1=CustomMode(mode=MODE_JUMP,speed=0.5,colors=[(128,0,32),(100,20,0),(30,30,100),(0,0,50)])# Apply Modelight.mode=mypattern1Other features are in development.
Package: magician
# hummer[![Build Status](https://travis-ci.com/Jack-Kingdom/hummer.svg?branch=master)](https://travis-ci.com/Jack-Kingdom/hummer)portal access utils.
![hummer](https://raw.githubusercontent.com/wiki/Jack-Kingdom/humer/assets/hummer.jpg)## Install`shell pip install hummer `## Documentation
Check [wiki](https://github.com/Jack-Kingdom/hummer/wiki) for details.## LICENSE
MIT
Package: magic-identify
Aboutmagic-identify implements a wrapper around both the python-magic
module and the identify module to try and always return results, even
if one fails.  Finally, failing that it will try to guess some minimal
shell script environments too (specifically looking at common keywords
in malware droppers/downloaders that do not always have leading
identification lines).It returns two strings, one which may be a higher level text
description and a second which should always be a mime-type
identifier.Example module use:import magicidentify
c = magicidentify.MagicIdentify()
print(c.identify("/bin/ls"))
# ('application/x-pie-executable', 'application/x-pie-executable')Example CLI use:# magic-identify /bin/ls /sbin/ifup
/bin/ls: application/x-pie-executable, application/x-pie-executable
  using magic:    application/x-pie-executable, application/x-pie-executable
  using identify: unknown, unknown
  using hack:     unknown, unknown
/sbin/ifup: inode/symlink, inode/symlink
  using magic:    inode/symlink, inode/symlink
  using identify: bash/shell, text/x-bash
  using hack:     unknown, unknown

# magic-identify -q /bin/ls /sbin/ifup
application/x-pie-executable
inode/symlinkTodoHandle more boring cases from some outputs (text/inode)AcknowledgementsThe following wonderful github accounts have contributed to the code base:@JakeRoggenbuck
Package: magic-import
magic-importImport python object from string and return the reference of the object. The object can be a class, instance, variable and anything else, and can be from class, instance, module, global/local environment.Installpip install magic-importTest Passed On Python Versions2.73.23.33.43.53.63.73.83.93.103.11Usagefrom magic_import import import_from_string

listdir = import_from_string("os.listdir")
files = listdir(".")Release0.1.0First release0.1.10.1.20.1.30.2.0Some updates.0.2.2Test passed on all python versions.
Package: magic-impute
Markov Affinity-based Graph Imputation of Cells (MAGIC) is an algorithm for denoising high-dimensional data most commonly applied to single-cell RNA sequencing data. MAGIC learns the manifold data, using the resultant graph to smooth the features and restore the structure of the data.To see how MAGIC can be applied to single-cell RNA-seq, elucidating the epithelial-to-mesenchymal transition, read ourpublication in Cell.David van Dijk, et al. Recovering Gene Interactions from Single-Cell Data Using Data Diffusion. 2018. Cell.For R and MATLAB implementations of MAGIC, seehttps://github.com/KrishnaswamyLab/MAGIC.Magic reveals the interaction between Vimentin (VIM), Cadherin-1
(CDH1), and Zinc finger E-box-binding homeobox 1 (ZEB1, encoded by
colors).InstallationInstallation with pipTo install withpip, run the following from a terminal:pip install --user magic-imputeInstallation from GitHubTo clone the repository and install manually, run the following from a
terminal:git clone git://github.com/KrishnaswamyLab/MAGIC.git
cd MAGIC/python
python setup.py install --userUsageExample dataThe following code runs MAGIC on test data located in the MAGIC
repository:import magic
import pandas as pd
import matplotlib.pyplot as plt
X = pd.read_csv("MAGIC/data/test_data.csv")
magic_operator = magic.MAGIC()
X_magic = magic_operator.fit_transform(X, genes=['VIM', 'CDH1', 'ZEB1'])
plt.scatter(X_magic['VIM'], X_magic['CDH1'], c=X_magic['ZEB1'], s=1, cmap='inferno')
plt.show()
magic.plot.animate_magic(X, gene_x='VIM', gene_y='CDH1', gene_color='ZEB1', operator=magic_operator)Interactive command lineWe have included two tutorial notebooks on MAGIC usage and results
visualization for single cell RNA-seq data.EMT data notebook:http://nbviewer.jupyter.org/github/KrishnaswamyLab/magic/blob/master/python/tutorial_notebooks/emt_tutorial.ipynbBone Marrow data notebook:http://nbviewer.jupyter.org/github/KrishnaswamyLab/magic/blob/master/python/tutorial_notebooks/bonemarrow_tutorial.ipynbHelpIf you have any questions or require assistance using MAGIC, please
contact us athttps://krishnaswamylab.org/get-help.
Package: magicinvoke
To find out what’s new in this version of MagicInvoke, please see the changelog
on GitHub for 2.4.6.Welcome to MagicInvoke!Magicinvoke is a Python (2.7 and 3.4+) library based onInvoke.It addsget_params_from_ctx,skippable, andmagictask,
as well as including a patched version ofinvokewith
support for*argsand**kwargson tasks,
some clearer exceptions, and some minor bugfixes.For docs and to see what magicinvoke has to offer you,see here.Report issues and help outhere.For getting started , we recommend you start withinvokeand then start mixing inmagicinvokeonce you feel the need
for a bit more power. See theexamplespage of themagicinvokedoc.
Package: magick
There have been several interfaces to the ImageMagick libraries in Python.  This entry does not use C++ or Boost or SWIG, but hand-wraps the library to achieve ultimate flexibility in the interface.  The basic object is an Image object (MImage) that can be created from a Numeric array, a file name, or a file pointer.  An MImage object is actually a sequence of images and can be manipulated in a fashion similar to a list.  Support will be added for the most important methods of ImageMagick — including the Drawing canvas.