Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.

About

The module pyscholar consists of functions to convert tables imported in pandas to latex or markdown format. It aso includes a function replace_include to replace the content of the file mentioned after !include.

Installation

pip install pyscholar

Usage

pyscholar is easy to use. Just import:

from pyscholar import pandoc

For table conversion

Instantiate the Table class using:

tab = pandoc.Table(df)

Convert table to markdown and save as:

tab.to_markdown('table.md')

Convert table to latex and save as:

tab.to_latex('table.tex')

Replacing content of a file

To replace content of a file mentioned after !include, use replace_include function in pandoc.

Example:

If the file infilename contains the following line:

!include table.md

Then, using replace_include will replace that line with contents of file table.md.

from pandoc import replace_include

replace_include(infilename, outfilename)

Metadata

Release files for pyscholar 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyscholar 0.1
File Size Uploaded
pyscholar-0.1.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyscholar 0.1
File Interpreter ABI Platform
pyscholar-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.9 kB

Release files / pyscholar-0.1.tar.gz

Download URL pyscholar-0.1.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d402c16109598cb61fb005d00748e94b96bb59941beaff9e1dcd55f22c28db71
BLAKE2b-256 checksum
How to use checksums
045476d9ce80d7421d168f23a40158255425fd679174cb4ed174328fd8dacc36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

Release files / pyscholar-0.1-py3-none-any.whl

Download URL pyscholar-0.1-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9339ecdae4d22a05afcba7a2d028d583fac69fa59b1c14ee0e6ad3dffbc370da
BLAKE2b-256 checksum
How to use checksums
c3aa88cd64297fcf76d3e3a6ca56f267eb8338df88e41a083396e5dcbe4cff60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page