Example
new-pyproject
For example:
>>> import new_pyproject
>>> p = new_pyproject.Project()
Or just:
>>> from new_pyproject import Project
>>> p = Project()
>>> p.name()
'Project'
>>> p.vers()
'v0.01.08c'
>>> p.desc()
'new python project class'
>>> p.f(2)
2
roboclocks
Included here as another example. Not installed with new-pyproject
To use this project, first install it using pip:
$ pip install roboclocks
To get current time and date info based on the current underlying system OS/HW configuration for place/timezone you can use several functions
For basic numeric date/time data you can use the SysClock.now() function:
For example:
>>> from roboclocks import SysClock
>>> sc = SysClock()
>>> sc.now()
2023-08-14 17:28:11
>>> from robot import Robot
>>> robot = Robot()
>>> robot.sysclock.today()
Mon Aug 14 2023 17:53:49 EDT