Saravanan666/pypi-org huggingface dataset:
Package: microsofttranslator
Version:0.7Web:http://fulfil.io/keywords:Microsoft TranslatorCopyright:Fulfil.IO, Openlabs Technologies & Consulting (P) LTDlicense:BSDThis python API implements the Microsoft Translator services which can be used
in web or client applications to perform language translation operations. The
services support users who are not familiar with the default language of a page
or application, or those desiring to communicate with people of a different
language group.Example Usage:>>> from microsofttranslator import Translator
>>> translator = Translator('<Your Client ID>', '<Your Client Secret>')
>>> print translator.translate("Hello", "pt")
"Olá"Registering your applicationTo register your application with Azure DataMarket,
visithttps://datamarket.azure.com/developer/applications/using the
LiveID credentials from step 1, and click on “Register”. In the
“Register your application” dialog box, you can define your own
Client ID and Name. The redirect URI is not used for the Microsoft
Translator API. However, the redirect URI field is a mandatory field,
and you must provide a URI to obtain the access code. A description is
optional.Take a note of the client ID and the client secret value.Installingpip install microsofttranslatorFeaturesTranslation>>> from microsofttranslator import Translator
>>> translator = Translator('<Your Client ID>', '<Your Client Secret>')
>>> print translator.translate("Hello", "pt")
"Olá"Translate multiple words at once>>> from microsofttranslator import Translator
>>> translator = Translator('<Your Client ID>', '<Your Client Secret>')
>>> translator.translate_array(['apple', 'orange'], 'pt')
[{u'TranslatedText': u'Apple', u'From': u'en', u'OriginalTextSentenceLengths': [5], u'TranslatedTextSentenceLengths': [5]}, {u'TranslatedText': u'laranja', u'From': u'en', u'OriginalTextSentenceLengths': [6], u'TranslatedTextSentenceLengths': [7]}]Get supported languages>>> from microsofttranslator import Translator
>>> translator = Translator('<Your Client ID>', '<Your Client Secret>')
>>> print translator.get_languages()
[u'ar', u'bg', u'ca', u'zh-CHS', u'zh-CHT', u'cs', u'da', u'nl', u'en', u'et', u'fi', u'fr', u'de', u'el', u'ht', u'he', u'hi', u'mww', u'hu', u'id', u'it', u'ja', u'tlh', u'tlh-Qaak', u'ko', u'lv', u'lt', u'ms', u'mt', u'no', u'fa', u'pl', u'pt', u'ro', u'ru', u'sk', u'sl', u'es', u'sv', u'th', u'tr', u'uk', u'ur', u'vi', u'cy']Detect Language>>> from microsofttranslator import Translator
>>> translator = Translator('<Your Client ID>', '<Your Client Secret>')
>>> translator.detect_language('hello')
u'en'Bugs and Development on Githubhttps://github.com/fulfilio/Microsoft-Translator-Python-API
Package: microsoftvision
Microsoft VisionInstallationpip install microsoftvisionUsageInput images should be inBGRformat of shape (3 x H x W), where H and W are expected to be at least 224.
The images have to be loaded in to a range of [0, 1] and then normalized using mean = [0.485, 0.456, 0.406] and std = [0.229, 0.224, 0.225].Example script:import microsoftvision
import torch

# This will load pretrained model
model = microsoftvision.models.resnet50(pretrained=True)

# Load model to CPU memory, interface is the same as torchvision
model = microsoftvision.models.resnet50(pretrained=True, map_location=torch.device('cpu'))Example of creating image embeddings:import microsoftvision
from torchvision import transforms
import torch
from PIL import Image

def get_image():
    img = cv2.imread('example.jpg', cv2.IMREAD_COLOR)
    img = cv2.resize(img, (256, 256))
    img = img[16:256-16, 16:256-16]
    preprocess = transforms.Compose([
        transforms.ToTensor(),
        transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
    ])
    return preprocess(image).unsqueeze(0) # Unsqueeze only required when there's 1 image in images batch

model = microsoftvision.models.resnet50(pretrained=True)
features = model(get_image())
print(features.shape)Should output...
torch.Size([1, 2048])
Package: microst
μ Serial TerminalA micro serial terminal written in Python.UsageUsage: microst -p port [-b baudrate] [-c bytesize] [-s stopbits] [-P parity]

Arguments:
    -h, --help:     Show this help message and exit

    -p, --port:     The serial port to connect to.

    -b, --baudrate: The baudrate to use. (Default: 9600)
        Available baudrates:
            300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600,
            115200, 128000, 256000

    -c, --bytesize: The bytesize to use. (Default: 8)

    -s, --stopbits: The stopbits to use. (Default: 1)
        Available values: 1, 2

    -P, --parity:   The parity to use. (Default: N)
        Available options:
            E: Even parity
            O: Odd parity
            N: No parity
            M: Mark parity
            S: Space parityFeaturesI needed a serial terminal that allowed me to send files and in general more flexibility than a standard terminal.This terminal therefore has VI style modes, which are:💬 Insert mode⚠ It is the default mode.Insert mode is used to communicate with the serial port, it can be accessed by pressingifrom normal mode.🔀 Normal modeNormal mode is used to switch between modes.⚠ It can be accessed by pressing<ctrl> ]rather than<esc>. That way,<esc>can be sent to the serial port.⚡ Command modeCommand mode is activated by pressing the:key from normal mode. Currently, there are 3 commands::qQuit the terminal.:send <filename>Send the file<filename>to the connected device.exec <filename> [<function name> <arguments>]Executes the function<function name>(ormainif not specified) withSerialobject and the arguments<arguments>.For example, with the following file:# my_script.pyimportserialdefsend_file(s:serial.Serial,filename:str):withopen(filename,"rb")asf:s.write(f.read())return1executing:exec my_script send_file foo.binwill send the filefoo.binto the connected device.(we could also have used:send foo.bin)Installationμst can be installed with pip:$ pip install microst
Package: microstackcommon
microstackcommonCommon functions for interacting with Microstack products.Contains some core helper functions and pure Python drivers for accessing
GPIO pins, SPI and I2C buses.Currently in active development. Still need to experiment with SMBus for
Python 3.Documentation[http://microstack-iot.github.io/](http://microstack-iot.github.io/)InstallMake sure you are using the latest version of Raspbian:$ sudo apt-get update
$ sudo apt-get upgradeInstallmicrostackcommonfor Python 3 with the following command:$ sudo apt-get install python3-microstackcommonYou will also need to set up automatic loading of the SPI kernel module which
can be done with the latest version ofraspi-config. Run:$ sudo raspi-configThen navigate toAdvanced Options,SPIand selectyes.
Change Log
==========v0.2.0Removed most of the spi/gpio group stuff becasue of new Raspbian rules.Updated GPIO.Cleaned up and adding to PyPi.v0.1.1Added i2c_dev to modules in install proceedure.v0.1.0Inital structure.
Package: microstacknode
microstack-nodeCommon functions for interacting with Microstack node boards (Accelerometer,
GPS, etc).Documentation[http://python3-microstacknode.readthedocs.org](http://python3-microstacknode.readthedocs.org)
Change Log
==========v0.4.6Added check for Raspberry Pi 3 in l80gps. RPi 3 uses/dev/ttyS0for
the serial device instead of/dev/ttyAMA0.v0.4.4Some more fiddling for PyPi.v0.4.0mma8452 accelerometer now returns dictionary for xyz instead of tuple.
This was confusing as it’s unexpected for a method to return three values.Explicit is better than implicit.Improved docs – uploaded to readthedocs.v0.3.0Fixed mma8452 accelerometer bug.get_xyz()now returns values in Gs no
matter what the range is set as. That is, set the range to be 8G and theget_xyz()will return 1 is the accelerometer is only experiencing 1G.Changed mma8452 register implementation.Added mma8452 SI units method.v0.2.0Moved internal hardware drivers to hardware directory.Added display and humidity/temperature sensor drivers.Added examples for drivers.NOT updated HTML docs for new changes. This will be done in the next
update.v0.1.1Changed docs for new install instructions (altered name) and also
changed default address for accelerometer.v0.1.0Inital structure.
Package: microstate
microstateSimple REST state storage tied to a write keyYou need a keyfrom microstate import MicroStateWriter
write_key = MicroStateWriter.create_key(difficulty=11) # Takes a while!to instantiate a writerwriter = MicroStateWriter(write_key=write_key)Usage pattern 1Assume we have data taking the form of a dictionarydata = {'age':17,'model':'my model','params':{'mean':17,'std':10}Store data:writer.set(value=data)Retrieve data:data = writer.get()Usage pattern 2 (using a logical memory location from 0 to 99)Store data with a location indexwriter.set(value=data, k=34)Retrieve data with a location indexdata = writer.get(k=34)Other data types (caution!)Tuples will be converted to listsint, float to stringTo preserve types use dict or listPartial support for tupleTuples can be stored but will be converted to list.Memory limitsAssuming a write key of difficulty at least 11:location  0      holds    320 kb
locations 1-319  hold       1 kb each
Package: microstrategy-api
MicroStrategy Python API (microstrategy-api)Python API library for interacting with MicroStrategy Intelligence Server and/or MicroStrategy Web Server.This library is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by MicroStragy Incorporated.Supported MicroStrategy sub-APIsTaskProc APICOM APIREST API (Work in progress)InstallationInstall usingpip install -U microstrategy-apiorconda install microstrategy-api -c conda-forge.ExamplesSeeexamplesfolder
Package: microSWIFT
microSWIFTThe main operational software that runs on the microSWIFT V1 wave buoys... _README:https://github.com/SASlabgroup/microSWIFT/blob/main/README.mdLicensemicroSWIFTis licensed under the terms of the MIT license. See the file
"LICENSE" for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.All trademarks referenced herein are property of their respective holders.Copyright (c) 2022--, SASlabgroup, University of Washington
Package: microSWIFTtelemetry
microSWIFTtelemetryPython-based functionality for pulling telemetry from the microSWIFT wave buoy... _README:https://github.com/SASlabgroup/microSWIFTtelemetry/blob/main/README.mdLicensemicroSWIFTtelemetryis licensed under the terms of the MIT license. See the file
"LICENSE" for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.All trademarks referenced herein are property of their respective holders.Copyright (c) 2022--, Jacob Davis, University of Washington
Package: microtc
microTC is a minimalist text classifier, that is, it is designed to tackle text-classification problems in an agnostic way,
being both domain and language independent.microTC is intentionally simple, so only a small number of features
were implemented. However, it uses a some complex tools from numpy
and scikit-lean. The number of dependencies is limited and fulfilled
by almost any Scientific Python distributions, e.g.,Anaconda.The documentation is onreadthedocs.
Package: microterm
MicrotermCLI tool for interacting with MicroPython devicesInstallationInstall microterm from the command line using pip.pip install microtermGetting StartedLaunch the microterm terminal from the Python module.python -m microtermUsage ExamplesDisplay command list.Microterm> help
Commands ("help <command>" for details):
cat  connect  disconnect  get   ls     mv   pwd     reboot  rmdir
cd   devices  exit        help  mkdir  put  python  rm      unameGet help for a specific command.Microterm> help connect
Connect to MicroPython device.
Usage: connect DEVICEList serial devices.Microterm> devices
COM7 - USB Serial Device (COM7)Connect to device.Microterm> connect com7List files on device.Microterm> ls
main.py  settings.txtCopy file from host machine (such as a laptop running Microterm) to the connected MicroPython device.Microterm> put main.pyCopy file from connected MicroPython device to the host machine.Microterm> get main.pyRead contents of a file.Microterm> cat main.py
print('Hello world!')Execute script on MicroPython device.Microterm> python main.py
Press CTRL+C to return to Microterm
Hello world!Enter MicroPython REPL.Microterm> python
Press CTRL+C to return to Microterm
MicroPython v1.20.0 on 2023-04-26; SparkFun Pro Micro RP2040 with RP2040
Type "help()" for more information.
>>>
Package: microtest-framework
microtestSimple but powerful testing framework for Python.Installationpython -m pip install microtest-frameworkOn Mac and Linux microtest doesn't require any external dependencies.
On Windowscoloramais used to translate ANSI escape sequences to win32 calls.Microtest currently requires Python version 3.7 or higher.UsageHere's the simplest testing program you can create with microtest:importmicrotest@microtest.testdeffunction():x=10assertx<0if__name__=='__main__':microtest.run()You can run this script normally via the command line:python test.pyThe script will produce the following output:======================================================================
Started testing...
======================================================================
function ..................................................... FAILED

AssertionError on line 7:
assert 10 < 0 


----------------------------------------------------------------------
Ran 1 tests in 0.001s.

ERRORS: 0
FAILED: 1DocumentationFull source code refrence and user guide can be foundhere.ContributingTo contribute new features to this project do the following steps:Open a new issue explaining the new featureWait for approvalFork and clone the repository to your local machine and code up the feature in anew branchPull requestThewait for approvalstep is there so that you don't end up coding up some feature that might
not be included into microtest. This could happen if the proposed feature is redundant, changes the
existing api too radically, or simply just is not theright thingto be added into microtest.The goal is to keep this project simple and small.Bug fixes, documentation improvements and other minor tweaks are always welcome, no need for approval.Just leave a pull request with the fixes done in a separate branch.
Package: microtinygrad
"# microtinygrad"Micro Tiny neural network library that allows training of simple neural networks through mini-batch gradient descent only using numpy and pandas. Currently only provides support for pandas dataframes. Useful if you want to train small neural networks and quick tuning of hyperaparameters.MotivationIn order to learn what goes on under the hood of neural network's backpropagation, I decided to implement it myself. However, my algorithm provides a more analytical solution (Calculating closed form gradients), rather than the approaches used by other neural network libaries (Micrograds Value Tree). Thus, this only currently supports common neural network patterns Linear Activation/Regression amd SoftMax Cross Entropy.Simple Quick Startnn=NeuralNetwork()
Package: microtorch
MicroTorchMicroTorch is a minimal implementation of PyTorch , NumPy, TensorFlow, and other popular machine learning libraries. It is intended to be used as a learning tool for understanding the how is works neural networks ,autograd, and other machine learning concepts.InstallationpipinstallmicrotorchUsageimportmicrotorchasmt# Create a tensor 1 dimensionx=mt.Tensor([1,2,3,4,5])# Create a tensor 2 dimensionx=mt.Tensor([[1,2,3],[4,5,6]])# Create a tensor 3 dimensionx=mt.Tensor([[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]]])# Create a tensor 4 dimensionx=mt.Tensor([[[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]]],[[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]]]])# create a tensor with random valuesx=mt.rand(2,3)# create a tensor with zerosx=mt.zeros(2,3)# create a tensor with onesx=mt.ones(2,3)# create a tensor with a rangex=mt.arange(0,10)# create a tensor with a range and stepx=mt.arange(0,10,2)# create a tensor with a range and stepx=mt.arange(0,10,2)# create a tensor with a range and stepx=mt.arange(0,10,2)# create neural networkmodel=mt.Sequential(mt.Linear(2,5),mt.ReLU(),mt.Linear(5,1),mt.Sigmoid())# create loss functionloss_fn=mt.MSELoss()# create optimizeroptimizer=mt.SGD(model.parameters(),lr=0.01)# train modelforepochinrange(100):# forwardy_pred=model(x)# compute lossloss=loss_fn(y_pred,y)# zero gradientsoptimizer.zero_grad()# backwardloss.backward()# update weightsoptimizer.step()LicenseMITContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Authorsmustafa bozkaya-Initial work-
Package: microtvm-device
MicroTVM Device Python PackageA python package for managing microTVM devices on a server for the purpose of hardware CI testing, autotuning, etc.Installationpip3 install microtvm_deviceSetup Device ServerTo run the device server run command bellow with a JSON file including information about various devices.Hereis a template of JSON file.python -m microtvm_device.device_server --table-file=[DEVICE TABLE JSON FILE] <--port=[SERVER PORT]>

Note: If you are using the server in an envrionment with multiple users using VirtualBox, server should be run on an account with `sudo` access to all account to be able to inquery the USB attachments with any VirtualBox instance.Use Device ClientAfter running server you can run various command using device_client. Command includesattach,detach,release,requestandquery.python -m microtvm_device.device_client <--port=[SERVER PORT]> COMMAND
Package: microurl
python library for url minification.FeaturesGoogleURL MinifierQR GeneratorBitlyURL MinifierInstallationInstall microurl viapip$pipinstallmicrourlOr, if you want the code that is currently on GitHubgitclonegit://github.com/micropyramid/microurl.gitcdmicrourlpythonsetup.pyinstallStarting OutFirst, you’ll want to head over to google or bily or supr and register an application!After you register, grab your applicationsConsumer KeyandConsumer Secretfrom the application details tab.First, you’ll want to import your desired minfier from microurlfrommicrourlimportgoogle_miniBasic Usage Of Google MiniFunction definitions (i.e. google_mini()) can be found by reading over microurl/google.pyminified=google_mini('validurl','Google_API_KEY')its as simple as that.QR Generatorqr_url=qrcode(url)Authentication for bitlyfrommicrourlimportbitlyauthenticationauthentication=bitlyauthentication(client_id,client_secret,redirect_uri)auth_url=authentication.authorization_url()open auth_url in your browser.After authorizing app, you will be redirected to redirect_url with code perameter.access_token=authentication.get_accesstoken_from_code(code)# code that you get to redirect_url in the above stepAuthentication using username and passwordaccess_token=authentication.get_accesstoken_from_username_pwd(bitlyusernameorloginemail,password)Basic Usage of BitlyFunction definitions (i.e. shorturl()) can be found by reading over microurl/bitly.pyfrommicrourlimportbitlyapibitly=bitlyapi(access_token)# access_token is getting from previous stepsminified=bitly.shorturl(longurl,domain)['url']# domain is optional hereTo get detail information of bitlylink.bitly.url_info(bitlylink,expand_user='True | False',hash='one or more bitly hashes')# expand_user,hash are optional hereTo get the number of clicks on a single bitly link.bitly.link_clicks(bitlylink,unit="day",units=10,timezone=-4,limit=20,unit_reference_ts="now")# here except bitlylink all are optionalTo get the number of shares on a single bitly link.bitly.link_shares(bitlylink,unit="day",units=10,timezone=-4,limit=20,unit_reference_ts="now")# here except bitlylink all are optionalTo get loggedin user infobitly.user_info()To get user link history in reverse chronological order.bitly.user_linkhistory(bitlylink,limit=20,offset=1,created_after='1381000000',created_before='1381844314',expand_client_id=True,archived="both",private="both")# here all fields are optionalQuestions, Comments, etc?https://github.com/MicroPyramid/microurl/issuesWant to help?microurl is useful, but ultimately only as useful as the people using it (say that ten times fast!). If you’d like to help, write example code, contribute patches, document things on the wiki, tweet about it. Your help is always appreciated!For more Updateshttps://micropyramid.com/oss/We welcome your feedback and support, raise github ticket if you want to report a bug. Need new features?Contact us here
Package: micro-ussd-airflow-engine
# ussd_airflow[![Gitter](https://badges.gitter.im/django_ussd_airflow/Lobby.svg)](https://gitter.im/django_ussd_airflow/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![CircleCI](https://circleci.com/gh/mwaaas/ussd_airflow.svg?style=svg)](https://circleci.com/gh/mwaaas/ussd_airflow)[![codecov](https://codecov.io/gh/ussd-airflow/ussd_engine/branch/master/graph/badge.svg)](https://codecov.io/gh/ussd-airflow/ussd_engine)[![Codacy Badge](https://api.codacy.com/project/badge/Grade/231ad345da874835a7c3d8e2bb401864)](https://www.codacy.com/app/francismwangi152/ussd_airflow?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=mwaaas/ussd_airflow&amp;utm_campaign=Badge_Grade)[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/231ad345da874835a7c3d8e2bb401864)](https://www.codacy.com/app/francismwangi152/ussd_airflow?utm_source=github.com&utm_medium=referral&utm_content=mwaaas/ussd_airflow&utm_campaign=Badge_Coverage)For more information
here is the documentationhttp://django-ussd-airflow.readthedocs.io/
Package: microvenv
microvenvCreate a minimal virtual environment (and utility code around environments).The key purpose of this module is for when thevenvmodulehas been removed from the standard library by your Python distribution. Becausevenvis not available on PyPI and is developed in the stdlib, it is not possible to install it usingpipor simply copy the code and expect it to work with older versions of Python. This module then attempts to be that portable alternative for creating virtual environments.In general, though, using thevenvmoduleshould be preferred and this module used as a fallback.There is also utility code around virtual environments. See thedocsfor details.CLI UsageNOTE: The CLI is not available on Windows.python -m microvenv [--without-scm-ignore-files] [env_dir=".venv"]If an argument is provided to the script, it is used as the path to create the virtual environment in. Otherwise, the virtual environment is created in.venv.For programmatic usage, there is thecreate()function, which is analogous to thevenv.create()function.defcreate(env_dir:os.PathLike[str]|str=".venv",*,scm_ignore_files={"git"})->NoneThemicrovenv/_create.pyfile is also small enough to have its contents passed in via the-cflag topython.Differences compared to thevenvmoduleThe code operates similarly topy -m venv --symlinks --without-pip .venv,
except that:There are no activation scripts (you can executepythonin the virtual environment directly)Windows is not supported