beat.web.algorithms.api module¶
-
class
beat.web.algorithms.api.CheckAlgorithmNameView(**kwargs)[source]¶ Bases:
beat.web.common.api.CheckContributionNameViewThis view sanitizes an algorithm name and checks whether it is already used.
-
model¶ alias of
beat.web.algorithms.models.Algorithm
-
Bases:
beat.web.code.api.ShareCodeViewThis view allows to share an algorithm with other users and/or teams
alias of
beat.web.algorithms.models.Algorithm
-
class
beat.web.algorithms.api.ListAlgorithmsView(**kwargs)[source]¶ Bases:
beat.web.common.api.ListContributionViewList all available algorithms
-
model¶ alias of
beat.web.algorithms.models.Algorithm
-
serializer_class¶ alias of
beat.web.algorithms.serializers.AlgorithmSerializer
-
-
class
beat.web.algorithms.api.ListCreateAlgorithmsView(**kwargs)[source]¶ Bases:
beat.web.common.api.ListCreateContributionViewRead/Write end point that list the algorithms available from a given author and allows the creation of new algorithms
-
model¶ alias of
beat.web.algorithms.models.Algorithm
-
serializer_class¶ alias of
beat.web.algorithms.serializers.AlgorithmSerializer
-
writing_serializer_class¶ alias of
beat.web.algorithms.serializers.AlgorithmCreationSerializer
-
namespace= 'api_algorithms'¶
-
-
class
beat.web.algorithms.api.RetrieveUpdateDestroyAlgorithmsView(**kwargs)[source]¶ Bases:
beat.web.code.api.RetrieveUpdateDestroyCodeViewRead/Write/Delete endpoint for a given algorithm
-
model¶ alias of
beat.web.algorithms.models.Algorithm
-
serializer_class¶ alias of
beat.web.algorithms.serializers.FullAlgorithmSerializer
-
writing_serializer_class¶ alias of
beat.web.algorithms.serializers.AlgorithmModSerializer
-
-
class
beat.web.algorithms.api.DiffAlgorithmView(**kwargs)[source]¶ Bases:
beat.web.code.api.DiffViewThis view shows the differences between two algorithms
-
model¶ alias of
beat.web.algorithms.models.Algorithm
-
serializer_class¶
-
-
class
beat.web.algorithms.api.BinaryRenderer[source]¶ Bases:
rest_framework.renderers.BaseRenderer-
media_type= 'application/octet-stream'¶
-
charset= None¶
-
render_style= 'binary'¶
-
-
class
beat.web.algorithms.api.FileHandlingView(**kwargs)[source]¶ Bases:
rest_framework.views.APIViewThis view handles the upload of binary files for non interpreted languages like c++
-
model¶ alias of
beat.web.algorithms.models.Algorithm
-
parser_classes= [<class 'rest_framework.parsers.MultiPartParser'>, <class 'rest_framework.parsers.FormParser'>]¶
-
renderer_classes= [<class 'beat.web.algorithms.api.BinaryRenderer'>]¶
-
permission_classes= [<class 'beat.web.common.permissions.IsAuthorOrReadOnly'>]¶
-