Giter Site home page Giter Site logo

rests's People

Contributors

blacktrub avatar peter-woyzbun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

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?

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:
image

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.