Saravanan666/pypi-org huggingface dataset:
Package: simpleline
Python SimplelineThis is a text UI framework originally which was a part of theAnacondainstaller project.This UI is simple and easy to use. It is designed to be used with line-based
machines and tools (e.g. serial console) so that every new line is appended
to the bottom of the screen. Printed lines are never rewritten!How toLinkto the documentation.Another way to learn how to use this library is to view theexamples directory.
Examples can be run without installing Simpleline to the system. You can test
them by running the scriptrun_example.sh.cd examples./run_example.sh example_folder_nameFor example:./run_example.sh basicDependenciesThis is a Python3-only project. This code should not be difficult to migrate to
Python2. However, there is no need from the community, so it is only compatible
with Python3 at the moment.
No special libraries are required to use this library. If you want to use glib
event loop instead of the original one you need to install glib and Python3
gobject introspection.If you want to run tests (make ci), you need to installPocketlintand glib with gobject
introspection for Python3.NoteThanks to Martin Sivák for the original Anaconda project. It was really nice
starting place for the new Simpleline's form.
Package: simple-linear-algebra
linear_algebraMotivationReview linear algebraby implementing concenpts in Python codeLearn OOP in PythonInstallationpipinstallFeaturesCompletedVector# Initialize vectorv_1=Vector(1,2,3)v_2=Vector(4,5,6)Add (+)[in]:Vector(1,2,3)+Vector(4,5,6)[out]:Vecotr(5,7,9)Subtract (-)[in]:Vector(3,2,1)-Vector(1,1,1)[out]:Vector(2,1,0)Multiply (*)# scaler[in]:2*Vector(1,2,3)[out]:Vector(2,4,6)# inner product[in]:Vector(1,2,3)*Vector(1,1,1)[out]:6.norm# .norm attribute of the vector is the length or magnitude of the# vector[in]:Vector(1,2,3).norm[out]:3.7419573To be ImplementedMatrix
Package: simplelist
SimpleListSimpleList Python Package is a quick and easy way to intergrate TXT files with python.InstallationTo use SimpleList, runpip install simplelist, if you are on MacOS, install SimpleList withpip3 install SimpleList.FeaturesTXT From A Python ListRead a Python list into a TXT and overwrite any old data on it.List From TXTMake a Python list from a TXT file.Inbuilt ListsSimpleList comes with 3 inbuilt lists available for useMIT LicenseUsageThe List From TXT is a simple way to read a TXT file into a python listImport:from simplelist import listfromtxtSyntax:ListName = listfromtxt('myFile.txt')The TXT From List is a simple way to read a python list into a TXT fileImport:from simplelist import txtfromlistSyntax:txtfromlist('myFile.txt', myList)Inbuilt ListsImportfrom simplelist import ListsLoad Classclass = Lists()Set Listyes = list_yes()Print Listprint(yes)Available Lists:list_yes, list_no, list_tickersSupportEmail:neil@insight3d.techDiscord:InSight3D Discord Server
Package: simple-loading-bar-utility
Simple Loading Bar UtilityIntroductionsimple_loading_bar_utilityis a simple, lightweight Python utility for displaying a customizable loading bar in the console. It's designed for ease of use and flexibility, ideal for adding a visual progress indicator to your Python scripts and applications.FeaturesCustomizable bar length.Options to display or hide the percentage and iteration indicators.Easy integration into existing Python projects.InstallationCurrently, the package is not hosted on PyPI, so you can install it directly from the source:gitclonehttps://github.com/peterdonaghey/simple_loading_bar_utility.gitcdloading_bar
pipinstall.UsageTo useloading_barin your project, simply import and call the function in a loop:fromloading_bar.loading_barimportloading_bartotal=1000foriinrange(total):loading_bar(i,total)CustomizationYou can customize the loading bar by adjusting the following parameters:i: Current iteration (int).total: Total iterations (int).length: Length of the loading bar (default is 50).show_percentage: Flag to show or hide percentage (default is True).show_iterations: Flag to show or hide iterations completed (default is True).LicenseThis project is under the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. For more information, see LICENSE.ContributionsContributions, issues, and feature requests are welcome! Feel free to check issues page.
Package: simple-localization
Simple localization package for PythonSetup:Create a localization folder wherever you want in your project.Add localization files inside. This package use.jsonfiles.Example:(localization/en_EN.json){"GREETINGS":"Hello !","GOODBYE":"Goodbye !"}(localization/fr_FR.json){"GREETINGS":"Bonjour !","GOODBYE":"Au revoir !"}Usagefromsimple_localizationimportLocalizationManagerlocalization=LocalizationManager('../localization','en_EN')It's as simple as that !>>>localization['GREETINGS']Hello!You can change the language of an already existing LocalizationManager object usingchange_language:>>>localization['GREETINGS']Hello!>>>localization.change_language("fr_FR")>>>localization['GREETINGS']Bonjour!LinksDocumentation
Package: simple-locations
simple_locationsThe common location package used for catalpa's projects. A hierarchical tree of geographical locations supporting location type and GIS data.AdminThe admin site is set up to use Modeltranslations (if available in the parent app)For modeltranslations, please remember to runsync_translation_fieldsin order to getname_en,name_tetetc. fields.EnvironmentThis is intended to be compatible with:Django 3.1, 3.2, 4.0Python 3.7, 3.8, 3.9ghrepoclonecatalpainternational/simple_locationscdsimple_locations
python-mvenvenv
.env/bin/activate
pipinstallpip-tools
pip-syncrequirements.txtdev.txt
pre-commitinstallPre CommitIfpre-commitis installed your code will be checked before commit.
This includesblackflake8isortmypyThe same checks are run on push. Seepytest.yamlfor details on the checks being run.New ReleaseFor a new release, change theversionproperty in pyproject.toml and push a git tag with the version number
For instance at time of writing the version is3.1.4with the tagv3.1.4Seebuild.yamlfor details on release taggingChangelogVersion 3.1.4Migrating JSON views from openlyVersion 3.1.3Addedintersects_areafunctionVersion 3.1.2Uses psycopg2-binary for development environmentVersion 3.1.1Added "border" fieldsAdded a model for "projected" areas in EPSG:3857Added commands for border generation and./manage.pyand associated project codeVersion 3.0.1Poetry for dependency + packagingReleases are automated by pushing avx.x.xtag to githubVersion 3.0 (not on pypi)Code style changes (black, flake8)Version 2.77first pass of updates for Python 3.8+ and Django 3.1+Version 2.75add modeltranslationsVersion 2.74fix CORS issue breaking maps in AreaAdmintypo in AreaChildrenInlineVersion 2.73add an inline showing children to the Area adminmake thegeomfield optionalVersion 2.72optionally use django_extensions' ForeignKeyAutocompleteAdmin in admin interfaceManually Uploading a new version to PyPiBumppyproject.tomlThen runpoetry buildandpoetry publishpoetrybuild
poetrypublishSee the filebuild.ymlfor the workflow
Package: simple-locize
Simple LocizeSimple Locize is a library for handling translations via the Locize API. Locize is a translation management system that allows you to easily manage your application's translations.Installationpipinstallsimple-locizeUsageTo use Simple Locize, you first need to create an instance of theSimpleLocizeclass:fromsimple_locizeimportSimpleLocizeproject_id='your-project-id'environment='your-environment'private_key='your-private-key'# optionallocize=SimpleLocize(project_id,environment,private_key)Fetching translationsTo fetch translations for a specific namespace and language, you can use theget_all_translations_from_namespacemethod:namespace='your-namespace'language='en'translations=locize.get_all_translations_from_namespace(namespace,language)This will return an object containing all translations for the specified namespace and language.Translating a keyTo translate a specific key for a namespace and language, you can use thetranslatemethod:namespace='your-namespace'language='en'key='your.key'translation=locize.translate(namespace,language,key)This will return the translation for the specified key, or the key itself if no translation is found.LicenseSimple Locize is open-sourced software licensed under theMIT license.
Package: simple-lock
[![LICENCE](https://img.shields.io/badge/LICENCE-MIT-brightgreen.svg)](https://github.com/0h-n0/simple-lock)[![PYTHON version](https://img.shields.io/badge/python-3.5,3.6-blue.svg)](https://github.com/0h-n0/simple-lock)[![PyPI version](https://img.shields.io/pypi/v/simple-lock.svg)](https://badge.fury.io/py/simple-lock)[![Build Status](https://travis-ci.org/0h-n0/simple-lock.svg?branch=master)](https://travis-ci.org/0h-n0/simple-lock)[![codecov](https://codecov.io/gh/0h-n0/simple-lock/branch/master/graph/badge.svg)](https://codecov.io/gh/0h-n0/simple-lock)[![Maintainability](https://api.codeclimate.com/v1/badges/9a8b4b39d3673ccb6db6/maintainability)](https://codeclimate.com/github/0h-n0/simple-lock/maintainability)[![BCH compliance](https://bettercodehub.com/edge/badge/0h-n0/simple-lock?branch=master)](https://bettercodehub.com/)# simple-locksimple-lock provides lock system as a decorator or with-statement in your code. It is easy to use them.## ConceptYou can easily implement lock system in your application with modifing a few line. There are mainly two decorator in `simple_lock`. First, `simple_lock.lock` locks function and create a lockfile. After that, other functions refer to the lockfile can't be executed normally. Second, without creating a new lockfile, `simple_lock.watch` watchs a lockfile provieded as one of arguments without creating a new lockfile.## Instalation```shell$ pip install simple-lock```## How to use### Lock your function with `simple_lock.lock` decorator.When a funciton try to create a lockfile and the lockfile already exists. `simple_lock.lock` decorator returns `return_value` like the following codes.```test.pyfrom simple_lock import lock@lock(filename='simple.lock', path='~/locks',return_value=10)def sleep():import timetime.sleep(10)sleep() # -> 10```You can provide a function as 'return_value' argument and arguments of 'return_value'.```test.pyfrom simple_lock import lockdef add(a, b):return a + b@lock(filename='simple.lock', path='~/locks',return_value=adda=1, b=1)def sleep():import timetime.sleep(10)sleep() # -> 2````simple_lock.watch` also provides functions similar to `simple_lock.lock`. The difference between `simple_lock.lock` and `simple_lock.watch` is just whether lockfile is created or not.```test.pyfrom simple_lock import watch@watch(filename='simple.lock', path='~/locks',return_value=10)def sleep():import timetime.sleep(10)sleep() # -> 10``````test.pyfrom simple_lock import watchdef add(a, b):return a + b@watch(filename='simple.lock', path='~/locks',return_value=add,a=1, b=1)def sleep():import timetime.sleep(10)sleep() # -> 2```## References* https://github.com/benediktschmitt/py-filelock
Package: simple-log
version number: 0.0.4date: 2023.03.08author: Andrew J. Todd esq.OverviewA python module to allow you to log with minimal fuss. It’s a wrapper around the standard logging module with sensible defaults and as little configuration as possible. Documentation is on [halfcooked.com](https://halfcooked.com/code/simple_log/)InstallationTo install use pip:$ pip install simple_logOr clone the repo:$ hg clone https://hg.sr.ht/~andy47/simple_log
$ python setup.py installUsageWe try and stay true to the name and make using this module as simple as possible. For the simplest case just use>>> from simple_log import get_log
>>> my_log = get_log()
>>> my_log.info("This is an information message")
2016.11.10 22:21:51 default INFO:: This is an information messageIf you want to have multiple logs just pass a name toget_log>>> first_log = get_log("first")
>>> first_log.info("Information message to first log")
2016.11.10 22:27:30 first INFO:: Information message to first log
>>> second_log = get_log("two")
>>> second_log.debug("This is a debug message")
2016.11.10 22:28:02 two DEBUG:: This is a debug messageBy default the logging level is set to‘INFO’(the standard module defaults to‘WARNING’). See the [logging tutorial](https://docs.python.org/3/howto/logging.html#logging-basic-tutorial) for information on logging levels. If you would like to change the logging level, for instance to display ‘DEBUG’ messages use thesetLevelmethod on your log object>>> from simple_log import get_log
>>> my_log = get_log('test_log')
>>> my_log.debug('This is the first debug message')
...
>>> my_log.setLevel('DEBUG')
>>> my_log.debug('This is the second debug message')
2016.11.10 22:34:55 test_log DEBUG:: This is the second debug messageThe log level values that you can pass tosetLevelare‘DEBUG’,‘INFO’(the default),‘WARNING’,‘ERROR’or‘CRITICAL’.If you would like your log messages written to a file as well as the screen use theadd_filefunction>>> from simple_log import get_log, add_file
>>> my_log = get_log('test_log')
>>> my_log.info('This is an information message')
2016.11.12 22:48:10 test_log INFO:: This is an information message
>>> add_file('test_log', 'test_log.log')
>>> my_log.info('This is another information message')
2016.11.12 22:49:30 test_log INFO:: This is another information message
>>> cat test_log.log
2016.11.12 22:49:30 test_log INFO:: This is another information messageContributingIf you would like to contribute please visit the project web site at -https://hg.sr.ht/~andy47/simple_log
Package: simple-log-factory
Simple log factoryThis package is a wrapper for a simple log factory.UsageCreates a logger that will write to console, with level set to DEBUG.fromsimple_log_factoryimportlog_factorylogger=log_factory("my_log1")Creates a logger that will write to console and to file, with level set to DEBUG.
The file log will rotate daily, with timestamp added.fromsimple_log_factoryimportlog_factorylogger=log_factory("my_log1",log_file="./my_log_dump.log")Creates a logger that will write to console and to file, with level set to DEBUG.
This log file will be unique.fromsimple_log_factoryimportlog_factorylogger=log_factory("my_log1",log_file="./my_log_dump.log",rotate_file_by_day=False)Creates a logger that will write to console, with level set to DEBUG.
This type of logger (console) will be unique.
(That's a workaround to log entries duplicated when more than one logger is configured to the same output)fromsimple_log_factoryimportlog_factorylogger=log_factory("my_log1",unique_handler_types=True)NotesThis is a very early stage project, just a few functionalities. If you find any bugs, please contact me (or feel free to open an issue on Github).Github Project: https://github.com/brenordv/log-factory-package
Package: simplelogger-python
SimpleLoggerDescriptionA simple logger I made for some projects a year ago.Usagefromsimplelogger.loggerimportLogger# Import the logger.log_obj=Logger(# Create a logger object."Test Logger",# The name of the logger."logfile.log",# Where to write the logs.loglevel=5# Set the log level. Capture all types of log.)log_obj.info("Sample Information message.")log_obj.warning("Sample warning message.")log_obj.error("Sample error message.")log_obj.debug("Sample debug message.")log_obj.critical("Sample critical message.")LicenseMIT LicenseCopyright (c) 2020-2022 Chris1320Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: simple-loggers
A Simple Logger PackageInstallationpipinstallsimple-loggersUsagefromsimple_loggersimportSimpleLoggerlogger=SimpleLogger(colored=True)logger.debug('debug message')logger.info('info message')logger.warning('warn message')logger.error('error message')logger2=SimpleLogger(name='TEST2',colored=False,logfile='out.log')logger2.debug('debug message')logger2.info('info message')logger2.warning('warn message')logger2.error('error message')logger3=SimpleLogger(name='TEST3',level='info',fmt='%(asctime)s%(levelname)s:%(message)s')logger3.debug('debug message')logger3.info('info message')logger3.warning('warn message')logger3.error('error message')
Package: simple-logging-config
OverviewInstallationWith Pip:pip install simple_logging_configUsageThe simple_logging_config package provides a simplified logging configuration.To use with the default configuration, only 2 lines of code are required.fromsimple_logging_configimportconfigure_loggingconfigure_logging()Orfromsimple_logging_configimportSimpleLoggingConfigSimpleLoggingConfig()This will enableinfolevel logging to the console anddebuglevel logging to a file.Information logged to the console is just the log message with no additional detail.Information logged to file includes the timestamp, log_level, module and messageFor a slightly more complex usecase, using a few additional lines of code, configure_logging is configurable using command line parameters.# myscript.pyfromargparseimportArgumentParserfromsimple_logging_configimportconfigure_logging,add_logging_argumentsparser=ArgumentParser(description="Test Program")add_logging_arguments(parser)args=parser.parse_args()configure_logging(**vars(args))Your script will now accept additional CLI paramaters to configure logging at runtime as shown below.usage:myscript.py[-h][-v|--slc-levelLEVELS][--slc-modules[MODULES...]][--slc-log-file-pathLOG_FILE_PATH][--slc-backup-countBACKUP_COUNT][--slc-config{dual,dual_rotating,dual_detailed,console,file,rotating_file}]TestProgramoptions:-h,--helpshowthishelpmessageandexit-v,--verboseThelevelofloggingverbosityforthedefaulthandler.Usemultipletimes(upto-vvv)forincreasedverbosity.--slc-levelLEVELS,--slc-levelsLEVELSTheloglevel(s)tobeappliedtoattachedhandlers.Thisvaluecanbeasingleintegerorastringrepresentingadefinedloglevel.Oritcanbeastringrepresentingadictionarywherekey/valuepairsarehandlernamesandthelogleveltobeassociatedwiththathandler--slc-modules[MODULES...]Thenamesofthemodulestobelogged.Ifomittedallmodulesarelogged.--slc-log-file-pathLOG_FILE_PATHThepaththelogfilewillbesavedto.Ifthisisafolder,thelogfilewillbesavedtothisfolderwiththefilenamederivedfromthenameofthecallingscript.Otherwise,assumethisisafullpathtoanamedlogfile.--slc-backup-countBACKUP_COUNTAnintegerspecifyingThenumberofbackuplogfilestoretain.--slc-config{dual,dual_rotating,dual_detailed,console,file,rotating_file}Thenameoftheloggingconfigtobeused.
Package: simplelogin
Simplelogin CLIA command line interface for Simplelogin.CapabilitiesLogin to account (login)Login with MFALogout (logout)Search aliases (alias)Search aliases usingflags(ex.alias --pinned)Get user stats (stats)Generate custom alias (create)Generate random alias (random)Delete an alias (delete)Disable/enable an alias (toggle)--helpavailable for all commandsInstallable viapip install simpleloginTodosConsolidateauth.pyintosettings.py:construction:TestsBetter commentingContributionsIf you would like to contribute in any way feel free to open apull requestor suggest something by opening anissue.How to runInstall PoetryClone this repositoryNavigate to the base directoryInstall the dependencies (poetry install)Run the program (poetry run python simplelogin_cli/main.py)
Package: simplelogin-api
SimpleLogin API wrapper!! Work in progress !!AboutWrapper forsimplelogin.ioAPIMade usingSL API docs (13.04.2022)Schema validation powered bySchematicsTODOall api endpointsasync clientuseful testsExampleCreate API key herefromsimplelogin.clientimportClientfromsimpleloginimportSimpleLoginApiif__name__=='__main__':client=Client('API_KEY')api=SimpleLoginApi(client)print(api.get_user_info().to_native())print(api.get_alias_list(page=0).to_native())
Package: simplemachinesforum
python-simplemachinesforumPython request API to Simple Machines Forum:https://www.simplemachines.org/ImportantA forum is for humans, please use this piece of software only in combination with YOUR OWN FORUM or by order of the forum owner itself to provide a valuable service. Be aware that bots are not tolerated on most boards and its use will lead to a ban.What does it can?It can create a new topic withnew_topic()on a remote simple machines forum over the network, all it needs is a valid user account to login.Given a topic ID, toggle the topic's stickiness withtoggle_sticky().Given a subject name and board, return the topic id for the matching topic withget_topic_id.Use the advanced search feature, and return the list of matches withadvanced_search().Given a board, return the topic id for all currently stickied topics withget_stickied_posts().InstallationPyPIpip install simplemachinesforumhttps://pypi.org/project/simplemachinesforum/Condaconda install -c conda-forge simplemachinesforumhttps://anaconda.org/conda-forge/simplemachinesforumHow to create a new topic?from simplemachinesforum.simplemachinesforum import SimpleMachinesForum
smf_url = "https://www.any-simplemachinesforum.com"
smf_user = "user_name"
smf_pass = "password"
smf = SimpleMachinesForum(smf_url, smf_user, smf_pass)
# 1 = board id:
smf.new_topic(1, "subject", "This is the message to post!")Documentationhttps://oliver-zehentleitner.github.io/python-simplemachinesforum/Project, code and downloads:https://github.com/oliver-zehentleitner/python-simplemachinesforumWikihttps://github.com/oliver-zehentleitner/python-simplemachinesforum/wikiHow to report bugs or suggest improvements?Please open a new issue:https://github.com/oliver-zehentleitner/python-simplemachinesforum/issuesIf you report a bug, try first the latest release viadownloador withpip install simplemachinesforum --upgrade. If the issue still exists, provide the error trace, OS
and python version and explain how to reproduce the error. A demo script is appreciated.Contributingpython-simplemachinesforumis an open source project which welcomes contributions which can be anything from simple
documentation fixes to new features. To contribute, fork the project onGitHuband send a pull request.ContributorsWeopen source!DonateSince you are probably a developer yourself, you will understand very well that the creation of open source software is
not free - it requires technical knowledge, a lot of time and also financial expenditure.If you would like to help me to dedicate my time and energy to this project, even small donations are very welcome.:heart: Sponsor (GitHub)BTC: 39fS74fvcGnmEk8JUV8bG6P1wkdH29GtsA
ETH: 0x1C15857Bf1E18D122dDd1E536705748aa529fc9CCommercial SupportDo you need a developer, operator or consultant?Contact usfor a non-binding initial consultation!