Catalog PyPI
Back to packageRELEASE DETAILS

2024.1.25

PyPI

aiocmdline

Python class to build async-compatible line-oriented command interpreter

cmdlinereadline
Published28 Jan 2024
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 2024.1.25 documentation

aiocmdline

Python has a builtin module that provides a line-oriented command interpreter. However, the builtin module is difficult to use with async Python code. This module provides a ready-to-use class that simplifies the implementation of regular and async commands.

Dependencies:

  • aioreadline

Example

class MyCmdline(AIOCmdline):
	def do_quit(self):
		self.stop_cmdloop()
	
	async def do_sleep(self, arg):
		await asyncio.sleep(int(arg))
		print("sleep done")

mycmdline = MyCmdline(prompt="mycmd> ", history=True)
mycmdline.cmdloop()

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
aioreadline
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.0",
  "evaluation": "NOT_EVALUATED"
}
aioreadlineruntime

Distribution files

2 collected
aiocmdline-2024.1.25-py3-none-any.whl

bdist_wheel · 4.49 KB · Python py3

Source file
aiocmdline-2024.1.25.tar.gz

sdist · 3.44 KB · Python source

Source file

Repository

PENDING
anyc/aiocmdline

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:3f13813a8564b789e62aa02d26041b9247f0e2295767d3a508a3f63ea7be1917

Other collected versions

View all collected versions →