crython
Version, currently master branch1 version
- master branchlatestAug 7, 2019
github.com/RomainFranceschini/crython
Crystal meets Python
17 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
crython:
github: RomainFranceschini/crython
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.27.0- License
- MIT
- Author
- Romain Franceschini <franceschini.romain@gmail.com>
Dependencies
This version declares no dependencies.
README
# crython
Crystal meets Python!
Experiment on how a Python interpreter can be embedded in Crystal.
Current status: PoC
## Installation
A Python interpreter is required as a dependency.
Ensure `python-config --ldflags` works.
Since Python's C API expose some constants or functions using preprocessor macros, `crython` uses a thin *static* library written in C (see `src/ext/crython.c`) that re-exports them with a fixed C API.
Use `make` with the optional variables `release=1` or `debug=1` to build the static library. Note that `make release=1` is automatically executed by `shards` as a postinstall script.
Add this to your application's `shard.yml`:
```yaml
dependencies:
crython:
github: RomainFranceschini/crython
```
## Usage
```crystal
require "crython"
```
See `examples` folder.
Use `make examples` with the optional make variables `release=1` or `debug=1` to build all examples.
## Development
TODO: Write development instructions here
## Contributing
1. Fork it (<https://github.com/RomainFranceschini/crython/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Romain Franceschini](https://github.com/RomainFranceschini) - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Aug 7, 2019
- Crystal
0.27.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/RomainFranceschini/crython
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1