juscraper 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. juscraper-0.1.0/.github/RELEASE_TEMPLATE.md +44 -0
  2. juscraper-0.1.0/.github/workflows/docs.yml +66 -0
  3. juscraper-0.1.0/.github/workflows/publish.yml +63 -0
  4. juscraper-0.1.0/.gitignore +147 -0
  5. juscraper-0.1.0/.pre-commit-config.yaml +36 -0
  6. juscraper-0.1.0/.pylintrc +52 -0
  7. juscraper-0.1.0/.readthedocs.yml +23 -0
  8. juscraper-0.1.0/CHANGELOG.md +44 -0
  9. juscraper-0.1.0/CONDUCT.md +43 -0
  10. juscraper-0.1.0/CONTRIBUTING.md +73 -0
  11. juscraper-0.1.0/LICENSE +22 -0
  12. juscraper-0.1.0/MANIFEST.in +9 -0
  13. juscraper-0.1.0/PKG-INFO +232 -0
  14. juscraper-0.1.0/PUBLISHING.md +151 -0
  15. juscraper-0.1.0/README.md +152 -0
  16. juscraper-0.1.0/docs/.gitignore +1 -0
  17. juscraper-0.1.0/docs/_quarto.yml +93 -0
  18. juscraper-0.1.0/docs/index.qmd +76 -0
  19. juscraper-0.1.0/docs/notebooks/datajud.ipynb +667 -0
  20. juscraper-0.1.0/docs/notebooks/jusbr.ipynb +642 -0
  21. juscraper-0.1.0/docs/notebooks/tjdft.ipynb +264 -0
  22. juscraper-0.1.0/docs/notebooks/tjpr.ipynb +168 -0
  23. juscraper-0.1.0/docs/notebooks/tjrs.ipynb +302 -0
  24. juscraper-0.1.0/docs/notebooks/tjsp.ipynb +655 -0
  25. juscraper-0.1.0/docs/objects.json +1 -0
  26. juscraper-0.1.0/pyproject.toml +181 -0
  27. juscraper-0.1.0/scripts/release.py +139 -0
  28. juscraper-0.1.0/src/juscraper/__init__.py +44 -0
  29. juscraper-0.1.0/src/juscraper/aggregators/__init__.py +16 -0
  30. juscraper-0.1.0/src/juscraper/aggregators/datajud/__init__.py +6 -0
  31. juscraper-0.1.0/src/juscraper/aggregators/datajud/client.py +289 -0
  32. juscraper-0.1.0/src/juscraper/aggregators/datajud/download.py +88 -0
  33. juscraper-0.1.0/src/juscraper/aggregators/datajud/mappings.py +117 -0
  34. juscraper-0.1.0/src/juscraper/aggregators/datajud/parse.py +66 -0
  35. juscraper-0.1.0/src/juscraper/aggregators/jusbr/__init__.py +7 -0
  36. juscraper-0.1.0/src/juscraper/aggregators/jusbr/client.py +382 -0
  37. juscraper-0.1.0/src/juscraper/aggregators/jusbr/download.py +178 -0
  38. juscraper-0.1.0/src/juscraper/aggregators/jusbr/parse.py +104 -0
  39. juscraper-0.1.0/src/juscraper/core/base.py +45 -0
  40. juscraper-0.1.0/src/juscraper/core/download.py +1 -0
  41. juscraper-0.1.0/src/juscraper/core/parse_utils.py +1 -0
  42. juscraper-0.1.0/src/juscraper/courts/__init__.py +1 -0
  43. juscraper-0.1.0/src/juscraper/courts/tjdft/__init__.py +0 -0
  44. juscraper-0.1.0/src/juscraper/courts/tjdft/client.py +66 -0
  45. juscraper-0.1.0/src/juscraper/courts/tjdft/download.py +43 -0
  46. juscraper-0.1.0/src/juscraper/courts/tjdft/parse.py +10 -0
  47. juscraper-0.1.0/src/juscraper/courts/tjpr/__init__.py +0 -0
  48. juscraper-0.1.0/src/juscraper/courts/tjpr/client.py +72 -0
  49. juscraper-0.1.0/src/juscraper/courts/tjpr/download.py +124 -0
  50. juscraper-0.1.0/src/juscraper/courts/tjpr/parse.py +126 -0
  51. juscraper-0.1.0/src/juscraper/courts/tjrs/__init__.py +1 -0
  52. juscraper-0.1.0/src/juscraper/courts/tjrs/client.py +141 -0
  53. juscraper-0.1.0/src/juscraper/courts/tjrs/download.py +88 -0
  54. juscraper-0.1.0/src/juscraper/courts/tjrs/parse.py +79 -0
  55. juscraper-0.1.0/src/juscraper/courts/tjsp/__init__.py +0 -0
  56. juscraper-0.1.0/src/juscraper/courts/tjsp/acordao_download.py +32 -0
  57. juscraper-0.1.0/src/juscraper/courts/tjsp/auth.py +0 -0
  58. juscraper-0.1.0/src/juscraper/courts/tjsp/cjpg_download.py +120 -0
  59. juscraper-0.1.0/src/juscraper/courts/tjsp/cjpg_parse.py +108 -0
  60. juscraper-0.1.0/src/juscraper/courts/tjsp/cjsg_download.py +138 -0
  61. juscraper-0.1.0/src/juscraper/courts/tjsp/cjsg_parse.py +146 -0
  62. juscraper-0.1.0/src/juscraper/courts/tjsp/client.py +375 -0
  63. juscraper-0.1.0/src/juscraper/courts/tjsp/cpopg_download.py +222 -0
  64. juscraper-0.1.0/src/juscraper/courts/tjsp/cpopg_parse.py +308 -0
  65. juscraper-0.1.0/src/juscraper/courts/tjsp/cposg_download.py +103 -0
  66. juscraper-0.1.0/src/juscraper/courts/tjsp/cposg_parse.py +290 -0
  67. juscraper-0.1.0/src/juscraper/tribunal_manager.py +28 -0
  68. juscraper-0.1.0/src/juscraper/utils/__init__.py +34 -0
  69. juscraper-0.1.0/src/juscraper/utils/cnj.py +35 -0
  70. juscraper-0.1.0/src/juscraper/utils/logging_cfg.py +1 -0
  71. juscraper-0.1.0/tests/test_juscraper.py +1 -0
  72. juscraper-0.1.0/tests/tjdft/test_cjsg_draft.py +24 -0
  73. juscraper-0.1.0/tests/tjdft/test_cjsg_standalone.py +20 -0
  74. juscraper-0.1.0/tests/tjpr/test_cjsg.py +50 -0
  75. juscraper-0.1.0/tests/tjrs/__init__.py +1 -0
  76. juscraper-0.1.0/tests/tjrs/test_cjsg.py +80 -0
  77. juscraper-0.1.0/tests/tjsp/__init__.py +1 -0
  78. juscraper-0.1.0/tests/tjsp/test_cjpg.py +26 -0
  79. juscraper-0.1.0/uv.lock +2866 -0
@@ -0,0 +1,44 @@
1
+ # Release v{VERSION}
2
+
3
+ ## 🚀 What's New
4
+
5
+ ### ✨ New Features
6
+ -
7
+
8
+ ### 🔧 Improvements
9
+ -
10
+
11
+ ### 🐛 Bug Fixes
12
+ -
13
+
14
+ ### 📚 Documentation
15
+ -
16
+
17
+ ### 🔧 Internal Changes
18
+ -
19
+
20
+ ## 📦 Installation
21
+
22
+ ```bash
23
+ pip install juscraper=={VERSION}
24
+ ```
25
+
26
+ Or with uv:
27
+
28
+ ```bash
29
+ uv add juscraper=={VERSION}
30
+ ```
31
+
32
+ ## 🔗 Links
33
+
34
+ - [Documentation](https://jtrecenti.github.io/juscraper/)
35
+ - [PyPI Package](https://pypi.org/project/juscraper/{VERSION}/)
36
+ - [Changelog](https://github.com/jtrecenti/juscraper/blob/main/CHANGELOG.md)
37
+
38
+ ## 🙏 Contributors
39
+
40
+ Thanks to all contributors who made this release possible!
41
+
42
+ ---
43
+
44
+ **Full Changelog**: https://github.com/jtrecenti/juscraper/compare/v{PREVIOUS_VERSION}...v{VERSION}
@@ -0,0 +1,66 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - main
5
+ paths:
6
+ - "docs/**/*"
7
+ - .github/workflows/docs-publish.yml
8
+ workflow_dispatch:
9
+
10
+ name: Docs - Publish
11
+
12
+ env:
13
+ UV_VERSION: "0.4.x"
14
+ PYTHON_VERSION: 3.11
15
+
16
+ permissions:
17
+ contents: write
18
+ pages: write
19
+
20
+ jobs:
21
+ docs-publish:
22
+ runs-on: ubuntu-latest
23
+
24
+ steps:
25
+ - name: Check out repository
26
+ uses: actions/checkout@v4
27
+ with:
28
+ fetch-depth: 0 # full history needed for correct versioning of py pkg
29
+
30
+ - name: 🔵 Set up Quarto
31
+ uses: quarto-dev/quarto-actions/setup@v2
32
+ with:
33
+ version: 1.6.26
34
+
35
+ - name: 🚀 Install uv
36
+ uses: astral-sh/setup-uv@v3
37
+ with:
38
+ version: ${{ env.UV_VERSION }}
39
+
40
+ - name: 🐍 Set up Python ${{ env.PYTHON_VERSION }}
41
+ run: uv python install ${{ env.PYTHON_VERSION }}
42
+
43
+ - name: 📦 Install juscraper and dependencies
44
+ run: |
45
+ uv sync --python ${{ env.PYTHON_VERSION }} --all-extras
46
+ uv pip install -e .
47
+
48
+ - name: 🔌 Activate venv
49
+ run: |
50
+ source .venv/bin/activate
51
+ echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
52
+ echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
53
+
54
+ - name: Run quartodoc
55
+ run: |
56
+ cd docs
57
+ quartodoc build
58
+ quarto render
59
+
60
+ - name: 🚢 Publish to GitHub Pages (and render)
61
+ uses: quarto-dev/quarto-actions/publish@v2
62
+ with:
63
+ target: gh-pages
64
+ path: docs/_site
65
+ env:
66
+ GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -0,0 +1,63 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ test_pypi:
9
+ description: 'Publish to Test PyPI instead of PyPI'
10
+ required: false
11
+ default: false
12
+ type: boolean
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v3
23
+ with:
24
+ version: "latest"
25
+
26
+ - name: Set up Python
27
+ run: uv python install 3.11
28
+
29
+ - name: Build package
30
+ run: |
31
+ uv build
32
+
33
+ - name: Upload artifacts
34
+ uses: actions/upload-artifact@v4
35
+ with:
36
+ name: dist
37
+ path: dist/
38
+
39
+ publish:
40
+ needs: build
41
+ runs-on: ubuntu-latest
42
+ environment:
43
+ name: ${{ github.event.inputs.test_pypi == 'true' && 'test-pypi' || 'pypi' }}
44
+ url: ${{ github.event.inputs.test_pypi == 'true' && 'https://test.pypi.org/p/juscraper' || 'https://pypi.org/p/juscraper' }}
45
+ permissions:
46
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
47
+
48
+ steps:
49
+ - name: Download artifacts
50
+ uses: actions/download-artifact@v4
51
+ with:
52
+ name: dist
53
+ path: dist/
54
+
55
+ - name: Publish to Test PyPI
56
+ if: github.event.inputs.test_pypi == 'true'
57
+ uses: pypa/gh-action-pypi-publish@release/v1
58
+ with:
59
+ repository-url: https://test.pypi.org/legacy/
60
+
61
+ - name: Publish to PyPI
62
+ if: github.event.inputs.test_pypi != 'true'
63
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,147 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ .python-version
86
+
87
+ # pipenv
88
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
90
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
91
+ # install all needed dependencies.
92
+ #Pipfile.lock
93
+
94
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95
+ __pypackages__/
96
+
97
+ # Celery stuff
98
+ celerybeat-schedule
99
+ celerybeat.pid
100
+
101
+ # SageMath parsed files
102
+ *.sage.py
103
+
104
+ # Environments
105
+ .env
106
+ .venv
107
+ env/
108
+ venv/
109
+ ENV/
110
+ env.bak/
111
+ venv.bak/
112
+
113
+ # Spyder project settings
114
+ .spyderproject
115
+ .spyproject
116
+
117
+ # Rope project settings
118
+ .ropeproject
119
+
120
+ # mkdocs documentation
121
+ /site
122
+
123
+ # mypy
124
+ .mypy_cache/
125
+ .dmypy.json
126
+ dmypy.json
127
+
128
+ # Pyre type checker
129
+ .pyre/
130
+ **__pycache__
131
+
132
+ # PyCharm
133
+ .idea/
134
+
135
+ # RStudio project files
136
+ **.Rproj.user/
137
+ **.Rproj.user*
138
+ **.Rproj
139
+ **.Rhistory
140
+
141
+ # MacOS
142
+ .DS_Store
143
+
144
+ # drafts
145
+ drafts/
146
+ docs/_site
147
+ docs/reference
@@ -0,0 +1,36 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.4.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-yaml
8
+ - id: check-added-large-files
9
+ - id: check-merge-conflict
10
+ - id: debug-statements
11
+
12
+ - repo: https://github.com/pycqa/isort
13
+ rev: 5.12.0
14
+ hooks:
15
+ - id: isort
16
+ args: ["--line-length=120", "--multi-line=3", "--trailing-comma"]
17
+
18
+ - repo: https://github.com/pycqa/pylint
19
+ rev: v3.0.0
20
+ hooks:
21
+ - id: pylint
22
+ args: ["--max-line-length=120"]
23
+
24
+ - repo: https://github.com/pycqa/flake8
25
+ rev: 6.0.0
26
+ hooks:
27
+ - id: flake8
28
+ additional_dependencies: [flake8-docstrings]
29
+ args: ['--max-line-length=120', '--extend-ignore=E203,W503']
30
+
31
+ - repo: https://github.com/pre-commit/mirrors-mypy
32
+ rev: v1.5.1
33
+ hooks:
34
+ - id: mypy
35
+ additional_dependencies: [types-requests]
36
+ args: [--ignore-missing-imports]
@@ -0,0 +1,52 @@
1
+ [MAIN]
2
+ load-plugins=pylint.extensions.docparams
3
+
4
+ [FORMAT]
5
+ max-line-length=120
6
+ indent-string=' '
7
+
8
+ [MESSAGES CONTROL]
9
+ disable=missing-module-docstring,
10
+ missing-class-docstring,
11
+ missing-function-docstring,
12
+ too-few-public-methods,
13
+ too-many-arguments,
14
+ too-many-locals,
15
+ too-many-branches,
16
+ too-many-statements,
17
+ too-many-instance-attributes,
18
+ too-many-public-methods,
19
+ import-error,
20
+ no-member,
21
+ unused-argument,
22
+ broad-except,
23
+ fixme,
24
+ invalid-name
25
+
26
+ [DESIGN]
27
+ max-args=10
28
+ max-locals=20
29
+ max-returns=6
30
+ max-branches=15
31
+ max-statements=50
32
+ max-parents=7
33
+ max-attributes=10
34
+ min-public-methods=1
35
+ max-public-methods=25
36
+
37
+ [SIMILARITIES]
38
+ min-similarity-lines=4
39
+ ignore-comments=yes
40
+ ignore-docstrings=yes
41
+ ignore-imports=no
42
+
43
+ [VARIABLES]
44
+ init-import=no
45
+ dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
46
+
47
+ [CLASSES]
48
+ valid-classmethod-first-arg=cls
49
+ valid-metaclass-classmethod-first-arg=mcs
50
+
51
+ [IMPORTS]
52
+ known-third-party=pandas,requests,beautifulsoup4,selenium,playwright,tqdm,unidecode
@@ -0,0 +1,23 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ # Set the OS, Python version and other tools you might need
9
+ build:
10
+ os: ubuntu-22.04
11
+ tools:
12
+ python: "3.9"
13
+ jobs:
14
+ post_create_environment:
15
+ # Install poetry
16
+ # https://python-poetry.org/docs/#installing-manually
17
+ - pip install poetry
18
+ post_install:
19
+ - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install
20
+
21
+ # Build documentation in the "docs/" directory with Sphinx
22
+ sphinx:
23
+ configuration: docs/conf.py
@@ -0,0 +1,44 @@
1
+ # Changelog
2
+
3
+ Todas as mudanças notáveis neste projeto serão documentadas neste arquivo.
4
+
5
+ O formato é baseado em [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ e este projeto adere ao [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ -
13
+
14
+ ### Changed
15
+
16
+ -
17
+
18
+ ### Fixed
19
+
20
+ -
21
+
22
+ ## [0.1.0] - 2025-01-19
23
+
24
+ ### Added
25
+
26
+ - Modularização do TJSP
27
+ - Tribunais adicionados: TJRS, TJPR, TJDFT (apenas CJSG)
28
+ - Agregadores adicionados: Datajud, Jusbr
29
+ - Configuração completa para publicação no PyPI
30
+ - Workflows do GitHub Actions para CI/CD
31
+ - Configuração de ferramentas de qualidade de código (black, isort, flake8, mypy)
32
+ - Pre-commit hooks
33
+ - Script automatizado de release
34
+
35
+ ### Changed
36
+
37
+ - Reorganização das dependências em grupos opcionais
38
+ - Melhoria na estrutura do projeto
39
+
40
+ ## [0.0.1] - 2024-12-17
41
+
42
+ ### Added
43
+
44
+ - First release of `juscraper`!
@@ -0,0 +1,43 @@
1
+ # Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to creating a positive environment include:
10
+
11
+ * Using welcoming and inclusive language
12
+ * Being respectful of differing viewpoints and experiences
13
+ * Gracefully accepting constructive criticism
14
+ * Focusing on what is best for the community
15
+ * Showing empathy towards other community members
16
+
17
+ Examples of unacceptable behavior by participants include:
18
+
19
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ * Trolling, insulting/derogatory comments, and personal or political attacks
21
+ * Public or private harassment
22
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
24
+
25
+ ## Our Responsibilities
26
+
27
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
+
29
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
+
39
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
+
41
+ ## Attribution
42
+
43
+ This Code of Conduct is adapted from the [Contributor Covenant homepage](http://contributor-covenant.org/version/1/4), version 1.4.
@@ -0,0 +1,73 @@
1
+ # Contributing
2
+
3
+ Contributions are welcome, and they are greatly appreciated! Every little bit
4
+ helps, and credit will always be given.
5
+
6
+ ## Types of Contributions
7
+
8
+ ### Report Bugs
9
+
10
+ If you are reporting a bug, please include:
11
+
12
+ * Your operating system name and version.
13
+ * Any details about your local setup that might be helpful in troubleshooting.
14
+ * Detailed steps to reproduce the bug.
15
+
16
+ ### Fix Bugs
17
+
18
+ Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
19
+ wanted" is open to whoever wants to implement it.
20
+
21
+ ### Implement Features
22
+
23
+ Look through the GitHub issues for features. Anything tagged with "enhancement"
24
+ and "help wanted" is open to whoever wants to implement it.
25
+
26
+ ### Write Documentation
27
+
28
+ You can never have enough documentation! Please feel free to contribute to any
29
+ part of the documentation, such as the official docs, docstrings, or even
30
+ on the web in blog posts, articles, and such.
31
+
32
+ ### Submit Feedback
33
+
34
+ If you are proposing a feature:
35
+
36
+ * Explain in detail how it would work.
37
+ * Keep the scope as narrow as possible, to make it easier to implement.
38
+ * Remember that this is a volunteer-driven project, and that contributions
39
+ are welcome :)
40
+
41
+ ## Get Started!
42
+
43
+ Ready to contribute? Here's how to set up `juscraper` for local development.
44
+
45
+ 1. Download a copy of `juscraper` locally.
46
+ 2. Install `juscraper` using `poetry`:
47
+
48
+ ```console
49
+ $ poetry install
50
+ ```
51
+
52
+ 3. Use `git` (or similar) to create a branch for local development and make your changes:
53
+
54
+ ```console
55
+ $ git checkout -b name-of-your-bugfix-or-feature
56
+ ```
57
+
58
+ 4. When you're done making changes, check that your changes conform to any code formatting requirements and pass any tests.
59
+
60
+ 5. Commit your changes and open a pull request.
61
+
62
+ ## Pull Request Guidelines
63
+
64
+ Before you submit a pull request, check that it meets these guidelines:
65
+
66
+ 1. The pull request should include additional tests if appropriate.
67
+ 2. If the pull request adds functionality, the docs should be updated.
68
+ 3. The pull request should work for all currently supported operating systems and versions of Python.
69
+
70
+ ## Code of Conduct
71
+
72
+ Please note that the `juscraper` project is released with a
73
+ Code of Conduct. By contributing to this project you agree to abide by its terms.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024, Julio Trecenti
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1,9 @@
1
+ include README.md
2
+ include LICENSE
3
+ include CHANGELOG.md
4
+ include CONTRIBUTING.md
5
+ include CONDUCT.md
6
+ recursive-include src *.py
7
+ recursive-exclude * __pycache__
8
+ recursive-exclude * *.py[co]
9
+ recursive-exclude * .DS_Store