Metadata-Version: 2.1
Name: jnb2py
Version: 0.0.2
Summary: Converts .ipynb files to .py files.
Home-page: https://github.com/subhranil2605/nb2py
Author: Subhranil Sarkar
Author-email: subhranil2605@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest (>=7.0) ; extra == 'dev'
Requires-Dist: twine (>=4.0.2) ; extra == 'dev'

# jnb2py

*jnb2py* is a Python library for converting Notebooks(`.ipynb`) into Python (`.py`) files.

## Quickstart

jnb2py requires an installation of Python 3.10 or greater, as well as pip.

### Installation
jnb2py requires an installation of Python 3.10 or greater, as well as pip. (Pip is typically bundled with Python installations.)

To install from PyPI with pip:
```bash
pip install jnb2py
```

### Using nb2py in a Python Script

To convert a notebook, you'll need to do this.

```python
>>> from jnb2py import Converter
>>> file_path = "/path/to/the/notebook.ipynb"
>>> converter = Converter(file_path)
>>> output_file_name = "extract_code.py"
>>> output_path = "/path/to/the/output/destination"
>>> converter.convert_to_py(output_file_name, output_path)
```
