From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18278 Path: news.gmane.org!.POSTED!not-for-mail From: Saivan Hamama Newsgroups: gmane.text.pandoc Subject: Re: Run Pandoc on a web server Date: Tue, 10 Oct 2017 03:49:39 -0700 (PDT) Message-ID: References: <262da48a-6c39-4ee7-9d96-668f7445ad2b@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_12499_408711284.1507632579915" X-Trace: blaine.gmane.org 1507632585 11425 195.159.176.226 (10 Oct 2017 10:49:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2017 10:49:45 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD3YJDEF6IJRBRGL6LHAKGQEGMXJKUI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 10 12:49:40 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f57.google.com ([209.85.214.57]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1s6P-0001Zl-Uf for gtp-pandoc-discuss@m.gmane.org; Tue, 10 Oct 2017 12:49:34 +0200 Original-Received: by mail-it0-f57.google.com with SMTP id j140sf14043027itj.10 for ; Tue, 10 Oct 2017 03:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=YBHQfursgJD5kbeKHiE07LLevr15AMF9iD6pPHK2Hlc=; b=dZQQNKKv/BSy9eHrCrT/4wr10grGlk41BAr1FNDZ/WukDdhyGLWS1mGTIUysGjS2Pp mxoRRfJcN3Aw5I8Ip0MKDv2Yq3HmEmvw49ODwXRzxyRhGqh336D0UQT/bTF42F3dwd3T WLlvrfgwNcdovvcJCKXTiZtqcbKBwU5wG8Lsm4uRf3Fvvq2r1J63KQW0DPQ9/zSr6Gb3 +PYQwl86PFhMU582t03SOzSKMZhoQV9p2LEWOl3409OwHoFNWKTkKH0TaZDP9VgUFHc3 LSQUGf4eFRaoj7fCtT1NngfxdROeunly0M04KJY4Ix/3j54bR6nKHsza7V7E5sUyxbjE lojg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=YBHQfursgJD5kbeKHiE07LLevr15AMF9iD6pPHK2Hlc=; b=dE4k5rlrayJ7ZIfYeXYoD4MwtPNvxX5ha4aiIPUHhLtgVthouE5Bp+2kaZlkkige76 qW/5uptPHwODCK6Bp1A5PoK5aNWZrXk6uGA/prHYWqTQniyQKTTT2hpKh7uSUEIQP1Qy zovhJCKArWk+csCnbqfHFcxyrP8JTkBJ09LZuMUPgy4vgX2UeOsqyVYpabeq4wD3kga6 Y3Su5yl2hyCjMRnP1focLb4OgesFr9Do9NSMiB6O8sXf6/m8syzu5bQKiAQSW1GbaqjM P716qmhE4ynQ0S2EGjt0sx2/dLRcJtpCyUelc4n0U2X8Uptkh9Yy1StobXU2hpUXZMXn lu/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=YBHQfursgJD5kbeKHiE07LLevr15AMF9iD6pPHK2Hlc=; b=mvPg8y3alQ+141Y8+Cm6w+Y/dJwfuF2e/DXIEQ2IeYZYOpWQ7M/oNuclblmjIE1lCX ll39LaemY+D1uZzKn7L8FgEg9S1Ay1gDD8gN9vEEDJTiOStHvEQtgObXC3JRlac9o63f oxEF4hd/lSVzZ1PuuUNX/+U/9Wu2mOgttoWx6Q9w9mCBjX0pBga30GfcSkI3ZRTSccZF l5pb7xwrIE8p5rrF7smqrPfqUMGhjMyLWmr3jb86+r/ZcI3JnXWwQXJWZcLXfXJLSgV6 1p/IoMHp9+Fi9+NXk4jxboTOq88gxqD4NGqzbl8whbAUaNV3kOwlUGZd8kVNagXI2Jpa Hn4w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaUsoK1V7NnT5j4tyJVLruQETj4vwpV1hF3JXtY1vpBBEE/kpuKC d04it0kmJY/6L445Rd1j464= X-Google-Smtp-Source: AOwi7QCaMZxGgrkCbG/o5avaG4T0cm9VZn8b8pOXQp2hMmKI5VFbDcLCpjh8uLzYKkugTmcERGPGXg== X-Received: by 10.31.69.204 with SMTP id s195mr358738vka.12.1507632581128; Tue, 10 Oct 2017 03:49:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.176.22.147 with SMTP id e19ls2120957uaf.17.gmail; Tue, 10 Oct 2017 03:49:40 -0700 (PDT) X-Received: by 10.31.11.69 with SMTP id 66mr630743vkl.6.1507632580387; Tue, 10 Oct 2017 03:49:40 -0700 (PDT) In-Reply-To: <262da48a-6c39-4ee7-9d96-668f7445ad2b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: dragons6666x-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18278 Archived-At: ------=_Part_12499_408711284.1507632579915 Content-Type: multipart/alternative; boundary="----=_Part_12500_536160215.1507632579915" ------=_Part_12500_536160215.1507632579915 Content-Type: text/plain; charset="UTF-8" I'm currently able to run pandoc on a web server myself. I just made a Dockerfile that derives from the offical python dockerfile, After that you can just run: RUN pip install pypandoc RUN python -c "import pypandoc; pypandoc.download_pandoc()" At this point, you'd have a working "web server" with pandoc, you'd just have to write some code to actually make calls to pandoc in any way you see fit. You could use a web framework like flask and just wrap an api around it. You can do a similar thing in almost any language of your choice by making system calls with the text you'd like to convert. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b63c9188-1b4f-478d-9454-f2c3d10ccff0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_12500_536160215.1507632579915 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm currently able to run pandoc on a web server mysel= f.
I just made a Dockerfile that derives from the offical python docker= file,
After that you can just run:

RUN pip install pypand= oc
RUN python -c = "impo= rt pypandoc; pypandoc.download_pandoc()"

= At this point, you'd have a working "web server" with pandoc,=
you'd just have to write some code to actually make calls to= pandoc in any way you see fit.
You could use a web framework = like flask and just wrap an api around it.

You can= do a similar thing in almost any language of your choice by making system = calls with the text you'd like to convert.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/b63c9188-1b4f-478d-9454-f2c3d10ccff0%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_12500_536160215.1507632579915-- ------=_Part_12499_408711284.1507632579915--