Saravanan666/pypi-org huggingface dataset:
Package: python-teamcowboy-api
Team Cowboy API PythonThe Unofficial Python Wrapper for the Team Cowboy APIGetting StartedTeamCowboyApi-Pythonis a Python library that provides developers with access to the Team Cowboy API which allows developers to retrieve information related to teams, players, events, and more.TeamCowboyApi-Pythonwritten in python 3.10+.To get started with the library, refer to the information provided in this README. For a more detailed explanation, check out the documentation and the Wiki section. The Wiki contains information on return objects, endpoint structure, usage examples, and more. It is a valuable resource for getting started, working with the library, and finding the information you need. You can also visit Team Cowboys official api documentationhereand apply for api accesshereDocs|Examples|Wiki|APIInstallationpython3-mpipinstallpython-teamcowboy-apiUsagepython3>>>importteamcowboyapi>>>Teamcowboy=teamcowboyapi.Teamcowboy(privateapikey,publicapikey,username,password)>>>Teamcowboy.Event_Get(teamid,eventid)DocumentationAuthentication MethodsTeamcowboy.Auth_GetUserToken(self, username: str, password: str)- Return user auth tokenEvent MethodsTeamcowboy.Event_Get(self, teamId: int, eventId: int, **params)- Return Event from teamid and eventidTeamcowboy.Event_GetAttendanceList(self, teamId: int, eventId: int)- Return Attendance List from teamid and eventidTeamcowboy.Event_SaveRSVP(self, teamId: int, eventId: int, status: str, **params)- Save RSVP from teamid eventid and rsvp statusMessage MethodsTeamcowboy.Message_Get(self, teamId: int, messageId: int, **params)- Return Message from teamid and messageidTeamcowboy.Message_Delete(self, teamId: int, messageId: int)- Delete Message from teamid and messageidTeamcowboy.Message_Save(self, teamId: int, title: str, body: str, **params)- Save Message from teamid and messageidTeamcowboy.MessageComment_Delete(self, teamId: int, messageId: int, commentId: int)- Delete Message comment from teamid and messageid and commentTeamcowboy.MessageComment_Add(self, teamId: int, messageId: int, comment: str)- Add Message comment from teamid and messageid and commentTeam MethodsTeamcowboy.Team_Get(self, teamId: int)- Return Team from teamidTeamcowboy.Team_GetEvents(self, teamId: int, **params)- Return team Events from teamidTeamcowboy.Team_GetMessages(self, teamId: int, **params)- Return team Messages from teamidTeamcowboy.Team_GetRoster(self, teamId: int, **params)- Return team Roster from teamidTeamcowboy.Team_GetSeasons(self, teamId: int)- Return team Seasons from teamidTest MethodsTeamcowboy.Test_GetRequest(self, **params)- Test api's GETTeamcowboy.Test_PostRequest(self, **params)- Test api's POSTUser MethodsTeamcowboy.User_Get(self)- Return UserTeamcowboy.User_GetNextTeamEvent(self, **params)- Return next team Event for userTeamcowboy.User_GetTeamEvents(self, **params)- Return next team Events for userTeamcowboy.User_GetTeamMessages(self, **params)- Return team Messages for userTeamcowboy.User_GetTeams(self, **params)- Return users Teams
Package: python-teamwork
Python Wrapper for Teamwork APIAPI Reference:http://developer.teamwork.com/To use, simply do:>>> import teamwork
>>> instance = teamork.Teamwork('company.teamwork.com', 'API_KEY')
>>> instance.get_projects()InstallationUsing pip:>>> pip install python-teamworkUsing the source code:>>> python setup.py installAvailable methodsMethods implementation in progress. This is the list of the available ones:instance.get_projects()Returns all the projects of the account.http://developer.teamwork.com/projectsapi#retrieve_all_projinstance.get_project_times(project_id)Returns the times for a specific project.
Available parameters for filtering:user_id: User idstart_date: Start dateend_date: End Dateinstance.save_project_time_entry(project_id, entry_date, duration, user_id, description, start_time)Create time entry for specified project.project_id: Project IDdate: datetime.date Date of time entryduration: datetime.timedelta Durationuser_id: Integer Id of persondescription: String Id of personstart_time: datetime.timedelta
Package: python-technove
Python: TechnoVE API ClientAsynchronous Python client for TechnoVE charging station.Aboutpython-technove(akapytechnove) is a Python 3.11,asyncio-driven interface
to the unofficial TechnoVE charger API from TechnoVE.This is originally meant to be integrated into Home Assistant, but can be used anywhere.UsageimportasynciofromtechnoveimportTecnnoVEasyncdefmain()->None:"""Show example on controlling your TecnnoVE station."""asyncwithWLED("192.168.1.10")astechnove:station=awaittechnove.update()print(station.info.version)if__name__=="__main__":asyncio.run(main())Changelog & ReleasesThis repository keeps a change log usingGitHub's releasesfunctionality.Releases are based onSemantic Versioning, and use the format
ofMAJOR.MINOR.PATCH. In a nutshell, the version will be incremented
based on the following:MAJOR: Incompatible or major changes.MINOR: Backwards-compatible new features and enhancements.PATCH: Backwards-compatible bugfixes and package updates.ContributingThis is an active open-source project. We are always open to people who want to
use the code or contribute to it.Thank you for being involved!Setting up development environmentThe easiest way to start, is by opening a CodeSpace here on GitHub, or by using
theDev Containerfeature of Visual Studio Code.This Python project is fully managed using thePoetrydependency
manager. But also relies on the use of NodeJS for certain checks during
development.You need at least:Python 3.11+PoetryNodeJS 20+ (including NPM)To install all packages, including all development requirements:npminstall
poetryinstallAs this repository uses thepre-commitframework, all changes
are linted and tested with each commit. You can run all checks and tests
manually, using the following command:poetryrunpre-commitrun--all-filesTo run just the Python tests:poetryrunpytestAuthors & contributorsThe original setup of this repository is byChristophe Gagnier.Credits to@frenckfor the base structure and classes of this library
based onpython-wled.The license of python-wled can be found inthird_party/python-wled/LICENSE.For a full list of all authors and contributors,
checkthe contributor's page.DisclaimerThis project is not an official Google project. It is not supported by
Google and Google specifically disclaims all warranties as to its quality,
merchantability, or fitness for a particular purpose.Google Play and the Google Play logo are trademarks of Google LLC.
Package: python-ted
python-ted==========Python library for the University of Edinburgh's [T@Ed Timetabling Service][ted].**Disclaimer: This library has not been condoned by the University of Edinburgh.**`python-ted` is built by students, and simply scrapes the existing timetable web service,since no APIs or timetabling data have been released by the university.## Installation```shpip install python-ted```### Requires- [`icalendar`][icalendar]- [`lxml`](http://lxml.de/)- [`requests`](https://pypi.python.org/pypi/requests)## Usage```python>>> import icalendar>>> import ted# Initialise client and download course-list>>> timetable = ted.Client()# Regex match against course list:>>> import re>>> timetable.match(re.compile('Data'))[<Course: INFR08015 (Informatics 1 - Data and Analysis)>, <Course: ...>, ...]>>> timetable.match(re.compile('INFR08015'))[<Course: INFR08015 (Informatics 1 - Data and Analysis)>]# Get a specific course by course-code>>> timetable.course(code='INFR08015')<Course: INFR08015 (Informatics 1 - Data and Analysis)>>>> timetable.course(code='invalid course code')None```Each `Course` object has 3 main attributes:- `title`: human-readable course name.- `code`: University of Edinburgh course code (seen on timetables or exam scripts).- `identifier`: T@Ed-specific course identifier.```python>>> course = timetable.course(code='INFR08015')# Scrape T@Ed for list of weekly course events, and build an ical calendar>>> events = timetable.events(course)>>> cal = timetable.calendar(events)# Render calendar to a bytestring>>> cal.to_ical()"BEGIN:VCALENDAR..."```Future------- Get API access for T@Ed.License-------This Source Code is subject to the terms of the Mozilla PublicLicense, v. 2.0. If a copy of the MPL was not distributed with thisfile, You can obtain one at http://mozilla.org/MPL/2.0/.[ted]: https://www.ted.is.ed.ac.uk/UOE1314_SWS/[icalendar]: https://pypi.python.org/pypi/icalendar
Package: python-telegram
python-telegramPython API for thetdliblibrary.
It helps you build your own Telegram clients.ChangelogDocumentationTutorialInstallationThis library requires Python 3.6+ and Linux or MacOS.pipinstallpython-telegramSeedocumentationfor more details.DockerThis library has adocker image:dockerrun-i-t--rm\-v/tmp/docker-python-telegram/:/tmp/\akhmetov/python-telegram\python3/app/examples/send_message.py$(API_ID)$(API_HASH)$(PHONE)$(CHAT_ID)$(TEXT)How to useHave a look at thetutorial:)Basic example:fromtelegram.clientimportTelegramfromtelegram.textimportSpoilertg=Telegram(api_id='api_id',api_hash='api_hash',phone='+31611111111',# you can pass 'bot_token' insteaddatabase_encryption_key='changekey123',files_directory='/tmp/.tdlib_files/',)tg.login()# if this is the first run, library needs to preload all chats# otherwise the message will not be sentresult=tg.get_chats()result.wait()chat_id:intresult=tg.send_message(chat_id,Spoiler('Hello world!'))# `tdlib` is asynchronous, so `python-telegram` always returns you an `AsyncResult` object.# You can receive a result with the `wait` method of this object.result.wait()print(result.update)tg.stop()# you must call `stop` at the end of the scriptMore examples you can find in the/examples/ directory.More information in thedocumentation.DevelopmentSeeCONTRIBUTING.md.
Package: python-telegram-bot-api
Telegram Bot API - Python SDK (using aiohttp)Simple and fast client to call rest-api endpointsapi.telegram.orgusing aiohttp package.View at:https://pypi.org/project/python-telegram-bot-api/How to installpip3installpython-telegram-bot-apiUsageMain example:importasynciofromapi_tgbotimportTgBot,TgExceptionTGBOT_TOKEN="12345:YOUR_TOKEN"APP_HOSTNAME="https://YOUR_HOSTNAME.ngrok.io"CHAT_ID=123456789# your chat idclient_tgbot=TgBot(token=TGBOT_TOKEN)asyncdefmain_async():try:response=awaitclient_tgbot.setWebhook("{hostname}/tgbot/wh".format(hostname=APP_HOSTNAME))asserttype(response)==boolassertresponse==TrueexceptTgExceptionase:print(e)try:sent_msg=awaitclient_tgbot.sendMessage(CHAT_ID,"Hello from Telegram Bot!")assertsent_msg.chat.id==CHAT_IDprint(sent_msg.text)exceptTgExceptionase:print(e)if__name__=="__main__":asyncio.run_until_complete(main_async())Simple JSON-Example if you are not interested in pydantic models and want to use dict in answers:importasynciofromapi_tgbotimportTgBotJsonTGBOT_TOKEN="12345:YOUR_TOKEN"APP_HOSTNAME="https://YOUR_HOSTNAME.ngrok.io"CHAT_ID=123456789# your chat idclient_tgbot=TgBotJson(token=TGBOT_TOKEN)asyncdefmain_async():response=awaitclient_tgbot.setWebhook("{hostname}/tgbot/wh".format(hostname=APP_HOSTNAME))print(response.status)# 200print(response.payload)# {'ok': True, 'result': True, 'description': 'Webhook was set'}response=awaitclient_tgbot.sendMessage(CHAT_ID,"Hello from Telegram Bot!")print(response.status)# 200print(response.payload)# {'ok': True, 'result': {'message_id': 786, 'from': {'id': ... } ... }if__name__=="__main__":asyncio.run_until_complete(main_async())DocsHow to publish pypi packageMedium article in RussianDependenciesThis package depends ondevtud / pygramtic >= 0.2.0package.DisclaimerThis project and its author is neither associated, nor affiliated withTelegramin anyway.
See License section for more details.LicenseThis project is released under theGNU LESSER GENERAL PUBLIC LICENSELicense.
Package: python-telegram-bot-django-persistence
python-telegram-bot-django-persistenceDo you usepython-telegram-botwith Django
and want persistence without additional infrastructure? We've got you covered!Quickstart📥 Install packageIf you are usingpoetry(and if not, please, consider using it 😉):poetryaddpython-telegram-bot-django-persistenceElif you are usingpip, then just enter:pipinstallpython-telegram-bot-django-persistence🔌 Add the app to your Django projectThen addpython_telegram_bot_django_persistenceinto yourINSTALLED_APPSin your settings file, like so:INSTALLED_APPS=[..."python_telegram_bot_django_persistence",]☢ Migrate your databasepythonmanagemigrate🌟 Awesome! Use DjangoPersistence in python-telegram-botupdater=Updater(bot=bot,use_context=True,persistence=DjangoPersistence())Contributors ✨Thanks goes to these wonderful people (emoji key):Alexander Shishenko💻📖This project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: python-telegram-bot-pagination
python-telegram-bot-paginationProvide easy way for create number pagination with inline keyboard for telegram bot on python.ExamplewithpyTelegramBotAPIExamplewithpython-telegram-botInstallation.Usage.Button render controlling.Adding extra button.Installationpip install python-telegram-bot-paginationUsagefrom telegram_bot_pagination import InlineKeyboardPaginator

    paginator = InlineKeyboardPaginator(
        page_count,
        current_page=page,
        data_pattern='page#{page}'
    )

    bot.send_message(
        chat_id,
        text,
        reply_markup=paginator.markup,
    )Init arguments:page_count - integer, total 1-based pages count.current_page - integer, 1-based current page. Default 1data_pattern - string with python style formatting named argument 'page'. Used for generate callback data for button. Default '{page}'Properties:markup - json object forInlineKeyboardMarkupTelegramAPI typekeyboard - array of button's distButton render controllingFor edit button render, use paginator object properties:first_page_labelprevious_page_labelcurrent_page_labelnext_page_labellast_page_labelAll of them can by python style formatting string with one arg, or simple string.For example:class MyPaginator(InlineKeyboardPaginator):
    first_page_label = '<<'
    previous_page_label = '<'
    current_page_label = '-{}-'
    next_page_label = '>'
    last_page_label = '>>'

paginator = MyPaginator(page_count)Result:Adding extra buttonFor adding button line before and after pagination use methods:add_before(*args)add_after(*args)Each argument mast provide property 'text' and 'callback_data'For example:paginator.add_before(
    InlineKeyboardButton('Like', callback_data='like#{}'.format(page)),
    InlineKeyboardButton('Dislike', callback_data='dislike#{}'.format(page))
)
paginator.add_after(InlineKeyboardButton('Go back', callback_data='back'))Result:
Package: python-telegram-client
python-telegram-clientThis is a fork ofalexander-akhmetov/python-telegram.
The root package is renamed from "telegram" to "teleclient" to avoid name conflict withpython-telegram-bot.InstallationThis library requires Python 3.6+ and Linux or MacOS.pipinstallpython-telegram-clientSeedocumentationfor more details.How to useHave a look at thetutorial:)Basic example:fromteleclient.clientimportTelegramfromteleclient.textimportSpoilertg=Telegram(api_id='api_id',api_hash='api_hash',phone='+31611111111',# you can pass 'bot_token' insteaddatabase_encryption_key='changekey123',files_directory='/tmp/.tdlib_files/',)tg.login()# if this is the first run, library needs to preload all chats# otherwise the message will not be sentresult=tg.get_chats()result.wait()chat_id:intresult=tg.send_message(chat_id,Spoiler('Hello world!'))# `tdlib` is asynchronous, so `python-telegram` always returns you an `AsyncResult` object.# You can receive a result with the `wait` method of this object.result.wait()print(result.update)tg.stop()# you must call `stop` at the end of the scriptMore examples you can find in the/examples/ directory.More information in thedocumentation.DevelopmentSeeCONTRIBUTING.md.
Package: python-telegram-logger
=====Python Telegram Logger=====Simple logger which dispatch messages to a telegram in markdown format.Uses a separate thread for a dispatching.Support many chats.Support big messages (over 4096 chars).Support telegram API calls restrictions.Installation-----------.. code-block::pip install python-telegram-loggerQuick start-----------1. Configure logger with dict config:.. code-block:: pythonconfig = {..."version": 1,"disable_existing_loggers": False,"handlers": {"telegram": {"class": "python_telegram_logger.Handler","token": "bot_token","chat_ids": [123456789, -1234567891011],}},"loggers": {"tg": {"level": "INFO","handlers": ["telegram",]}}}2. Use it!.. code-block:: pythonimport logginglogger = logging.getLogger("tg")logger.info("test")try:raise Exception("raise!")except Exception:logger.exception("catch!")3. Formatting:- Configure a formatter using dict config, example:.. code-block:: pythonconfig = {..."version": 1,"disable_existing_loggers": False,"formatters": {"default": {"()": "python_telegram_logger.MarkdownFormatter","fmt": " *%(levelname)s* _%(name)s : %(funcName)s_"}},"handlers": {"telegram": {"class": "python_telegram_logger.Handler","token": "bot_token","chat_ids": [123456789, -1234567891011],"formatter": "default"}},"loggers": {"tg": {"level": "INFO","handlers": ["telegram",]}}}
Package: python-telnet-vlc
python-telnet-vlcA simple python library to interface with a VLC player using the telnet interface.Installationpip install python-telnet-vlcUsage:frompython_telnet_vlcimportVLCTelnetv=VLCTelnet("192.168.1.44","password",4212)v.add("http://radios-mp3-uy.cdn.nedmedia.io/uy-futura.mp3")v.play()More Info:https://wiki.videolan.org/Documentation:Modules/telnet/Original author: @stephenmac7
Package: python-tempestconf
python-tempestconf will automatically generate the tempest configuration
based on your cloud.Free software: Apache licenseDocumentation:https://docs.opendev.org/openinfra/python-tempestconf/latest/Source:https://opendev.org/openinfra/python-tempestconfBugs:https://storyboard.openstack.org/#!/project/912Release notes:https://docs.opendev.org/openinfra/python-tempestconf/latest/releasenotes
Package: python-template-x
python-templateThis project is an opinionated python template.UsageThis project uses:poetryfor dependency management and packaging.poethepoetfor task running.pytestfor testing.blackfor auto-formatting.mypyfor static type checking.pre-commitfor git hooks.rufffor linting.mkdocsfor documentation.Ensure you have installed the relevant dependencies before continuing.Install dependenciespoetryinstallRun testspoetryrunpoetestGitHub Actions SetupValidation WorkflowCodeCov.ioThe workflow is automatically setup to pass along coverage reports to CodeCov.io.
You must set theCODECOV_TOKENsecret in your repository settings.
Otherwise, disable the routine in the.github/workflows/validate.yamlfile.Publishing WorkflowEnsure you have Discussions enabled in your repository settings,
or removediscussion_category_namefrom the.github/workflows/publish.yamlfile.PyPiThe workflow is automatically setup to publish to PyPi.
You must set thePOETRY_PYPI_TOKEN_PYPIsecret in your repository settings.
Otherwise, disable the routine in the.github/workflows/publish.yamlfile.
Package: python-termstyle
termstyletermstyle is a simple python library for adding coloured output to
terminal (console) programs.  The definitions come fromECMA-048, the
“Control Functions for Coded Character Sets” standard.Example Usage:from termstyle import *
print "%s:%s" % (red('Hey'), green('how are you?'))
print blue('How ', bold('you'), ' doin?')or, you can use a colour just as a string:print "%sBlue!%s" % (blue, reset)Styles:reset or default (no colour / style)colour:black
red
green
yellow
blue
magenta
cyan
whitebackground colour:bg_black
bg_red
bg_green
bg_yellow
bg_blue
bg_magenta
bg_cyan
bg_white
bg_defaultIn terminals supporting transparencybg_defaultis often used to set
the background to transparent[1].weight:bold
invertedstyle:italic
underscoreControls:auto() - sets colouring on only if sys.stdout is a terminal
disabe() - disable colours
enable() - enable colours[1]Supporting terminals includerxvt-unicode, andEterm.
Package: python-test-bed-adapter
python-test-bed-adapterThis is the test-bed adapter for Python: it allows you to easily connect Python
services to the Apache Kafka test-bed via Python. Although it is specifically
created for connecting to ourtest-bed,
it should work for any Apache Kafka version too.The implementation is a wrapper aroundPykafkaandavro-python3offering support for:AVRO schema's and messages: both key's and values should have a schema
as explainedhere.Kafka consumer and producer for the test-bed topics.ManagementHeartbeat (topic: connect-status-heartbeat), so you know which clients are online.
Each time the test-bed-adapter is executed, it starts a heartbeat process to notify
the its activity to other clients.Configuration (topic: connect-status-configuration), so you can see which
topics clients consume and produce.InstallationYou need to installPython 3+.To install thePYPIpackage runpip3 install python-test-bed-adapterUsing the Github repoIf you clone the Github repository, to run the examples you will need to install the dependencies
specified on the filerequirements.txtFor that, runpip3 install -r requirements.txtfrom the project folder.Examples and usageCheck the examples ofconsumerandproducer.
Package: python-test-BensingIO
PyPi Upload ExampleThis is me testing how to build and push a project to PyPi that then can be pulled from git for other people to use.Working on the Repo LocallyClone the repo using either http or ssh clone linkshttp clonegit clone https://github.com/bensing-io/pypi-test-bensing-io.gitssh clonegit clone git@github.com:bensing-io/pypi-test-bensing-io.gitrun./venv-install.shto install the setup the virtual environment.Verify all is working by runningpython main.py.  you should see a terminal respons ofHi, BensingIO Test Package
Package: python-test-cleanup-proj
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.