Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
f047714
Added ability to send kill signal to terminate and address #94
brucedjones Jan 26, 2018
0d6e51f
Updated readme
brucedjones Jan 26, 2018
25226f0
Fixed bugs and updated tests. All tests should now pass.
brucedjones Jan 26, 2018
93c197f
Merge pull request #79 from brucedjones/master
brucedjones Feb 13, 2018
5571f0f
#106 CI tests
Almenon Feb 13, 2018
0127e29
#106 renaming correctly
Almenon Feb 13, 2018
0496bff
adding default python gitignore
Almenon Feb 13, 2018
963148c
#106 added appveyor reporter
Almenon Feb 13, 2018
3edf595
#107 fixing failing unit tests on windows
Almenon Feb 13, 2018
3c97979
#108 fixing unit tests on python 3
Almenon Feb 13, 2018
ae175db
upgraded mocha to try to avoid appveyor error
Almenon Feb 13, 2018
120d7d9
fixed #109 hardcoded newlines
Almenon Feb 13, 2018
f5d799a
#108 making unit tests p3 compatible
Almenon Feb 13, 2018
8a17480
#106 adding appveyor badge
Almenon Feb 13, 2018
7b39d81
version bump
Almenon Feb 14, 2018
f15844a
Merge branch 'master' of https://github.com/extrabacon/python-shell
Almenon Feb 14, 2018
08e71f3
fixed #85 adding explanation for -u
Almenon Feb 14, 2018
93bb555
use python3 binary on unix systems
Aug 8, 2018
8bd4170
Merge pull request #133 from CADBOT/python3-fix
Almenon Aug 8, 2018
4cc387a
#134 converting index to typescript
Almenon Aug 8, 2018
4d8c6b7
Merge branch 'master' of https://github.com/extrabacon/python-shell
Almenon Aug 8, 2018
78c8bf7
#134 doing a final touch-up on some missing types
Almenon Aug 9, 2018
2972c61
fixed stdin/stdout types, made certain params optional, fixed export
Almenon Aug 10, 2018
808719b
converting unit tests to typescript #134
Almenon Aug 10, 2018
08572b0
renamed script to scriptPath to avoid confusion and got rid of unnece…
Almenon Aug 14, 2018
c187580
#138 adding functions to check python syntax
Almenon Aug 15, 2018
5f282e7
#135 added ability to run a python string
Almenon Aug 15, 2018
1f24498
#130 fixing stderr causing python-shell to emit error
Almenon Aug 20, 2018
53a9b9e
#130 added recieveStderr function
Almenon Aug 20, 2018
2e5b413
forgot to put compile before appveyorTest
Almenon Aug 20, 2018
28c61fa
spaces > tabs :dagger:
Almenon Aug 20, 2018
07fd397
Merge branch 'master' of https://github.com/extrabacon/python-shell
Almenon Aug 20, 2018
672c4d1
adding runString to documentation and fixing old exit criteria
Almenon Aug 20, 2018
51a6a78
added checkSyntax to readme
Almenon Aug 20, 2018
a3e6f23
downgrading readme back to v0.5 while waiting for v1 publish
Almenon Aug 20, 2018
448e317
Revert "downgrading readme back to v0.5 while waiting for v1 publish"
Almenon Sep 2, 2018
41d9cf3
adding JS files back to source control so they get picked up by npm p…
Almenon Sep 2, 2018
f1b8b9a
1.0.1
Almenon Sep 2, 2018
2c7490a
adding link to npm page
Almenon Sep 2, 2018
9b2a251
updating readme with examples of repos that use python-shell
Almenon Sep 2, 2018
e98af6a
adding declaration #143 #142
Almenon Sep 3, 2018
aa570dd
1.0.2
Almenon Sep 3, 2018
e3c9c5c
Merge branch 'master' of https://github.com/extrabacon/python-shell
Almenon Sep 3, 2018
0d2d9e3
#144 excluding unnecessary ts files
Almenon Sep 3, 2018
eec07a1
1.0.3
Almenon Sep 3, 2018
6fd0b9a
fixed examples for run and runString
Almenon Sep 4, 2018
5e5a237
adding link in readme to guide on using imports
Almenon Sep 6, 2018
2a0c16a
adding a type and more documentation
Almenon Sep 7, 2018
306f0ce
upgrading dev dependencies and adding vscode launch config
Almenon Sep 8, 2018
76c7ff2
removing -R spec from mocha (not necessary)
Almenon Sep 8, 2018
4590656
#149 running appveyor on windows and linux
Almenon Sep 8, 2018
2156da1
adding gh-pages branch to ignore for appveyor
Almenon Sep 8, 2018
7122cbc
updating appveyor to ignore changes to markdown files or changelog
Almenon Sep 8, 2018
dfc943b
install-product not recognized in ubuntu so trying different method #149
Almenon Sep 8, 2018
9d227eb
turns out i already defined skip_commits
Almenon Sep 8, 2018
8888c2b
Merge branch 'master' of https://github.com/extrabacon/python-shell
Almenon Sep 8, 2018
fe02539
fixing package vulnerabilities as suggested by npm audit
Almenon Sep 8, 2018
aee562a
fixing #146
Almenon Sep 8, 2018
4d01c21
renaming scriptPath option to scriptFolder to be more clear
Almenon Sep 8, 2018
99af6f0
fixed wrong function call in example
Almenon Sep 10, 2018
41b8bff
adding coverage to gitignore
Almenon Sep 15, 2018
746b9fa
adding require explanation to guide
Almenon Sep 15, 2018
b598cd4
updating package-lock
Almenon Sep 15, 2018
46d5c29
adding doc to constructor and verifying input early to prevent confus…
Almenon Sep 15, 2018
b885d61
Merge branch 'master' of https://github.com/extrabacon/python-shell
Almenon Sep 15, 2018
5ccea34
adding code workspace to gitignore
Almenon Sep 16, 2018
7f5a968
adding version func
Almenon Oct 3, 2018
d6fe02c
adding documentation for version
Almenon Oct 3, 2018
a8035f0
fixing bug with checkSyntax
Almenon Oct 6, 2018
2c86d43
removed broken getVersion and added info to changelog
Almenon Oct 6, 2018
a79529d
1.0.4
Almenon Oct 7, 2018
157b845
1.0.5
Almenon Oct 7, 2018
9052f41
fixing weird spacing
Almenon Oct 7, 2018
9e1fb79
getting rid of unused import
Almenon Oct 7, 2018
8c330be
moving methods to proper place in readme
Almenon Oct 7, 2018
a397531
reverting 4d01c21 due to breaking changes - postponing til v2 release
Almenon Oct 7, 2018
d40311d
1.0.6
Almenon Oct 7, 2018
695db70
moving getRandomInt to utils section
Almenon Oct 9, 2018
a686acc
adding getVersion w/ promise
Almenon Oct 10, 2018
afed17f
adding doc for getVersion
Almenon Oct 10, 2018
7ee39c6
removing jshint (tslint should be used w/ typescript)
Almenon Oct 10, 2018
0320c0d
#159 trying out build matrix
Almenon Oct 13, 2018
8adc6d1
forgot the matrix
Almenon Oct 13, 2018
7962c0a
disabling fast finish so i can see if tests pass w/ newer version
Almenon Oct 13, 2018
e4fe4c8
Merge pull request #160 from extrabacon/unittests
Almenon Oct 13, 2018
8b5bd99
exported type PythonShellError
IsaacLuo Oct 29, 2018
b02dd70
Merge pull request #161 from IsaacLuo/master
Almenon Oct 30, 2018
3e1e81e
missed a spot when doing #130
Almenon Nov 18, 2018
f0e97c5
trying timeout 3s to see if it fixes #158
Almenon Nov 18, 2018
81bc2b7
trying out bdd (i dont rememeber why i specified tdd)
Almenon Nov 18, 2018
640dfb2
updating appveyor to use correct version of node #158
Almenon Nov 18, 2018
ac573fb
running Install-Product only in windows box
Almenon Nov 18, 2018
21f1c47
reducing number of runs to 5 to speed up test
Almenon Nov 18, 2018
857ed19
Merge branch 'master' of https://github.com/extrabacon/python-shell
Almenon Nov 18, 2018
8033584
#158 commenting out bad tests
Almenon Dec 18, 2018
b984c26
fixing type signature for run
Almenon Dec 19, 2018
71982dc
#7 adding unit test for running modules
Almenon Dec 19, 2018
5ab0bb8
adding extra time for spawning python first time
Almenon Dec 19, 2018
77e67b5
update python path for windows platform :rocket:
jamesgeorge007 Dec 28, 2018
b24b09f
Merge pull request #168 from jamesgeorge007/hotfix/update-path
Almenon Dec 29, 2018
3c7b89b
1.0.7
Almenon Dec 29, 2018
2273aa0
removing outdated message
Almenon Dec 29, 2018
5ef3280
Code Coverage with CodeCov
Jan 30, 2019
a225475
Code Coverage with CodeCov
Jan 30, 2019
30f8b3f
Merge pull request #172 from dhaval-lila/master
Almenon Jan 30, 2019
6f917a0
Change codecov to point to right link
Almenon Jan 30, 2019
0051a0b
Honour defaultOptions.pythonPath in checkSyntax
Jan 31, 2019
48431a2
Add test
Jan 31, 2019
796ec4a
Merge pull request #173 from richbalmer/master
Almenon Feb 3, 2019
34a5ece
get rid of test that would fail in windows
Almenon Feb 3, 2019
be48044
refactor python path logic to generic function
caleb15 Feb 3, 2019
8e74bee
Allowed PythonShell to work with unset std streams #190
joaoe Aug 1, 2019
6f07418
Merge pull request #191 from joaoe/undefined-streams-190
Almenon Aug 2, 2019
5b27189
1.0.8
Almenon Aug 4, 2019
2c89336
Update CHANGELOG.md
Almenon Aug 4, 2019
25f32ad
add AtlantOS Ocean Data QC to used by
Almenon Oct 13, 2019
fb3555d
Bump diff from 3.3.1 to 3.5.0
dependabot[bot] Oct 29, 2019
b792eb5
Fix README.md examples with mode
dpslwk Jan 7, 2020
059f074
Merge pull request #203 from dpslwk/patch-1
Almenon Jan 18, 2020
36419f7
Merge pull request #200 from extrabacon/dependabot/npm_and_yarn/diff-…
Almenon Jan 27, 2020
7b5ea1e
Readme: remove duplicated row
gazdagergo Feb 9, 2020
80ec8b3
Merge pull request #209 from gazdagergo/patch-1
Almenon Feb 9, 2020
f26a753
make sure casing is consistent for linux OS
Almenon Apr 19, 2020
ff7d20c
use ts-node to get correct line numbers
Almenon Apr 19, 2020
f897154
update testing versions
Almenon Apr 19, 2020
25e0479
simplify string splitting
Almenon Apr 19, 2020
909ecb2
fix spelling error
Almenon Apr 19, 2020
f6c93b5
standardize spacing
Almenon Apr 19, 2020
d274db1
simplify lines declaration
Almenon Apr 19, 2020
d495a44
create bug issue template
Almenon Apr 20, 2020
5588e81
create feature request template
Almenon Apr 20, 2020
1c26ecb
create question template
Almenon Apr 20, 2020
2728305
Update question.md
Almenon Apr 20, 2020
fc65b41
Update question.md
Almenon Apr 20, 2020
6afbe16
comment out message
Almenon Apr 20, 2020
028d52f
fix: stderr being emitted in binary mode
Almenon Apr 20, 2020
780b212
update version for breaking API change
Almenon Apr 20, 2020
bb5ea26
Update index.ts
Almenon Apr 26, 2020
0939c69
upgrade node types
Almenon May 3, 2020
ebe21d9
add failing test for stack trace
Almenon May 3, 2020
18fd4b0
fix stack trace not appearing in binary mode
Almenon May 3, 2020
0dd4f23
fix documentation for terminate function
Almenon May 3, 2020
cd11d2d
fix documentation for end
Almenon May 3, 2020
c16926e
deprecate terminate in favor of kill
Almenon May 3, 2020
b0b9e9e
improve typing of kill
Almenon May 3, 2020
88757b8
add todo note
Almenon May 3, 2020
b451c8e
remove unnecessary doc line
Almenon May 3, 2020
322df1b
remove unnecessary doc line
Almenon May 3, 2020
3c45990
remove unnecessary doc line
Almenon May 3, 2020
8ce19d4
update kill documentation
Almenon May 3, 2020
0ae3d88
Merge pull request #214 from extrabacon/fix_stderr_being_emitted_in_b…
Almenon May 3, 2020
d5fab33
Make stdout available on error
TiraO May 19, 2020
4797459
Merge pull request #217 from TiraO/patch-1
Almenon May 19, 2020
28647d2
add test for #217
Almenon May 19, 2020
0e46624
2.0.1
Almenon May 19, 2020
079930b
fix status badge
Almenon May 23, 2020
fe13221
defaulting of text parser regardless of mode
AshleySetter Jul 30, 2020
8b7ebaf
removed extraneous space
AshleySetter Jul 30, 2020
6da54b2
Update index.ts
Almenon Jul 31, 2020
0b5ac21
Merge pull request #224 from AshleySetter/fix-error-passing-bug
Almenon Jul 31, 2020
c113ac2
Update README.md
Almenon Jul 31, 2020
7436b69
upgrade ts-node and typescript
Almenon Sep 22, 2020
a38bd92
update version for new release
Almenon Sep 22, 2020
bbde17f
feat(docs): text mode requires newlines
Almenon Sep 23, 2020
01f5f54
doc: add typings for events
forivall Nov 17, 2020
0d9ea9f
Merge pull request #230 from forivall/doc/event-interface
Almenon Nov 20, 2020
cd2eef9
2.0.3
Almenon Nov 20, 2020
4c6f983
Update README.md
cynthi8 Dec 8, 2020
9f672bb
Merge pull request #231 from cynthi8/patch-1
Almenon Dec 9, 2020
833ba34
forcing consistent casing in file names
Almenon Oct 9, 2018
b631d39
checkSyntax now uses promises
Almenon Oct 10, 2018
beeef4c
checkSyntax now uses promises
Almenon Oct 10, 2018
f86fa2c
remove broken path
Almenon Feb 14, 2021
b9acf02
fix bad merge
Almenon Feb 14, 2021
deac462
fix bad merge
Almenon Feb 14, 2021
1692aa6
spaces > tabs and i dare you to say otherwise
Almenon Feb 14, 2021
d83fe5f
update launch.json
Almenon Mar 4, 2021
250b4ba
Merge pull request #239 from extrabacon/update_launch_json
Almenon Mar 4, 2021
c029188
apply linting changes
Almenon Mar 5, 2021
21c5b42
switch to python as default
Almenon Mar 5, 2021
d239d39
update readme for pythonPath
Almenon Mar 7, 2021
18f0896
add test for pythonPath
Almenon Mar 8, 2021
61a600b
fix #118
Almenon Mar 8, 2021
36fa9df
revert name change
Almenon Mar 8, 2021
73da92e
increment version
Almenon Mar 8, 2021
4b5a536
standardize changelog format
Almenon Mar 8, 2021
ff66df1
Add changes to changelog
Almenon Mar 8, 2021
9109385
added links
Almenon Mar 8, 2021
f4bc0a6
Merge branch 'master' into version2
Almenon Mar 8, 2021
2739b16
formatting & remove deprecated buffer
Almenon Mar 14, 2021
b3a83ec
made test more comprehensive
Almenon Mar 14, 2021
2108c90
switch to LineTransformStream
Almenon Mar 20, 2021
fdc9548
fix typo
Almenon Mar 21, 2021
28962d3
remove LineTransformStream
Almenon Mar 27, 2021
7e115e8
add comment
Almenon Mar 27, 2021
4c3b4fe
Merge pull request #233 from extrabacon/version2
Almenon Mar 27, 2021
badb0da
small change for incresed code coverage
Almenon Mar 27, 2021
168a53c
add example of NewlineTransformer [skip ci]
Almenon Mar 27, 2021
e8d7dbf
Use kill signal's returned value
luke-waymark-addinsight Oct 4, 2021
62b18b3
fix(tests): stop using deprecated method
Almenon Oct 9, 2021
f5f58ad
Upgrade typescript
Almenon Oct 9, 2021
75defab
improve tests
Almenon Oct 9, 2021
65cbe69
update supported software
Almenon Oct 9, 2021
072709a
upgrade types
Almenon Oct 9, 2021
82b2425
Merge pull request #257 from extrabacon/update_supported_node_versions
Almenon Oct 9, 2021
880beb5
Merge pull request #256 from luke-waymark-sage/master
Almenon Oct 9, 2021
4f179ab
feat(changelog): add 3.0.1 notes
Almenon Oct 9, 2021
25eed46
feat: promisify the "run" command
NoamGaash May 31, 2022
bc4755b
Test new Node version
Almenon Sep 27, 2022
883c00c
feat: support both callbacks and promises
NoamGaash Oct 13, 2022
dacf5f5
test: test the promise based mechanism
NoamGaash Oct 13, 2022
9b5410d
test: verify backward compatability
NoamGaash Oct 13, 2022
791faaf
check node version
Almenon Nov 18, 2022
c644676
Upgrade ubuntu
Almenon Jan 16, 2023
91c6ad2
Merge pull request #272 from extrabacon/test-new-node-version
Almenon Jan 16, 2023
7222d6d
Merge pull request #269 from NoamGaash/feat/promisify
Almenon Feb 11, 2023
1fdf6e0
Update CHANGELOG.md
Almenon Feb 11, 2023
beeb29f
4.0.0
Almenon Feb 11, 2023
607915b
remove callbacks
Almenon Feb 11, 2023
6d6b6c6
add convenient script
Almenon Feb 11, 2023
5560b0a
type run
Almenon Feb 11, 2023
9dc40a5
remove bad rebase code
Almenon Feb 11, 2023
1fb29cb
fix end example
Almenon Feb 11, 2023
a2ca558
remove extra arg
Almenon Feb 11, 2023
3ab3d7c
5.0.0
Almenon Feb 11, 2023
b03631d
Merge pull request #282 from extrabacon/test_pr
Almenon Feb 11, 2023
705c902
Update example in README.md
DawChihLiou Aug 11, 2023
38ebced
Merge pull request #298 from DawChihLiou/fix-example-readme
Almenon Aug 30, 2023
a5a4492
update node&python version
Almenon Apr 29, 2024
4322298
Merge pull request #304 from extrabacon/update_node_version
Almenon Apr 29, 2024
527d5a3
Remove bad -u
Almenon Jul 5, 2024
0f835c0
Merge pull request #307 from extrabacon/Fix-u
Almenon Jul 7, 2024
4016151
Bump hawk and request-json
dependabot[bot] Jul 14, 2024
6f44f57
Merge pull request #284 from extrabacon/dependabot/npm_and_yarn/hawk-…
Almenon Jul 14, 2024
4345268
remove unnecessary comment
Almenon Nov 23, 2025
183fa33
upgrade deps
Almenon Nov 23, 2025
6db3dbd
upgrade deps
Almenon Nov 23, 2025
63fb246
Merge pull request #314 from extrabacon/upgrade_Deps
Almenon Nov 23, 2025
a1e1fc4
remove mocha-appveyor-reporter
Almenon Nov 24, 2025
be055a8
5.0.1
Almenon Nov 24, 2025
31b3f29
5.0.2
Almenon Nov 24, 2025
77a9693
fix err
Almenon Nov 24, 2025
5a262c2
feat: add format
nurazon59 Nov 24, 2025
a31a6f3
Merge pull request #316 from nurazon59/feat/add-formatter
Almenon Dec 6, 2025
823ef1b
remove unnecessary config
Almenon Dec 6, 2025
0442335
ignore autogenerated file
Almenon Dec 6, 2025
036d5c4
ci(appveyor): add Node.js 22 to test matrix
nurazon59 Dec 9, 2025
cbd3777
Update appveyor.yml
Almenon Dec 13, 2025
0cde240
Merge pull request #319 from nurazon59/nurazon59/ci/add-node-22-test
Almenon Dec 13, 2025
2feabe6
fix: security and reliability improvements for maintainership
ianhandy Mar 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.

**Python code**
Relevant Python code to reproduce the problem

**Javascript code**
Relevant Javascript code to reproduce the problem

**Expected behavior**
A description of what you expected to happen.

**Actual behavior**
A description of what actually happened.

**Other Information (please complete the following information):**

- OS: [e.g. Windows10]
- Python Version [e.g. 3.6]
- Node Version [e.g. 12]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Question
about: A question about python-shell
title: ''
labels: 'question'
assignees: ''
---

<!--If you are having a problem inside your python code please do not create a issue here.
Python-shell just runs your python code, it is not responsible for any errors in the code itself.-->

**The Question**:

**Any relevant python/javascript code:**
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [18, 20, 22]
python-version: ['3.10', '3.12']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: npm install
- run: npm test
117 changes: 117 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,118 @@
node_modules
npm-debug.log.*
.vscode
personal
*.js
*.js.map
*.d.ts
.nyc_output
coverage
*.code-workspace

# DEFAULT PYTHON GITIGNORE

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
.static_storage/
.media/
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
9 changes: 0 additions & 9 deletions .jshintrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": true,
"singleQuote": true
}
48 changes: 48 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Current TS File",
"type": "node",
"request": "launch",
"args": [
"${relativeFile}"
],
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register"
],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"protocol": "inspector",
},
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"python": "${command:python.interpreterPath}",
"program": "${file}",
"cwd": "${workspaceRoot}",
"env": {},
"envFile": "${workspaceRoot}/.env",
},
{
"name": "Current TS Tests File",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"-r",
"ts-node/register",
"${relativeFile}",
"--ui",
"tdd",
"--no-timeouts"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector"
}
]
}
78 changes: 71 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,74 @@
## 0.0.3
* fixed buffering in `PythonShell.receive`, fixing [#1](https://github.com/extrabacon/python-shell/issues/1)
## [5.0.0] - 2023-02-10

## 0.0.2
* improved documentation
### BREAKING CHANGES

## 0.0.1
* initial version
* independent module moved from [extrabacon/pyspreadsheet](https://github.com/extrabacon/pyspreadsheet)
- run and runString now return a promise instead of a using a callback.
- You will need to 1) check the return value, 2) remove the callback argument, and 3) change to a promise
- see readme for usage examples

### Other notes

- I confirmed that python-shell works with python 3.11 and node v18.

## [4.0.0] - 2023-02-10

### Changed

- run and runString now return a promise instead of a using a callback.
- This is somewhat backwards compatible with previous behavior

## [3.0.1] - 2021-10-09

### Fixed

- Previously when you called the kill method the terminated attribute was always set to true, regardless of whether the process was actually killed. Now the terminated boolean is set to true if kill succeeds, false otherwise. [#255](https://github.com/extrabacon/python-shell/issues/255)

## [3.0.0] - 2021-03-07

### Changed

- **BREAKING** Default python path changed back to `python` on Windows. [#237](https://github.com/extrabacon/python-shell/issues/237)
- **BREAKING** `error` event renamed to `pythonError` event. [#118](https://github.com/extrabacon/python-shell/issues/118)
- **BREAKING** `receive` methods removed in favor of `splitter` arguments in the constructor. This lets the default splitting logic reside in a reuseable stream transformer. Now if you have extra pipes you can reuse `newlineTransformer` to split incoming data into newline-seperated lines.

### Added

- `error` event that is fired upon failure to launch process, among other things. [#118](https://github.com/extrabacon/python-shell/issues/118)

## [1.0.8]

### Fixed

- @joaoe fixed a bug with pythonshell not working with unset std streams
- https://github.com/extrabacon/python-shell/milestone/9

## [1.0.7]

### Changed

- default python path updated to py on windows

## [1.0.4]

### Added

- added getVersionSync

## [0.0.3]

### Fixed

- fixed buffering in `PythonShell.receive`, fixing [#1](https://github.com/extrabacon/python-shell/issues/1)

## [0.0.2]

### Changed

- improved documentation

## [0.0.1]

### Added

- initial version
- independent module moved from [extrabacon/pyspreadsheet](https://github.com/extrabacon/pyspreadsheet)
Loading