rests's People
rests's Issues
Consider renaming this project to 'django-rests' for clarity
It is conventional for Django projects to carry a 'django-' prefix. This helps distinguish them as being part of the Django ecosystem. Since the word 'rests' is somewhat vague, please consider renaming this project to 'django-rests' in order to clarify that it is a component of the Django ecosystem :-)
Update dependencies
I see that in the setup.py we're requiring a lot of different sql clients
psycopg
, mssqlclient
, etc.
I've looked through the source code and I don't see them used anywhere.
I'm having trouble installing some of them on my machine, and I was wondering if we could remove them, if they're not actually used.
Great project btw
MySQL
Hell, Only support Postgres?
'async' is a reserved word in Python 3.7
flake8 testing of https://github.com/peter-woyzbun/rests on Python 3.7.0
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./tests/test_integration.py:46:22: E999 SyntaxError: invalid syntax
.async()
^
./rests/test/ava.py:33:13: E999 SyntaxError: invalid syntax
def async(self):
^
2 E999 SyntaxError: invalid syntax
2
Cannot copy tree typescript/src/core
Attempting to run manage.py transpile i get the following output
Attempting to transpile `companies.interface` to destination `/home/geewee/PycharmProjects/reccoon_backend`. Using server URL: `http://localhost:8000/api/`
Traceback (most recent call last):
File "./manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/home/geewee/.local/share/virtualenvs/reccoon_backend-M_1g5Wo0/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/home/geewee/.local/share/virtualenvs/reccoon_backend-M_1g5Wo0/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/geewee/.local/share/virtualenvs/reccoon_backend-M_1g5Wo0/lib/python3.6/site-packages/django/core/management/base.py", line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/geewee/.local/share/virtualenvs/reccoon_backend-M_1g5Wo0/lib/python3.6/site-packages/django/core/management/base.py", line 353, in execute
output = self.handle(*args, **options)
File "/home/geewee/.local/share/virtualenvs/reccoon_backend-M_1g5Wo0/lib/python3.6/site-packages/rests/management/commands/transpile.py", line 32, in handle
transpiler.transpile()
File "/home/geewee/.local/share/virtualenvs/reccoon_backend-M_1g5Wo0/lib/python3.6/site-packages/rests/transpile.py", line 46, in transpile
self._write_core_src()
File "/home/geewee/.local/share/virtualenvs/reccoon_backend-M_1g5Wo0/lib/python3.6/site-packages/rests/transpile.py", line 74, in _write_core_src
copy_tree(str(typescript.SOURCE_DIR), core_dir)
File "/usr/lib64/python3.6/distutils/dir_util.py", line 124, in copy_tree
"cannot copy tree '%s': not a directory" % src)
distutils.errors.DistutilsFileError: cannot copy tree '/home/geewee/.local/share/virtualenvs/reccoon_backend-M_1g5Wo0/lib/python3.6/site-packages/rests/typescript/src/core': not a directory
It's trying to transpile the typescript/src/core
file in transpile.py>_write_core_src
This directory does not however exist. List of my directories:
All of the other directories are there. The difference is that the src directory does not have a init.py
find_packages() in setup.py says it only includes directories with a init.py
Perhaps this is the issue? I think the best solution is simply to have an init.py in the directory, but I am not well versed with setuptools.
I am using pipenv
to install the package, although I don't think it makes a difference.
Such a great idea!
I just want to say that this is a great idea. Thank you so much for making this Django to TypeScript bridge!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.