Saravanan666/pypi-org huggingface dataset:
Package: mintrans
🗺️ mintrans - A translation API wrapper 🗺️mintrans is a free API wrapper that utilizes Bing, DeepL, and Google Translate for translation purposes. 🤖💡 How to use 💡frommintransimportBingTranslator,DeepLTranslator,GoogleTranslatorfrommintransimportRateLimitExceptiontext='Hello World!'from_lang='en'to_lang='fr'# Bing Translatorbing_translator=BingTranslator()bing_translation=bing_translator.translate(text,from_lang,to_lang)print(bing_translation)# DeepL Translatordeepl_translator=DeepLTranslator()try:deepl_translation=deepl_translator.translate(text,from_lang,to_lang)print(deepl_translation)exceptRateLimitException:print('Limit of DeepL Translator reached!')# Google Translatorgoogle_translator=GoogleTranslator()google_translation=google_translator.translate(text,from_lang,to_lang)print(google_translation)🔑 Features 🔑Bing, DeepL and Google translators for more translation options!Easy switching between translators.Supports 100+ languages across translators. 🌍🏆 Examples 🏆text='This is a longer text to test the translation.'bing_translation=bing_translator.translate(text,'en','es')deepl_translation=deepl_translator.translate(text,'en','de')google_translation=google_translator.translate(text,'en','fr')
Package: mintty-colors
A command line tool for switching colors on the fly in cygwin’s mintty terminal.InstallationYou know this:pip install mintty-colorsThis installs a command-line tool -mtcthat let’s you control the colors of your mintty session.UsageList available themes$mtclistChange current theme$mtcset<theme>ConfigurationYou can add your own themes or override the built-in themes by putting a file at~/.mintty-colors. This file is a config file where each section describes a mintty color scheme in the format used in mintty’s~/.minttyrcfile.Example:[solarized-light]
BackgroundColour=253,246,227
ForegroundColour=88,110,117
CursorColour=88,110,117
Black=0,43,54
BoldBlack=101,123,131
Red=220,50,47
BoldRed=220,50,47
Green=133,153,0
BoldGreen=133,153,0
Yellow=181,137,0
BoldYellow=181,137,0
Blue=38,139,210
BoldBlue=38,139,210
Magenta=108,113,196
BoldMagenta=108,113,196
Cyan=42,161,152
BoldCyan=42,161,152
White=147,161,161
BoldWhite=253,246,227
Package: mintty-theme-selector
Mintty Theme SelectorPython script to change betweenminttythemes from the command lineSave your themes—~/.mintty/themesInstall the script —pip install mintty-theme-selectorList themes —mtsSelect a theme —mts my-themeImportant:my-themeis a regex which will be matched against theme filenames without extension, somts my-theme$and similar works.
Package: minty
This “Command and Query” module allows a developer to generate an abstraction around
calling commands and queries in a domain model.Getting started# In your calling module
from minty.cqrs import CQRS
from minty.infrastructure import InfrastructureFactory
from zsnl_domains import some_domain

# Configure a CQRS instance (config file type may be ".conf" or ".json")
infra_factory = InfrastructureFactory("/etc/configfile.conf")
cqrs = CQRS([some_domain], infra_factory)

# Params can also be pre-set by the command or query function:
query_instance = cqrs.get_query_instance("some_domain", "context")

query_instance.some_query()ContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) Minty Team and all persons listed in the fileCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtin theLICENSESdirectory for details.
Package: minty-amqp
AMQP Consumer service framework.Getting startedMain:def main():
    amqp = AMQPLoader(
        domains=[insert_domains_here],
        command_wrapper_middleware=[insert_wrapper_classes_here],
        config_path="config.conf",
    )
    amqp.start_client()Create consumer:from minty_amqp.consumer import BaseConsumer

class ConsumerPrint(BaseConsumer):
  def __call__(self, message):
      print("Message:", message.body, "consumer_touch")
      message.ack()package.conf example:<amqp>
  url = 'http://0.0.0.0:5672'
  <consumer_settings>
        routing_keys = "zsnl.v2.*.*"
        queue_name = "legacy_logging_queue_test"
        exchange  =  "minty_exchange"
        qos_prefetching =  1
        consumer_class = "zsnl_amqp_consumers.consumers.LegacyLoggingConsumer"
        number_of_channels = 1
        <dead_letter_exchange>
          exchange = "minty_retry_exchange"
          retry_time_ms = 10000
        </dead_letter_exchange>
  </consumer_settings>
</amqp>note: dead_letter_exchange config is optionalMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty_amqp/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) Minty Team and all persons listed in the fileCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtin theLICENSESdirectory for details.
Package: minty-config
.. _readme:Introduction============Configuration reader for Minty projects, supporting both Redis and file storagebackends.Getting started---------------from minty_config import Configurationfrom minty_config.parser import ApacheConfigParserfrom minty_config.store import FileStore, RedisStorestore = FileStore("/etc/minty")parser = ApacheConfigParser()configuration = Configuration(parser=parser, store=store)# Will read "/etc/minty/foobar.com.conf"configuration.get(name="foobar.com")More documentation------------------Please see the generated documentation via CI for more information about thismodule and how to contribute in our online documentation. Open index.htmlwhen you get there:`<https://gitlab.com/minty-python/Minty Configuration/-/jobs/artifacts/master/browse/tmp/docs?job=qa>`_Contributing------------Please read `CONTRIBUTING.md <https://gitlab.com/minty-python/Minty Configuration/blob/master/CONTRIBUTING.md>`_for details on our code of conduct, and the process for submitting pull requests to us.Versioning----------We use `SemVer <https://semver.org/>`_ for versioning. For the versionsavailable, see the`tags on this repository <https://gitlab.com/minty-python/Minty Configuration/tags/>`_License-------Copyright (c) 2018, Minty Team and all persons listed in:doc:`Contributors </CONTRIBUTORS>`This project is licensed under the EUPL, v1.2. See the`EUPL-1.2.txt <https://gitlab.com/minty-python/Minty Configuration/blob/master/LICENSE>`_file for details.
Package: minty-ddd
This “Command and Query” module allows a developer to generate an abstraction around
calling commands and queries in a domain model.Getting started# In your calling module
from minty_ddd import CQRS
from minty_infrastructure import InfrastructureFactory
from zsnl_domains import some_domain

# Configure a CQRS instance
infra_factory = InfrastructureFactory("/etc/configfile.conf")
cqrs = CQRS([some_domain], infra_factory)

# Params can also be pre-set by the command or query function:
query_instance = cqrs.get_query_instance("some_domain", "context")

query_instance.some_query()More documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:Sphinx DocsContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) 2018, Minty Team and all persons listed inCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtfile for details.
Package: minty-infra-amqp
Minty AMQP infrastructureGetting startedn/aMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty-infra-amqp/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) Minty Team and all persons listed in the fileCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtin theLICENSESdirectory for details.
Package: minty-infra-elastic
Minty template project for Python (micro)services.Getting startedn/aMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty-infra-elastic/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) Minty Team and all persons listed in the fileCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtin theLICENSESdirectory for details.
Package: minty-infra-email
Minty template project for Python (micro)services.Getting startedn/aMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty-infra-email/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) Minty Team and all persons listed in the fileCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtin theLICENSESdirectory for details.
Package: minty-infra-misc
Minty template project for Python (micro)services.Getting startedn/aMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty-infra-misc/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) 2018, Minty Team and all persons listed inCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtfile for details.
Package: minty-infra-sqlalchemy
Minty template project for Python (micro)services.Getting startedn/aMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty-infra-sqlalchemy/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicensei
Copyright (c) Minty Team and all persons listed in the fileCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtin theLICENSESdirectory for details.
Package: minty-infra-storage
Minty template project for Python (micro)services.Getting startedn/aMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty-infra-storage/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) Minty Team and all persons listed in the fileCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtin theLICENSESdirectory for details.
Package: minty-infrastructure
Minty template project for Python (micro)services.Getting startedn/aMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty-infrastructure/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) 2018, Minty Team and all persons listed inCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtfile for details.
Package: minty-pyramid
Pyramid configuration library Minty Python (micro)services.Getting startedView:def hello(request):
  # See minty package for more information about these domain classes:
  domain_query_instance = request.get_query_instance("YourDomainHere")
  return domain_query_instance.some_domain_query()Main:def main(*args, **kwargs):
  # See minty package for more information about these domain classes:
  loader = minty_pyramid.Engine(domains=[YourDomainHere])

  # [optional] To retrieve session information, make sure  to add before
  # running loader.setup()
  kwargs["session_manager"] = True

  # Ensure the "get_query_instance" request method is available
  # It will use a CQRS instance, built with an InstanceConfig built from
  # the configuration file specified in the file pointed to by
  # "minty_service.infrastructure.config_file" in kwargs
  config = loader.setup(*args, **kwargs)

  config.add_route("hello_world", "/hello")
  config.add_view(
      hello, request_method="GET", renderer="json", route_name="hello_world"
      )

  # If you've created the app from an openapi-spec file make sure to add:
  routes.add_routes(config)

  # Returns a WSGI application
  return loader.main()Code generation commands:generate-views: create boilerplate views by using “generate-views” command.When creating your application from an openapi(v3) spec file run
“generate-views” to create “views.py” file with boilerplate code for all the views
specified in the openapi spec.see “generate-views –help” for more infogenerate-routes: create Routes by using “generate-routes” command.Generate or re-generate “routes.py” file from an openapi spec file.see “generate-routes –help” for more infoMore documentationPlease see the generated documentation via CI for more information about this
module and how to contribute in our online documentation. Open index.html
when you get there:https://gitlab.com/minty-python/minty-pyramid/-/jobs/artifacts/master/browse/tmp/docs?job=qaContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions
available, see thetags on this repositoryLicenseCopyright (c) Minty Team and all persons listed in the fileCONTRIBUTORSThis project is licensed under the EUPL, v1.2. See theEUPL-1.2.txtin theLICENSESdirectory for details.
Package: minumtium-fastapi
Minumtium FastAPIA FastAPI application layer for theminumtiumlibrary.How it worksThis library will provide you REST endpoints for authentication, user management and posts. It will use by default theSimple JWT Auth Adapterfor authentication and theSQLite Adapterfor data access/storage, but you can provide your own
adapters if needed. Also, exposing the user management endpoints is optional, for the cases where you have your
own user management and/or authentication systems and don't want to use the built-in ones.This library is meant to be integrated into a bigger FastAPI application, so you can extend your application adding very
simple blogging functionality to it.UsageInstall it using your favorite package manager:pip install minumtium-fastapipipenv install minumtium-fastapipoetry install minumtium-fastapiThen, get the FastAPI router to connect it as a subapp into your main FastAPI app:fromfastapiimportFastAPIimportminumtium_fastapi# Create the minumtium subappminumtium=minumtium_fastapi.get_minumtium_fastapi()# Mount minumtium into your main application, with whatever prefix you would likemain_application=FastAPI()main_application.mount('/minumtium',main_application)You will get an instance that will use an in-memory sqlite and the standard JWT authentication when you callminumtium_fastapi.get_minumtium_fastapi()without passing any arguments.Providing Custom AdaptersYou can also provide your own adapters for data and authentication and disable the user management endpoints.fromfastapiimportFastAPIimportminumtium_fastapifrommy_cool_appimportMyCoolDatabaseAdapter,MyCoolAuthenticationAdapter# Create your adaptersdatabase_adapter_posts=MyCoolDatabaseAdapter('posts')database_adapter_users=MyCoolDatabaseAdapter('users')authentication_adapter=MyCoolAuthenticationAdapter()# Create the minumtium subappminumtium=minumtium_fastapi.get_minumtium_fastapi(database_adapter_posts,database_adapter_users,include_user_endpoints=False)# Mount minumtium into your main application, with whatever prefix you would likemain_application=FastAPI()main_application.mount('/minumtium',main_application)Running StandaloneYou can also run it standalone, but this is probably useless. Create a file namedmain.pywith the following contents:fromfastapiimportFastAPIimportminumtium_fastapiapp=FastAPI()app.mount('/minumtium',minumtium_fastapi.get_minumtium_fastapi())Then execute it in the terminal:uvicorn main:app --reloadAPI DocsYou will be able to see the API docs going to/<minumtium mount path>/docsin a running instance of minumtium.
Package: minumtium-postgres
Minumtium PostgresA postgres database adapter for theminumtiumlibrary. It uses SQL Alchemy
as its abstraction library alongside with pg8000 as the connection driver.What can I use it for?It is used to provide access to data stored in postgres instances using
theminumtiumlibrary.UsageInstall it using your favorite package manager:pip install minumtium-postgrespipenv install minumtium-postgrespoetry install minumtium-postgresThen, provide it to your minumtium Services:fromminumtium.modules.idmimportIdmService,UserRepositoryfromminumtium_simple_jwt_authimportSimpleJwtAuthenticationfromminumtium_postgresimportMinumtiumPostgresAdapter,MinumtiumPostgresAdapterConfigconfig=MinumtiumPostgresAdapterConfig(username='minumtium',password='samplepassword',host='localhost',port=5432,dbname='minumtium',schema_name='minumtium')db_adapter=SqlAlchemyAdapter({config,'posts')auth_adapter=SimpleJwtAuthentication(configuration={'jwt_key':'not a reliable key, change that quickly','session_duration_hours':1})users_repository=UserRepository(db_adapter)idm_service=IdmService(auth_adapter,users_repository)idm_service.authenticate('jao','batata')
Package: minumtium-simple-jwt-auth
Minumtium Simple JWT AuthA very simple JWT Auth adapter for theminumtiumlibrary.What can I use it for?It is used to provide JWT token authentication using theminumtiumlibrary.UsageInstall it using your favorite package manager:pip install minumtium-simple-jwt-authpipenv install minumtium-simple-jwt-authpoetry install minumtium-simple-jwt-authThen, provide it to your minumtium Idm service:fromminumtium.modules.idmimportIdmService,UserRepositoryfromminumtium_sql_alchemy_adapterimportSqlAlchemyAdapterfromminumtium_simple_jwt_authimportMinumtiumSimpleJwtAuthenticationdb_adapter=SqlAlchemyAdapter({'engine':'sqlite_memory'},'posts')auth_adapter=MinumtiumSimpleJwtAuthentication(configuration={'jwt_key':'not a reliable key, change that quickly','session_duration_hours':1})users_repository=UserRepository(db_adapter)idm_service=IdmService(auth_adapter,users_repository)idm_service.authenticate('jao','batata')
Package: minumtium-sqlite
Minumtium SQLiteA SQLite adapter for theminumtiumlibrary. It uses SQL Alchemy as its
abstraction library.What can I use it for?It is used to provide access to data using relational databases using
theminumtiumlibrary.UsageInstall it using your favorite package manager:pip install minumtium-sqlitepipenv install minumtium-sqlitepoetry install minumtium-sqliteThen, provide it to your minumtium Service:fromminumtium.modules.idmimportIdmService,UserRepositoryfromminumtium_sql_alchemy_adapterimportSqlAlchemyAdapterfromminumtium_simple_jwt_authimportSimpleJwtAuthenticationdb_adapter=SqlAlchemyAdapter({'engine':'sqlite_memory'},'posts')auth_adapter=SimpleJwtAuthentication(configuration={'jwt_key':'not a reliable key, change that quickly','session_duration_hours':1})users_repository=UserRepository(db_adapter)idm_service=IdmService(auth_adapter,users_repository)idm_service.authenticate('jao','batata')
Package: minushalf
The DFT -1/2 methodDFT-1/2, an alternative way of referring to the LDA -1/2  and GGA -1/2 techniques ,
is a method that method for approximate self-energy corrections within the framework of conventional Kohn-Sham DFT
which can be used not only with the local density approximation (LDA), but also with the generalized gradient approximation (GGA).The method aims to predict energy gaps results with the same precision  as the quasiparticle correction  algorithm, considered
the state of the art for calculating energy gap of semiconductors. In addition, the computational effort of the method
is equivalent to the standard DFT approach and and is three orders of magnitude lower than the aforementioned GW method, which allows the technique to be applied to complex systems.Fig 1. Comparison of calculated band gaps with experiment. The red square are the SCF LDA-1/2 (standard LDA-1/2).
The crosses are standard LDA. The small gap semiconductors are metals (negative gaps), when calculated with LDA.
LDA-1/2 corrects the situation. The band structure calculations were made with the codes VASP and WIEN2k.What is minushalf?Minushalf is a command line interface (CLI) developed by the group of semiconductor materials and nanotechnology (GMSN) that aims to automate
the application of the DFT -1/2 method. The commands available in this  CLI automate both the entire process and each of its steps in order to be
used for several purposes.InstallationThe minushalf CLI can be easily installed by PyPI with the following command.$pipinstallminushalfRequirementsThe minushalf CLI was built in order to automate the application of the DFT -1/2 method.
Thus, as the method requires the calculation of eigenvalues for each kpoint and band,
it is necessary to install some software that performs ab initio calculations.
Currently, the following softwares are supported by the program:VASPMore informationRead the docsKnown GMSN
Package: minuteinbox
minuteinboxUnofficial python wrapper for minuteinbox.comusagefromminuteinboximportInbox# use without parameters to create a new inbox# inbox = Inbox()# use with address and token to reuse an existing inboxinbox=Inbox(address="maximo.kayo@moontrack.net",token="86d6b9308a1a482ba348533a457146c4",)address=inbox.addresstoken=inbox.tokenprint(address,"(",token,")")print()# extend the expiration of the inbox by 10 minutesinbox.extend_10m()print("Expires in:",inbox.expires_in,"seconds")print()# fetch all emails in the inboxformailininbox.mails:print("FROM:",mail.sender.name,mail.sender.address)print("SUBJECT:",mail.subject)print("SENT AT:",mail.sent_at)print("IS NEW:",mail.is_new)print("CONTENT")print(mail.content)