DRF API for Converting Markdown to Docx
Installation
pip install drf_md2docx
Usage
Create a new project
django-admin startproject myproject
cd myproject
Add the app to your project's settings.py
INSTALLED_APPS = [
...
'drf_md2docx',
...
]
Add configurations to your project's settings.py
MEDIA_ROOT = 'data/'
MEDIA_URL = '/api/media/'
MD2DOCX_PERMISSIONS = [
permissions.AllowAny,
]
MD2DOCX_OUTPUT_DIR = Path(MEDIA_ROOT) / 'md2docx'
Add urlpatterns to your project's urls.py
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path("api/md2docx/", include('drf_md2docx.urls')),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Request and Response
Metadata
Release files for drf-md2docx 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| drf_md2docx-1.0.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| drf_md2docx-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / drf_md2docx-1.0.0.tar.gz
| Download URL | drf_md2docx-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb69c9618173676567fa05e2409a4aa3238ff3b53cdc39f3057fdc3eab03d212
|
|
BLAKE2b-256 checksum How to use checksums |
2abdaaee97d974e4da96abd5a7165013d88b756dfa0698fb01139ab1398e31ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / drf_md2docx-1.0.0-py3-none-any.whl
| Download URL | drf_md2docx-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec9afa633e0f6a35d93c2b5f44f4504586d6957f5224c2ff0678accdb7806f2e
|
|
BLAKE2b-256 checksum How to use checksums |
ff0cfeacfe94fe8334c3a848bf28e6335b451fe16b19fc0823eaa2f3f57c5244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|