root/dev/: dmcl-2.2.0 metadata and description

Simple index

Course Lesson Service for Darsman Academy

author Ellnamin
author_email ellnamin.business@gmail.com
requires_dist
  • grpcio==1.62.1
  • grpcio-tools==1.62.1
  • protobuf==4.25.3
  • setuptools==69.1.1
  • annotated-types==0.6.0
  • pydantic==2.7.0
  • pydantic-core==2.18.1

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
dmcl-2.2.0-py3-none-any.whl
Size
8 KB
Type
Python Wheel
Python
3
  • Uploaded to root/dev by root 2024-09-22 17:37:21
dmcl-2.2.0.tar.gz
Size
8 KB
Type
Source
  • Uploaded to root/dev by root 2024-09-22 17:37:21
# Darsman Course Lesson

## Requirements

- Python (== 3.10)
- grpcio-tools (>=1.62.1)

## Installation

Run the following command using pip:

```bash
pip install dmcl
```

## Sample code

```python
import asyncio
from dmcl import Course, Lesson, Package


# Note:
# Course has the widest functionality so is used here.
# Lesson and Package should be used in the same way.


course = Course(api_key="test_api_key")

# Get one course using its identifier
asyncio.run(
course.fetch_one(
identifier="b2f6c8e2-7e3a-4cb3-a58e-ef4e3f893708",
)
)

# Get all courses
asyncio.run(course.fetch_all(order_by="title", page_size=1, page_number=1))

# Like a course
asyncio.run(
course.like(
course_identifier="b2f6c8e2-7e3a-4cb3-a58e-ef4e3f893708",
)
)

# Unlike a course
asyncio.run(
course.unlike(
course_identifier="b2f6c8e2-7e3a-4cb3-a58e-ef4e3f893708",
)
)

# Add comment to a course
asyncio.run(
course.comment(
name="Utaab",
content="Hello I'm Utaab",
owner_identifier="b2f6c8e2-7e3a-4cb3-a58e-ef4e3f893708",
)
)

```


Render warnings:
<string>:12: (WARNING/2) Inline literal start-string without end-string.