Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kounelisagis/pybind-project
https://github.com/kounelisagis/pybind-project
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kounelisagis/pybind-project
- Owner: kounelisagis
- Created: 2023-11-09T02:31:59.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-17T01:24:07.000Z (12 months ago)
- Last Synced: 2023-11-17T03:26:24.610Z (12 months ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project is based on this template: https://github.com/TileDB-Inc/py-cppstring-starter
# Run code
```
git clone
cd
mkdir bld && cd bld
cmake ..
cmake --build .
```Then you can try running
```
python
```and run some of the supported commands.
Or run the code of the example file by running
```
python ../examples/example.py
```The output should be something like
```
Length of the string "Hello, World!" (using len()) is 13
Length of the string "Hello, World!" is (using .length()) 13
The string "Hello, World!" is not a palindrome
The string aabaa is a palindrome
The string aabbaa is a palindrome
Every second character of "Hello, World!" is Hlo ol!
A substring of "Hello, World!" from index 1 to 5 is ello
I can also do this str[:] resulting in Hello, World!
Or even str[::] resulting in Hello, World!
```