Skip to content

Commit 3513299

Browse files
authored
Merge pull request #8 from srcML/rework
Update pylibsrcml to v1.1.0
2 parents 193563f + 9227f52 commit 3513299

File tree

101 files changed

+13040
-4759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+13040
-4759
lines changed

.gitignore

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# srcML Test Output
2+
test/
3+
proj*
4+
*.cpp
5+
foo.xml
6+
output1.xml
7+
8+
# Byte-compiled / optimized / DLL files
9+
__pycache__/
10+
*.py[cod]
11+
*$py.class
12+
13+
# C extensions
14+
*.so
15+
16+
# Distribution / packaging
17+
.Python
18+
build/
19+
develop-eggs/
20+
dist/
21+
downloads/
22+
eggs/
23+
.eggs/
24+
lib/
25+
lib64/
26+
parts/
27+
sdist/
28+
var/
29+
wheels/
30+
pip-wheel-metadata/
31+
share/python-wheels/
32+
*.egg-info/
33+
.installed.cfg
34+
*.egg
35+
MANIFEST
36+
37+
# PyInstaller
38+
# Usually these files are written by a python script from a template
39+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
40+
*.manifest
41+
*.spec
42+
43+
# Installer logs
44+
pip-log.txt
45+
pip-delete-this-directory.txt
46+
47+
# Unit test / coverage reports
48+
htmlcov/
49+
.tox/
50+
.nox/
51+
.coverage
52+
.coverage.*
53+
.cache
54+
nosetests.xml
55+
coverage.xml
56+
*.cover
57+
*.py,cover
58+
.hypothesis/
59+
.pytest_cache/
60+
61+
# Translations
62+
*.mo
63+
*.pot
64+
65+
# Django stuff:
66+
*.log
67+
local_settings.py
68+
db.sqlite3
69+
db.sqlite3-journal
70+
71+
# Flask stuff:
72+
instance/
73+
.webassets-cache
74+
75+
# Scrapy stuff:
76+
.scrapy
77+
78+
# Sphinx documentation
79+
docs/_build/
80+
81+
# PyBuilder
82+
target/
83+
84+
# Jupyter Notebook
85+
.ipynb_checkpoints
86+
87+
# IPython
88+
profile_default/
89+
ipython_config.py
90+
91+
# pyenv
92+
.python-version
93+
94+
# pipenv
95+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
97+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
98+
# install all needed dependencies.
99+
#Pipfile.lock
100+
101+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
102+
__pypackages__/
103+
104+
# Celery stuff
105+
celerybeat-schedule
106+
celerybeat.pid
107+
108+
# SageMath parsed files
109+
*.sage.py
110+
111+
# Environments
112+
.env
113+
.venv
114+
env/
115+
venv/
116+
ENV/
117+
env.bak/
118+
venv.bak/
119+
120+
# Spyder project settings
121+
.spyderproject
122+
.spyproject
123+
124+
# Rope project settings
125+
.ropeproject
126+
127+
# mkdocs documentation
128+
/site
129+
130+
# mypy
131+
.mypy_cache/
132+
.dmypy.json
133+
dmypy.json
134+
135+
# Pyre type checker
136+
.pyre/

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# pylibsrcml
2-
Python bindings for libsrcml. V1.0 May 2022
2+
Python bindings for libsrcml. V1.1.0 August 2025
33

4-
All of libsrcml is supported (and tested). To install:
4+
All of libsrcml is supported (and tested). To install:
55

6-
Make sure the latest version of srcML (developer) is installed. Also the recent version of Python. Then run
6+
Make sure the latest version of srcML is installed. Also the recent version of Python. Then run:
77

88
`pip install pylibsrcml`

__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-License-Identifier: GPL-3.0-only
2+
"""
3+
@file __init__.py
4+
5+
@copyright Copyright (C) 2014-2025 srcML, LLC. (www.srcML.org)
6+
7+
This file is part of pylibsrcml, a Python binding of libsrcml
8+
"""
9+
10+
__title__ = "pylibsrcml"
11+
__license__ = "GNU GPL3"
12+
__copyright__ = "Copyright (C) 2013-2024 srcML, LLC (srcML.org)"
13+
__version__ = "1.0.0"
14+
15+
from .values import *
16+
from .utility_funcs import *
17+
from .convenience_funcs import *
18+
from .exceptions import *
19+
from .srcml_unit import srcMLUnit
20+
from .srcml_transform_result import srcMLTransformResult
21+
from .srcml_archive import srcMLArchive, srcMLArchiveRead, srcMLArchiveWrite, srcMLArchiveWriteString

0 commit comments

Comments
 (0)