Saravanan666/pypi-org huggingface dataset:
Package: django-filemaker
django-filemaker================Pythonic FileMaker® access and FileMaker layout to Django model mapping... image:: https://badge.fury.io/py/django-filemaker.png:target: http://badge.fury.io/py/django-filemaker.. image:: https://travis-ci.org/TitanEntertainmentGroup/django-filemaker.png?branch=master:target: https://travis-ci.org/TitanEntertainmentGroup/django-filemaker.. image:: https://coveralls.io/repos/TitanEntertainmentGroup/django-filemaker/badge.png?branch=master:target: https://coveralls.io/r/TitanEntertainmentGroup/django-filemaker?branch=master.. image:: https://pypip.in/d/django-filemaker/badge.png:target: https://crate.io/packages/django-filemaker?version=latestQuickstart----------Create a ``FileMakerModel``:::from django.contrib.flatpages.models import FlatPagefrom django.contrib.sites.models import Sitefrom filemaker import fields, FileMakerModelclass FileMakerFlatPage(FileMakerModel):# The first argument to a FileMaker field should be the field name for# that item on the FileMaker layoutpk = fields.IntegerField('zpkFlatpageID')url = fields.CharField('Url_FileMaker_Field')title = fields.CharField('Title_FileMaker_Field')content = fields.CharField('Content_FileMaker_Field')# You can pass in a default value to any fieldtemplate_name = fields.CharField('Template_Name_Field', default='flatpages/default.html')registration_required = fields.BooleanField('Registration_Required_Field', default=False)sites = fields.ModelListField('SITES', model=FileMakerSite)meta = {'connection': {'url': 'http://user:password@example.com/','db': 'Db_Name','layout': 'Layout_Name',},'model': FlatPage,'pk_name': 'pk',}class FileMakerSite(FileMakerModel):# On related fields we specify the relative field to the field name# specified on the calling model (FileMakerFlatPage), unless the# calling model uses the special '+self' value which passes the layout# of that model to the sub modeldomain = fields.CharField('Domain_field')name = fields.CharField('Name_Field')meta = {'model': Site,# abstract here means it is a child of an actual FileMaker layout'abstract': True,}Query FileMaker for instances of your model, and convert them to djangoinstances using the ``to_django`` method:::>>> # The Django style methods will convert field names>>> FlatPage.objects.count() == 0True>>> fm_page = FileMakerFlatPage.objects.get(pk=1)>>> fm_page.to_django()<FlatPage: pk=1>>>> FlatPage.objects.count() == 1TrueYou can also use the FileMaker style manager methods to query:::>>> FileMakerFlatPage.objects.find(zpkFlatpageID=1)<FMXMLObject...>Documentation-------------Full documentation is available on `ReadTheDocs<https://django-filemaker.readthedocs.org/en/latest/>`_
Package: django-fileman
django-fileman adds user-uploaded static files to the django admin (i.e.
images, media, documents) and integrates with tinymceRequirementsPython 2.7, 3.4 or 3.5Django 1.8+InstallationDownload the source fromhttps://pypi.python.org/pypi/django-fileman/and runpython setup.py install, or:> pip install django-filemanAdd fileman toINSTALLED_APPSSetFILEMAN_DIRECTORYto a subdirectory of yourMEDIA_ROOT(make sure it exists, it won’t be created). Defaults to'user'Make sure thedjango
adminis installed correctlyUsageYou should now have an “Uploads” section in your django admin which
allows you to manage/upload files under yourFILEMAN_DIRECTORY.TinyMCEThere are two options for TinyMCE integration. The simplest is to set
TinyMCE’slink_listparameter to the url for
‘admin:fileman_link_list’, i.e.tinymce.init({
  selector: 'textarea',
  plugins : 'link',
  link_list: '{% url "admin:fileman_link_list" %}',
  toolbar: 'link'
});this should work with any modern TinyMCE version (from 3 onwards)Alternately, set TinyMCE’s file_picker_callback option to integrate
with the image, media and link dialogs. For example, in youradmin/base_site.htmltemplate:<script type="text/javascript"
        src="{% static 'tinymce/tinymce.min.js' %}"></script>
{% include 'fileman/static.html' %}
<script type="text/javascript" charset="utf-8">
  tinymce.init({
    selector: 'textarea',
    plugins : 'link media image',
    file_picker_callback: window.fileman.tinymceFilePickerCallback,
    toolbar: 'link media image'
  });
</script>TinyMCE 4.x is required.Running testsUse tox (https://pypi.python.org/pypi/tox):> pip install tox
> cd path-to/django-fileman
> tox
Package: django-filemanager
# django-filemanagerA simple and standalone file manager and browser for django projects. Supports multiple instances which can be used within the admin area or for the frontend as well.## Key features* Standalone file browser and manager* No external dependencies except django* Feature rich uploader included (jQuery File Upload)* Based on django storage backend## InstallationIf you want to install the latest stable release from PyPi:$ pip install django-filemanagerIf you want to install the latest development version from GitHub:$ pip install -e git://github.com/byteweaver/django-filemanager#egg=django-filemanagerAdd `filemanager` to your `INSTALLED_APPS`:INSTALLED_APPS = (...'filemanager',...)Hook this app into your ``urls.py``:urlpatterns = patterns('',...url(r'^your-url/$', include('filemanager.urls', namespace='filemanager')),...)## SetupDefine paths for `MEDIA_ROOT` and `MEDIA_URL` in your django settings file or override the filemanager settings for `FILEMANAGER_MEDIA_ROOT` and `FILEMANAGER_MEDIA_URL`.Make sure the base folder defined in your settings for filemanager does exist. By default it is located at `MEDIA_ROOT/uploads`.
Package: django-filemanager-lte
##  NotesForked from byteweaverThanks byteweaver!Original repo:https://github.com/byteweaver/django-filemanager## ModsUpgrade python3Upgrade django 1.9Integrate templates for suit personal# django-filemanagerA simple and standalone file manager and browser for django projects. Supports multiple instances which can be used within the admin area or for the frontend as well.## Key features* Standalone file browser and manager* No external dependencies except django* Feature rich uploader included (jQuery File Upload)* Based on django storage backend## InstallationIf you want to install the latest stable release from PyPi:$ pip install django-filemanagerIf you want to install the latest development version from GitHub:$ pip install -e git://github.com/byteweaver/django-filemanager#egg=django-filemanagerorhttps://bitbucket.org/brunoxbk/django-filemanagerAdd `filemanager` to your `INSTALLED_APPS`:INSTALLED_APPS = (...'filemanager',...)Hook this app into your ``urls.py``:urlpatterns = patterns('',...url(r'^your-url/', include('filemanager.urls', namespace='filemanager')),...)## Setup### Base templateIf you like to use the basic templates included you have to make sure your project does meet the following requirements. The filemanger does require a base template called `base.html` to extend from or you to override the `filemanager/filemanager_base.html` template. Within your template you have to define a block named `content`, like in the following example:<html><head>...</head><body>{% block content %}{% endblock %}</body></html>### Directory settingsDefine paths for `MEDIA_ROOT` and `MEDIA_URL` in your django settings file or override the filemanager settings for `FILEMANAGER_MEDIA_ROOT` and `FILEMANAGER_MEDIA_URL`.Make sure the base folder defined in your settings for filemanager does exist. By default it is located at `MEDIA_ROOT/uploads`.
Package: django-filemanager-tjh
A Django app that wrapsFilemanagerfromCore Five Labs, adding lots
of Djangoy goodnessInstallingInstall the package:pip install django-filemanagerAdd it to your installed apps:INSTALLED_APPS += (
    'filemanager',
)Set a few config options:FILEMANAGER_UPLOAD_ROOT = MEDIA_ROOT + 'uploads/'
FILEMANAGER_UPLOAD_URL = MEDIA_URL + 'uploads/'And include its URLs:# in urls.py

urlpatterns += patterns("",
    (r"^filemanager/", include("filemanager.urls")),
)Now, send a user to/filemanager/and they will be able to manage file
uploads on the server.ConfiguringThe following options are supported:FILEMANAGER_UPLOAD_URLThe URL that uploaded files will be served from. This should be theMEDIA_URLwith an optional suffix. The suffix should be the same as
that used in theFILEMANAGER_UPLOAD_ROOTin most instances. For
example:FILEMANAGER_UPLOAD_URL = MEDIA_URL + '/uploads/'FILEMANAGER_UPLOAD_ROOTThe directory that uploaded files should be saved to. This should be theMEDIA_ROOTwith an optional suffix. The suffix should be the same as
that used in theFILEMANAGER_UPLOAD_URLin most instances. For
example:FILEMANAGER_UPLOAD_ROOT = MEDIA_ROOT + '/uploads/'FILEMANAGER_AUTH_CALLBACKEither a callable, or a dotted Python import path to a callable, that
checks if a user is authorised to use the Filemanager. Three default
callbacks are supplied:'filemanager.auth.allow_all': Allow all users to use the filemanager.'filemanager.auth.require_staff': Only allow staff members (users
with thestaffattribute).'filemanager.auth.require_superuser': Only allow superusers (users
with thesuperuserattribute).The default is to only allow staff members.If you want to write your own, it must be a callable that takes aRequestobject and returns a boolean:# in myapp.auth
def check_filemanager_auth(request):
    return request.user.has_perm('...'):

# in settings.py
FILEMANAGER_AUTH_CALLBACK = 'myapp.auth.check_filemanager_auth'
Package: django-filemetadata
Use this app to search for local files and index some metadata information and also the
content of the file (text) in the database (FileMetadata model).
Multiple directories can be configured to be indexed (settings.FILEMETADATA_LOOKUP_DIRS).
With the information registered in the DB it is possible to use the features of
django (filters, export, etc.) or other apps to manipulate the data.
This app can be used, for example, as a basis for implementing protected download pages or
for searching the content of files in the search tool.Repository:https://gitlab.com/rristow/django-filemetadataLicense: BSD 2-ClauseThis version is supported on Python 3.6+; and Django 2.2+.InstallationInstall the package with pip:$pipinstalldjango-filemetadataAdd the App in theINSTALLED_APPSINSTALLED_APPS=("django-filemetadata",),Execute makemigrations/migrate.ConfigurationConfigure the directories to look for the files in the settings:FILEMETADATA_LOOKUP_DIRS=[‘/folder1/folder2’, ‘/folder3/folder4’]UtilizationIndex the data with the management commandusage:filemetadata_index[-fFOLDERS][-c][-d][-s][-x][-n][-a]Updatethethefile-metadatafoundinthedirectoriesintotheDB.optionalarguments:-fFOLDERSFolder(s)toindex(comaseparated)-cClearthedatabeforereindex-dDeleteonlythedatafromthesefoldersandexit-sIndexthesymlinks(Donotfollowit)-xExtractthecontentofthefile(text)-nNon-reentrantmode(Notrecursive)-aAbortonerrorse.g.Reindex the files configured in settingspython filemetadata_indexor inform the directoriespython filemetadata_index  -f /folder1/folder2,/folder3Or just delete the data from these folders (not recursive in this case):python filemetadata_index -d -n -f /folder1/folder2,/folder3Go to Admin and check the data in the FileMetadata model.CustomizationSupport for .pdf files
This app is compatible with the ‘PyPDF4’ library. If it is installed it can be used to
extract the content from pdf files if necessary.Custom extractor
It is possible to override the function that extracts the contents of the files by a
more specific one if necessary. To do this, overload the function ‘func_extract_text’
in the indexer.py modulefromfilemetadataimportindexerdefmy_extractor(posixpath_obj):...returnfile_contentindexer.func_extract_text=my_extractoror the extract_text method of the FileIndexer classfromfilemetadata.indexerimportFileIndexerclassMyFileIndexer(FileIndexer):defextract_text(self,file_obj):...returnfile_contentTestsTo run the testspythonload_tests.py
Package: django-file-picker
django-file-picker is a pluggable Django application used for uploading,
browsing, and inserting various forms of media into HTML form fields.When a user is editing some content, and they want to insert a link to
a file or image into their content, possibly uploading the image or file
in the process, django-file-picker provides the tools to do that.Using jQuery Tools, django-file-picker integrates seamlessly into pre-existing pages by
installing an overlay that lists file details and, when applicable, image
thumbnails. New files can also be uploaded from within the overlay (via AJAX
Upload).django-file-picker provides a few optional extensions to help get started,
includingfile_picker.uploads, an app with pre-built Image and File models, andfile_picker.wymeditor, an app that integrates withWYMeditor, a web-based
WYSIWYM (What You See Is What You Mean) XHTML editor. These extensions are
provided for convenience and can easily be replaced by custom modules.For more complete documentation, seehttp://django-file-picker.readthedocs.orgDependenciesRequiredPython 2.7, 3.4, 3.5 and 3.6Django 1.8 to 1.11 (inclusive)sorl-thumbnail==12.4a1jQuery 1.4.xjQuery Tools 1.2.xAJAX Upload(included)Optionaldjango.contrib.staticfilesWYMeditor 0.5If you are usingdjango.contrib.staticfiles, then addfile_pickerto your INSTALLED_APPS
to include the related css/js.Otherwise make sure to include the contents of the static folder in your project’s
media folder.Basic InstallationAddfile_pickerandsorl.thumbnailto INSTALLED_APPS in settings.py:INSTALLED_APPS = (
    'file_picker',
    'file_picker.uploads', # file and image Django app
    'file_picker.wymeditor', # optional WYMeditor plugin
    'sorl.thumbnail',  # required
)file_picker.uploadswill automatically create two pickers named ‘images’ and ‘files’.Note: sorl-thumbnail was out of support for a number of years, but there is now a new pre-release that seems to work, which you can install using:$ pip install --pre sorl-thumbnail==12.4a1Hopefully newer releases will come soon.Add thefile_pickerURLs to urls.py, e.g.:from django.conf.urls import include, url
import file_picker

urlpatterns = [
    # ...
    url(r'^file-picker/', include(file_picker.site.urls)),
    # ...
]Development sponsored byCaktus Consulting Group, LLC..
Package: django-filepreviewfields
django-filepreviewfields========================> Fields for previewing image and video uploaded filesInstallation------------```shpip install django-filepreviewfields```Adding to installed apps------------------------- To use file preview fields, you have to add it to your INSTALLED_APPS on your project's settings.py so the needed static files can be loaded:```pythonINSTALLED_APPS = (...'filepreviewfields',)```Using SortedManyToManyField---------------------------- To use SortedManyToMany field, just create a field as if you were adding the default ManyToMany```pythonfrom django.db import modelsfrom filepreviewfields.fields import ImagePreviewField, VideoPreviewFieldclass Movie(models.Model):...cover = ImagePreviewField()video = VideoPreviewField()```License-------MIT
Package: django-fileprovider
[![Build Status](https://travis-ci.org/instapk/django-fileprovider.svg?branch=master)](https://travis-ci.org/instapk/django-fileprovider)File handler for django, useful when you want to add control or logic to served files.It uses `sendfile` API supports on different servers and uses pythonic solution on django development server.Currently it supports,* Apache* Nginx* LightHttpd* Caddy* Hiawatha# INSTALLATIONuse pip to install package:`pip install django-fileprovider`* add `fileprovider` to django `INSTALLED_APPS` section.* add `fileprovider.middleware.FileProviderMiddleware` to `MIDDLEWARE_CLASSES` section* set django `settings` file with `FILEPROVIDER_NAME` any of  available providers `python`, `nginx`, `apache`, `lighthttpd`,`caddy`, `hiawatha`, `xsendfile`, `xaccel`.```python# or you can put FILEPROVIDER_NAME as python in your local settings fileif settings.DEBUG:FILEPROVIDER_NAME = "python"else:# or apache, lighthttpd, caddyFILEPROVIDER_NAME = "nginx"```# USAGEon django views where file response is required, fill response header `X-File` with absolute file path or use `sendfile` wrapperfor example,```pythonfrom fileprovider.utils import sendfiledef hello(request):return sendfile('/absolute/path/to/file')```
Package: django-filer
django Fileris a file management application for django that makes
handling of files and images a breeze.NoteThis project is endorsed by thedjango CMS Association.
That means that it is officially accepted by the dCA as being in line with our roadmap vision and development/plugin policy.
Join us onSlack.Contribute to this project and win rewardsBecause this is a an open-source project, we welcome everyone toget involved in the projectandreceive a rewardfor their contribution.
Become part of a fantastic community and help us make django CMS the best CMS in the world.We’ll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your
pull request, please review ourcontribution guidelines.We’re grateful to all contributors who have helped create and maintain this package.
Contributors are listed at thecontributorssection.DocumentationPlease head over to the separatedocumentationfor all the details on how to install, configure and use django-filer.
Package: django-file-repository
Simple file repository application made in top of django.FeaturesUser registrationPublic/Private filesCategoriesTaggingPluggableHow to installYou can install it througheasy_installorpipin your computer:pip install -U django-file-repositoryOr you can just copy the repository directory into your project.DocumentationYou can find all the django-file-repository documentation in:http://django-file-repository.rtfd.org/Questions/ContactYou can contact me atoscar.carballal@cidadania.coopif you have any questions about djangofr
Package: django-fileresponse
Welcome to django_fileresponseServe files directly from Django.django_fileresponseis a library that allows you to serve files directly from Django.Features of django_fileresponsedjango_fileresponseprovides the following features for developers:Use asyncio to serve files with high concurrencydirectly from Django.Usesaiofilestoasynchronously read from filesystemandaiobotocoretoasynchronously read from s3 compatible object storesInstallingdjango_fileresponseis on PyPI so you can just runpip install django_fileresponse.Replace Default ASGIHandlerYou have to replace DjangosASGIHandler, because it synchronously calls__next__infor part in responsewhich makes it impossible to await reading from a filesystem/object-store.So you have to replace the defaultASGIHandlerinasgi.py.So instead of building your application like this:fromdjango.core.asgiimportget_asgi_applicationapplication=get_asgi_application()<IPython.core.display.Javascript object>You have to import a modified ASGIHandler from fileresponse:fromfileresponse.asgiimportget_asgi_applicationapplication=get_asgi_application()<IPython.core.display.Javascript object>If you use a different mechanism to launch your application, you could also just import the modifiedAsyncFileASGIHandlerdirectly:fromfileresponse.handlersimportAsyncFileASGIHandlerdjango.setup(set_prefix=False)application=AsyncFileASGIHandler()<IPython.core.display.Javascript object>How to use Async Fileresponses in your ViewsAdd functions below to yourviews.pyServing from Filesystemfromfileresponse.httpimportAiofileFileResponseasAiofileFileResponseasyncdefget_file(request,path):file_path=Path(path)returnAiofileFileResponse(file_path)<IPython.core.display.Javascript object>Serve Files from an S3 Compatible Object Storefromfileresponse.httpimportAiobotocoreFileResponseasyncdefget_file(request,key):bucket=settings.FILERESPONSE_S3_ACCESS_KEY_IDreturnAiobotocoreFileResponse(bucket,key,chunk_size=4096)<IPython.core.display.Javascript object>SettingsExample Settings for an S3 Compatible Object StoreFILERESPONSE_S3_ACCESS_KEY_ID="minioadmin"
FILERESPONSE_S3_SECRET_ACCESS_KEY="minioadmin"
FILERESPONSE_S3_REGION="us-west-2"
FILERESPONSE_S3_STORAGE_BUCKET_NAME="fileresponse"
FILERESPONSE_S3_ENDPOINT_URL="http://localhost:9000"
Package: django-filero
A file management application for django that makes handling of files and images a breeze.Filer picker widget:Documentation:http://django-filer.readthedocs.org/en/latest/index.htmlWiki:https://github.com/stefanfoulis/django-filer/wikiDependenciesDjango>= 1.4django-mptt>=0.5.1easy_thumbnails>= 1.0django-polymorphic>= 0.2Pillow2.3.0 (with JPEG and ZLIB support,PIL1.1.7 is supported but not recommended)django.contrib.staticfilesis required.Django >= 1.6is supported together withdjango-polymorphic>= 0.5.4Django >= 1.7is supported together withdjango-polymorphic>= 0.5.6InstallationTo get started usingdjango-filerosimply install it withpip:$ pip install django-fileroConfigurationAdd"filer","mptt"and"easy_thumbnails"to your project’sINSTALLED_APPSsetting and runsyncdb(andmigrateif you’re using South).See the docs for advanced configuration:subject location docspermission docs(experimental)secure file downloads docs(experimental)Django <1.7 and SouthDjango 1.7 is supported together with the new migrations. For Django<1.7 South
is still supported, you need at least South>=1.0 for South to find them though.TestsuiteThe easiest way to run the testsuite is to checkout the code, make sure you havePILinstalled, and run:python setup.py testFor serious testingtoxis recommended. See documentation for details.
Package: django-filer-optimizer
django-filer-optimizerGitHubTestCheck Demo ProjectCheck the demo repo onGitHubRequirementsPython 3.8+ supported.Django 3.2+ supported.SetupInstall frompip:pipinstalldjango-filer-optimizerModifysettings.pyby adding the app toINSTALLED_APPS:INSTALLED_APPS=[# ..."filer_optimizer",# ...]Finally, modify your projecturls.pywith handlers for all errors:# ...other imports...urlpatterns=[# ...other urls...]Execute Django's commandmigrateinside your project's root:pythonmanage.pymigrate
Runningmigrations:Applyingfiler_optimizer.0001_initial...OKRun Example Projectgitclone--depth=50--branch=django-filer-optimizerhttps://github.com/DLRSP/example.gitDLRSP/examplecdDLRSP/example
pythonmanage.pyrunserverNow browser the app @http://127.0.0.1:8000
Package: django-filer-pdf
django-filer-pdfThis is a fork of Patrick Toal’s PDF plugin fordjango-filer. Currently this app does only provide a PDF icon for PDF-files. But maybe more features are added to make the originally intended features happen. Contributions are welcome ;-)Dependenciesdjango-filer> 0.9a2InstallationTo get started usingdjango-filer-pdfsimply install it withpip:$ pip install django-filer-pdfConfigurationAdd"filer_pdf"to your project’sINSTALLED_APPSsetting and runsyncdbormigrate.Original textThis app extendsdjango-filerby adding the following features for PDF files:Thumbnail generation for the first page of PDF documents.Text extraction from PDF for indexing by search engines ( eg: Haystack )Currently in “vaporware” state *Dependenciesdjango-filer> 0.9a2pdfminerImageMagick(for PDF thumbnail generation)
Package: django-files-library
django librarydjango library is file management django app with user permissions and file download layerInstallation
1. install the package using “pip install git+git://github.com/ahmadiga/django-files-library.git” or “pip install django-files-library”
2. Add “django_files_library” to your INSTALLED_APPS setting.
3. Add`url(r'django_files_library/',include('django_files_library.urls')),`to urls.py.Configurations
DJANGO_FILES_LIBRARY_ADD_FILE_FORM_CLASS
A string pointing to a custom form class (e.g. ‘myapp.forms.AddFileForm’) that is used during adding new file.DJANGO_FILES_LIBRARY_INLINE_FORM Boolean flag to display upload file form to the list or display it in a separate pageRender library
To render library user the following template tags:
1.```{% load django_files_library %}```:import template tag
2.```{% render_library <library object> %}```:to render a full view of the library
3.```{% render_library_list <library object> %}```:to render files list only### TBD