mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
SWIG experiments
Squash of the following commits (a full rebase was too hard :( ) *ef309cfdfN - SWIG: create pm3.c (5 months ago) <Philippe Teuwen> *05ba6a73fN - swig pm3_device -> pm3 (5 months ago) <Philippe Teuwen> *d59630183N - swig: move pm3.i (5 months ago) <Philippe Teuwen> *6adcfad75N - Fix historic make & cmake (5 months ago) <Philippe Teuwen> *bcbef2edfN - Fix typo with script_embedded (5 months ago) <slurdge> *538ee4dabN - Better SWIG integration: autogen func & attributes (5 months ago) <slurdge> *756b62466N - SWIG: few helper scripts (5 months ago) <Philippe Teuwen> *47ba4acd0N - SWIG %extend (5 months ago) <Philippe Teuwen> *21841cb9dN - simplify scripts (5 months ago) <Philippe Teuwen> *78c4f7929N - Revert "SWIG experiments: introduce context" (5 months ago) <Philippe Teuwen> *1562b75fcN - SWIG experiments: introduce context (5 months ago) <Philippe Teuwen> *a503dfcd9N - SWIG experiments (5 months ago) <Philippe Teuwen>
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
ln -fs ../build/libpm3rrg_rdv4.so _pm3.so
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
#/usr/local/lib/python3/dist-packages/_pm3.cpython-38.so
|
||||
#/usr/local/lib/python3/dist-packages/_pm3.abi3.so
|
||||
#/usr/local/lib/python3/dist-packages/pm3.py
|
||||
#/usr/lib/python3/dist-packages/_pm3.cpython-38.so
|
||||
#/usr/lib/python3/dist-packages/_pm3.abi3.so
|
||||
#/usr/lib/python3/dist-packages/pm3.py
|
||||
|
||||
# need access to pm3.py
|
||||
PYTHONPATH=../../src ./test.py
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
PYTHONPATH=../../src ipython3 -i ./test.py
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import pm3
|
||||
p=pm3.pm3("/dev/ttyACM0")
|
||||
p.console("hw status")
|
||||
print("Device:", p.name)
|
||||
Reference in New Issue
Block a user