python | RubyGems.org | your community gem host
$ gem install python
$ gem specification python
--- !ruby/object:Gem::Specification
name: python
version: !ruby/object:Gem::Version
version: 0.0.1
platform: ruby
authors:
- Kensuke Sawada
~
executables:
- python.rb
~
I think I can do something
$ python.rb
python.rb> 1+1
2
moved
$ echo "print(1+1)" > test.py
$ python.rb test.py #moved
2
interesting
sawaken/python.rb: Python in Ruby
$ pip search ruby
~
pyruby (1.0.0) - Some Ruby for your Python
~
There seems to be!
$ pip install pyruby
$ pip show pyruby
---
Metadata-Version: 1.1
Name: pyruby
Version: 1.0.0
Summary: Some Ruby for your Python
Home-page: http://github.com/danielfm/pyruby
Author: Daniel Fernandes Martins
Author-email: [email protected]
License: BSD
Location: /Users/him0/Desktop/venv/lib/python3.5/site-packages
Requires:
Classifiers:
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Ruby
Topic :: Software Development :: Interpreters
danielfm/pyruby: Some Ruby for your Python!
$ echo '''import ruby
> puts "Hello!"'''>app.p
$ python app.py
File "app.py", line 2
puts "Hello!"
^
SyntaxError: invalid syntax
that?
$ echo '''import ruby
print("Hello!")'''>app.py
$ python app.py
...。
I don't know what kind of library is registered for a library like pip
This time, I'm glad it's outright, but I learned that it's okay to have a library that's doing bad things out of sight, so you should not only use it blindly, but read the source code properly.
2016-05-10 Addendum English was the opposite
Recommended Posts