A library that creates a requirements.txt file using only the libraries listed in the python file directly below it.
Project description
OverView
A library that creates a requirements.txt file using only the libraries listed in the python file directly below it.
作業環境下(カレントディレクトリ)にあるpythonファイルに記載されている外部パッケージのみを抽出してrequirements.txtを作成するライブラリ.
Sample
sample python file
import os import sys import json import re import math import requests import numpy as np import matplotlib.pyplot as plt import datetime import time import japanize_matplotlib import pandas as pd from tomato import tomatoaaaaaaaaas # import sadaa # from sdadda import sqlite3 import email
result(gen-requirements.txt)
japanize-matplotlib requests numpy tomato pandas matplotlib
Tools Version
- Python:
3.7.6
- pip:
20.2.4
How to Install and Run
PYPI
$ pip install pylibwrite
Get the code from the repository and execute it.
$ git clone https://github.com/Villager-B/pylibwrite.git
$ cd pylibwrite
$ pip install .
$ pylibwrite
create gen-requirements.txt
Please help me
Currently, libraries such as bs4 are rewritten using pylibwrite/convert_libname.json.
I’m sure there are other libraries that don’t work as well.
Please let me know.
- Libraries that are currently supported:
lib name |
package name |
|---|---|
japanize_matplotlib |
japanize-matplotlib |
bs4 |
beautifulsoup4 |
Development Procedure
Checkout.
Follow the steps below to install .
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylibwrite-1.0.1.tar.gz.
File metadata
- Download URL: pylibwrite-1.0.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11f09e663b8ea1abe188f7d0870253c2f131ad58b5cab935a5f760301408459b
|
|
| MD5 |
9267077aa2589e61e812bdff93d0d6e4
|
|
| BLAKE2b-256 |
4b2eea2a6170e4f0aac9fe1943394ab5f59a52b4d0613c063dedebeda848d407
|
File details
Details for the file pylibwrite-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pylibwrite-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fee946a712aca8b03a8ea8d5b53d999a6123113499f3068daf07d7fa5e1d6d93
|
|
| MD5 |
506205d8dd4f9f0a4d2ed3b97a6f10a4
|
|
| BLAKE2b-256 |
fe0a7f2b242eda580ec91398b896335ba8243f7ea48fb4472b332fc16064a96d
|