Metadata-Version: 2.1
Name: asyncio-tcp-messages
Version: 0.0.0
Summary: A library for developing applications with a message-based protocol on top of TCP based on asyncio.
Home-page: https://gitlab.com/python-2k2s-2022/asyncio-tasks-submissions/team-4
Author-email: UnMelow@yandex.ru
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

A library for developing applications with a message-based protocol on top of TCP based on asyncio.Opens the possibility of adding controllers that are responsible for specific commands, the ability to define and validate command arguments.

1. First, you need to create an object of the App class

   ```
   import asyncio

   from main import App

   app = App()

   #Your code

   if __name__ == '__main__':
       asyncio.run(app.run())

   ```
2. Examples of some simple tasks that our framework uses.

   ```
   @app.command(name='sum')
   async def custom_sum(arg1: int, arg2: int) -> str:
       return str(arg1 + arg2)


   @app.command()
   async def add_person(person: Person):
       people.append(person)


   @app.command()
   async def get_person(name: str) -> str:
       return '\n'.join(str(person) for person in people if person.name == name)

   ```


