ioregistry 0.0.1__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.
- ioregistry-0.0.1/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- ioregistry-0.0.1/.github/ISSUE_TEMPLATE/config.yml +6 -0
- ioregistry-0.0.1/.github/ISSUE_TEMPLATE/feature_request.md +24 -0
- ioregistry-0.0.1/.github/pull_request_template.md +12 -0
- ioregistry-0.0.1/.github/workflows/codeql.yml +81 -0
- ioregistry-0.0.1/.github/workflows/markdown-lint.yml +26 -0
- ioregistry-0.0.1/.github/workflows/python-app.yml +45 -0
- ioregistry-0.0.1/.github/workflows/python-publish.yml +29 -0
- ioregistry-0.0.1/.gitignore +5 -0
- ioregistry-0.0.1/.pre-commit-config.yaml +15 -0
- ioregistry-0.0.1/LICENSE +674 -0
- ioregistry-0.0.1/PKG-INFO +61 -0
- ioregistry-0.0.1/README.md +37 -0
- ioregistry-0.0.1/ioregistry/__init__.py +0 -0
- ioregistry-0.0.1/ioregistry/__main__.py +21 -0
- ioregistry-0.0.1/ioregistry/_version.py +21 -0
- ioregistry-0.0.1/ioregistry/allocated.py +23 -0
- ioregistry-0.0.1/ioregistry/exceptions.py +2 -0
- ioregistry-0.0.1/ioregistry/ioentry.py +116 -0
- ioregistry-0.0.1/ioregistry/native/__init__.py +0 -0
- ioregistry-0.0.1/ioregistry/native/core_foundation.py +52 -0
- ioregistry-0.0.1/ioregistry/native/iokit.py +50 -0
- ioregistry-0.0.1/ioregistry.egg-info/PKG-INFO +61 -0
- ioregistry-0.0.1/ioregistry.egg-info/SOURCES.txt +30 -0
- ioregistry-0.0.1/ioregistry.egg-info/dependency_links.txt +1 -0
- ioregistry-0.0.1/ioregistry.egg-info/entry_points.txt +2 -0
- ioregistry-0.0.1/ioregistry.egg-info/requires.txt +1 -0
- ioregistry-0.0.1/ioregistry.egg-info/top_level.txt +2 -0
- ioregistry-0.0.1/markdownlint-config.json +15 -0
- ioregistry-0.0.1/pyproject.toml +46 -0
- ioregistry-0.0.1/requirements.txt +1 -0
- ioregistry-0.0.1/setup.cfg +4 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Test environment**
|
|
11
|
+
- Host OS version.
|
|
12
|
+
- Target device model and iOS version.
|
|
13
|
+
|
|
14
|
+
**Describe the bug**
|
|
15
|
+
A clear and concise description of what the bug is.
|
|
16
|
+
|
|
17
|
+
**To Reproduce**
|
|
18
|
+
Steps to reproduce the behavior:
|
|
19
|
+
1. Go to '...'
|
|
20
|
+
2. Click on '....'
|
|
21
|
+
3. Scroll down to '....'
|
|
22
|
+
4. See error
|
|
23
|
+
|
|
24
|
+
**Expected behavior**
|
|
25
|
+
A clear and concise description of what you expected to happen.
|
|
26
|
+
|
|
27
|
+
**Logs**
|
|
28
|
+
If applicable, add logs including backtraces for the given error that help explain your problem.
|
|
29
|
+
|
|
30
|
+
**Additional context**
|
|
31
|
+
Add any other context about the problem here.
|
|
32
|
+
|
|
33
|
+
## For community
|
|
34
|
+
âŦī¸ **Please click the đ reaction instead of leaving a `+1` or đ comment**
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
21
|
+
|
|
22
|
+
## For community
|
|
23
|
+
|
|
24
|
+
âŦī¸ **Please click the đ reaction instead of leaving a `+1` or đ comment**
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!---
|
|
2
|
+
|
|
3
|
+
Thanks for opening a PR on ioregistry!
|
|
4
|
+
|
|
5
|
+
Please review the CONTRIBUTING.md first regarding the linters we use and how
|
|
6
|
+
do we enforce them.
|
|
7
|
+
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
## For community
|
|
11
|
+
|
|
12
|
+
âŦī¸ **Please click the đ reaction instead of leaving a `+1` or đ comment**
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
pull_request:
|
|
16
|
+
# The branches below must be a subset of the branches above
|
|
17
|
+
branches: [ "master" ]
|
|
18
|
+
paths:
|
|
19
|
+
- '.github/workflows/codeql.yml'
|
|
20
|
+
- 'pymobiledevice3/**'
|
|
21
|
+
- 'requirements.txt'
|
|
22
|
+
- 'pyproject.toml'
|
|
23
|
+
schedule:
|
|
24
|
+
- cron: '24 3 * * 6'
|
|
25
|
+
|
|
26
|
+
concurrency:
|
|
27
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
28
|
+
cancel-in-progress: true
|
|
29
|
+
|
|
30
|
+
jobs:
|
|
31
|
+
analyze:
|
|
32
|
+
name: Analyze
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
permissions:
|
|
35
|
+
actions: read
|
|
36
|
+
contents: read
|
|
37
|
+
security-events: write
|
|
38
|
+
|
|
39
|
+
strategy:
|
|
40
|
+
fail-fast: false
|
|
41
|
+
matrix:
|
|
42
|
+
language: [ 'python' ]
|
|
43
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
44
|
+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
45
|
+
|
|
46
|
+
steps:
|
|
47
|
+
- name: Checkout repository
|
|
48
|
+
uses: actions/checkout@v3
|
|
49
|
+
|
|
50
|
+
# Initializes the CodeQL tools for scanning.
|
|
51
|
+
- name: Initialize CodeQL
|
|
52
|
+
uses: github/codeql-action/init@v2
|
|
53
|
+
with:
|
|
54
|
+
languages: ${{ matrix.language }}
|
|
55
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
56
|
+
# By default, queries listed here will override any specified in a config file.
|
|
57
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
58
|
+
|
|
59
|
+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
60
|
+
# queries: security-extended,security-and-quality
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
64
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
|
65
|
+
- name: Autobuild
|
|
66
|
+
uses: github/codeql-action/autobuild@v2
|
|
67
|
+
|
|
68
|
+
# âšī¸ Command-line programs to run using the OS shell.
|
|
69
|
+
# đ See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
70
|
+
|
|
71
|
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
72
|
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
73
|
+
|
|
74
|
+
# - run: |
|
|
75
|
+
# echo "Run, Build Application using script"
|
|
76
|
+
# ./location_of_script_within_repo/buildscript.sh
|
|
77
|
+
|
|
78
|
+
- name: Perform CodeQL Analysis
|
|
79
|
+
uses: github/codeql-action/analyze@v2
|
|
80
|
+
with:
|
|
81
|
+
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Markdown linting
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [ "master" ]
|
|
6
|
+
paths:
|
|
7
|
+
- '**/*.md'
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
if: '! github.event.pull_request.draft'
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- uses: actions/setup-node@v1
|
|
21
|
+
with:
|
|
22
|
+
node-version: '20'
|
|
23
|
+
- name: Install Markdownlint CLI
|
|
24
|
+
run: npm install -g markdownlint-cli
|
|
25
|
+
- name: Run Markdownlint
|
|
26
|
+
run: markdownlint -c markdownlint-config.json "**/*.md"
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: Python application
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [ "master" ]
|
|
6
|
+
paths:
|
|
7
|
+
- '.github/workflows/python-app.yml'
|
|
8
|
+
- 'ioregistry/**'
|
|
9
|
+
- 'requirements.txt'
|
|
10
|
+
- 'pyproject.toml'
|
|
11
|
+
release:
|
|
12
|
+
types: [ created ]
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
16
|
+
cancel-in-progress: true
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
test:
|
|
20
|
+
if: '! github.event.pull_request.draft'
|
|
21
|
+
runs-on: ${{ matrix.os }}
|
|
22
|
+
|
|
23
|
+
strategy:
|
|
24
|
+
matrix:
|
|
25
|
+
python-version: [ 3.9, "3.10", "3.11", "3.12", "3.13" ]
|
|
26
|
+
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
31
|
+
uses: actions/setup-python@v4
|
|
32
|
+
with:
|
|
33
|
+
python-version: ${{ matrix.python-version }}
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
run: |
|
|
36
|
+
python3 -m pip install --upgrade pip
|
|
37
|
+
python3 -m pip install pre-commit
|
|
38
|
+
- name: Run pre-commit hooks
|
|
39
|
+
run: |
|
|
40
|
+
pre-commit run --all-files
|
|
41
|
+
- name: Test install
|
|
42
|
+
run: |
|
|
43
|
+
python -m pip install -U '.'
|
|
44
|
+
- name: Test show usage
|
|
45
|
+
run: pytest -m cli
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# This workflows will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
name: Upload Python Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
release:
|
|
8
|
+
types: [ created ]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
deploy:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- name: Set up Python
|
|
16
|
+
uses: actions/setup-python@v4
|
|
17
|
+
with:
|
|
18
|
+
python-version: '3.x'
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: |
|
|
21
|
+
python -m pip install --upgrade pip
|
|
22
|
+
pip install -U build setuptools wheel twine
|
|
23
|
+
- name: Build and publish
|
|
24
|
+
env:
|
|
25
|
+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
|
26
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
27
|
+
run: |
|
|
28
|
+
python -m build
|
|
29
|
+
twine upload dist/*
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# .pre-commit-config.yaml
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/pre-commit/mirrors-isort
|
|
4
|
+
rev: v5.9.3
|
|
5
|
+
hooks:
|
|
6
|
+
- id: isort
|
|
7
|
+
args: [ '-m', 'HANGING_INDENT', '-l', '120','--check-only' ]
|
|
8
|
+
files: .
|
|
9
|
+
|
|
10
|
+
- repo: https://github.com/pycqa/flake8
|
|
11
|
+
rev: "7.0.0"
|
|
12
|
+
hooks:
|
|
13
|
+
- id: flake8
|
|
14
|
+
args: [ '--max-line-length=127' ]
|
|
15
|
+
files: \.py$
|