question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support route convertors

See original GitHub issue

Hi, I’ve just discovered starlette (seems to be the perfect asgi fw ! great) Looking into docs/unitests … but it seems that regex routing is not implemented yet (will look into the code)

Is it possible to declare something like that ?

@app.route("/api/{name:.*}")
def ...

It’s the only thing it seems to miss (to quit aiohttp)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tomchristiecommented, Nov 8, 2018

@Dith3r That’s true actually, yeah. (Tho it won’t work with request.url_for(...))

1reaction
Dith3rcommented, Nov 8, 2018

Because, currently ; It’s impossible to make an endpoint with an abritratry number of subpaths

It’s possible to declare your own regex.

@app.route("/(?P<path>.*)")
Read more comments on GitHub >

github_iconTop Results From Across the Web

RouteConverter - Home
RouteConverter is a free, user friendly GPS tool to display, edit and convert routes, tracks and waypoints in over 75 formats.
Read more >
Route converter - AllTrails
Use the AllTrails Route Converter to upload a route and convert to any of our supported file formats. View supported file formats. Drag...
Read more >
Implementing custom parameter converters - Drupal
Routes in Drupal 8 may include placeholder elements which designate places where the URL contains dynamic values. Help improve this page. Page ...
Read more >
GPS Route Converter - gHacks Tech News
Route Converter is a free software program for Microsoft Windows devices to display, edit, and manage GPS routes, tracks, and waypoints.
Read more >
Route Converter: Gpx, Kml, Trk - Apps on Google Play
Convert and edit your routes, waypoints or track files to other file formats. Supported formats: .gpx (.rte and .trk waypoint formats)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found